@siemens/element-ng 51.7.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.
@@ -1 +1 @@
1
- {"version":3,"file":"siemens-element-ng-chat-messages.mjs","sources":["../../../../projects/element-ng/chat-messages/si-chat-message-action.directive.ts","../../../../projects/element-ng/chat-messages/si-chat-message-actions.component.ts","../../../../projects/element-ng/chat-messages/si-chat-message-actions.component.html","../../../../projects/element-ng/chat-messages/si-chat-message.component.ts","../../../../projects/element-ng/chat-messages/si-chat-message.component.html","../../../../projects/element-ng/chat-messages/si-ai-message.component.ts","../../../../projects/element-ng/chat-messages/si-ai-message.component.html","../../../../projects/element-ng/chat-messages/si-activity-message.component.ts","../../../../projects/element-ng/chat-messages/si-activity-message.component.html","../../../../projects/element-ng/chat-messages/si-activity-message-part.component.ts","../../../../projects/element-ng/chat-messages/si-activity-message-part.component.html","../../../../projects/element-ng/chat-messages/si-activity-trace.component.ts","../../../../projects/element-ng/chat-messages/si-activity-trace.component.html","../../../../projects/element-ng/chat-messages/si-attachment-list.component.ts","../../../../projects/element-ng/chat-messages/si-attachment-list.component.html","../../../../projects/element-ng/chat-messages/si-chat-container.component.ts","../../../../projects/element-ng/chat-messages/si-chat-container.component.html","../../../../projects/element-ng/chat-messages/si-chat-container-input.directive.ts","../../../../projects/element-ng/chat-messages/si-chat-input-token.ts","../../../../projects/element-ng/chat-messages/si-chat-input.component.ts","../../../../projects/element-ng/chat-messages/si-chat-input.component.html","../../../../projects/element-ng/chat-messages/si-chat-input-disclaimer.directive.ts","../../../../projects/element-ng/chat-messages/si-user-message.component.ts","../../../../projects/element-ng/chat-messages/si-user-message.component.html","../../../../projects/element-ng/chat-messages/si-ai-welcome-screen.component.ts","../../../../projects/element-ng/chat-messages/si-ai-welcome-screen.component.html","../../../../projects/element-ng/chat-messages/si-ai-chat.component.ts","../../../../projects/element-ng/chat-messages/si-ai-chat.component.html","../../../../projects/element-ng/chat-messages/index.ts","../../../../projects/element-ng/chat-messages/siemens-element-ng-chat-messages.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Directive } from '@angular/core';\n\n/**\n * Directive to mark content as chat message actions into {@link SiChatMessageComponent}.\n * Apply this directive to e.g. buttons that should be slotted into the message actions area.\n *\n * @example\n * ```html\n * <si-chat-message>\n * Message content\n * <button siChatMessageAction>Like</button>\n * <button siChatMessageAction>Share</button>\n * </si-chat-message>\n * ```\n *\n * @see {@link SiChatMessageComponent} for the chat message wrapper component\n *\n * @experimental\n */\n@Directive({\n selector: '[siChatMessageAction]'\n})\nexport class SiChatMessageActionDirective {}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { CdkMenuTrigger } from '@angular/cdk/menu';\nimport { Component, inject, input } from '@angular/core';\nimport { elementOptionsVertical } from '@siemens/element-icons';\nimport { addIcons, SiIconComponent } from '@siemens/element-ng/icon';\nimport {\n MenuItemAction,\n SiMenuActionService,\n SiMenuFactoryComponent\n} from '@siemens/element-ng/menu';\nimport { SiTranslatePipe, t } from '@siemens/element-translate-ng/translate';\n\nimport { SiChatMessageActionDirective } from './si-chat-message-action.directive';\n\n/**\n * Shared action controls for user and AI messages.\n *\n * Pass the pre-split primary and secondary actions to this component.\n *\n * @experimental\n */\n@Component({\n selector: 'si-chat-message-actions',\n imports: [\n CdkMenuTrigger,\n SiChatMessageActionDirective,\n SiIconComponent,\n SiMenuFactoryComponent,\n SiTranslatePipe\n ],\n templateUrl: './si-chat-message-actions.component.html',\n host: {\n class: 'd-block'\n }\n})\nexport class SiChatMessageActionsComponent {\n private readonly menuActionService = inject(SiMenuActionService, { optional: true });\n protected readonly icons = addIcons({ elementOptionsVertical });\n\n /** Primary message actions displayed inline.\n * @defaultValue []\n */\n readonly actions = input<MenuItemAction[]>([]);\n\n /** Secondary actions displayed in the menu.\n * @defaultValue []\n */\n readonly secondaryActions = input<MenuItemAction[]>([]);\n\n /** Parameter passed to action handlers. */\n readonly actionParam = input<unknown>();\n\n /** More actions button aria label.\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_CHAT_MESSAGE_ACTIONS.SECONDARY_ACTIONS:Additional actions`)\n * ```\n */\n readonly secondaryActionsLabel = input(\n t(() => $localize`:@@SI_CHAT_MESSAGE_ACTIONS.SECONDARY_ACTIONS:Additional actions`)\n );\n\n protected runAction(action: MenuItemAction): void {\n if (typeof action.action === 'function') {\n action.action(this.actionParam(), action);\n } else {\n this.menuActionService?.actionTriggered(action, this.actionParam());\n }\n }\n}\n","<div class=\"btn-group message-actions align-items-center\" role=\"group\" siChatMessageAction>\n @for (action of actions(); track $index) {\n <button\n type=\"button\"\n class=\"btn btn-tertiary-ghost\"\n [class.btn-icon]=\"!!action.icon\"\n [disabled]=\"action.disabled\"\n [attr.aria-label]=\"action.label | translate\"\n (click)=\"runAction(action)\"\n >\n @if (action.icon) {\n <si-icon [icon]=\"action.icon\" />\n } @else {\n {{ action.label | translate }}\n }\n </button>\n }\n\n @if (secondaryActions().length > 0) {\n <button\n type=\"button\"\n class=\"btn btn-tertiary-ghost btn-icon\"\n [cdkMenuTriggerFor]=\"secondaryActionsMenu\"\n [attr.aria-label]=\"secondaryActionsLabel() | translate\"\n [attr.title]=\"secondaryActionsLabel() | translate\"\n >\n <si-icon [icon]=\"icons.elementOptionsVertical\" />\n </button>\n\n <ng-template #secondaryActionsMenu>\n <si-menu-factory [items]=\"secondaryActions()\" [actionParam]=\"actionParam()\" />\n </ng-template>\n }\n\n <ng-content />\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Component, input } from '@angular/core';\nimport { SiResponsiveContainerDirective } from '@siemens/element-ng/resize-observer';\n\n/**\n * Base declarative chat message component that provides the layout structure for chat messages.\n *\n * This component handles the core message layout including avatar positioning, loading states,\n * and action button as well as attachment list placement. It serves as the foundation for more specialized message components\n * like {@link SiUserMessageComponent} and {@link SiAiMessageComponent}.\n * Can be used within {@link SiChatContainerComponent}.\n *\n * The component provides:\n * - Flexible alignment (start/end) for different message types\n * - Avatar/icon slot for message attribution\n * - Loading state with skeleton UI\n * - Action buttons positioned on the side or bottom\n * - Attachment list display slot\n * - Responsive behavior that adapts to container size\n *\n * This is a low-level component designed for slotting in custom content, it provides slots via content projection:\n * - Default content: Main message content area (consider using `si-markdown` for markdown support)\n * - `si-avatar/si-icon/img` selector: Avatar or icon representing the message sender\n * - `si-chat-message-action` selector: Action buttons related to the message\n * - `si-attachment-list` selector: Attachment list component for displaying file attachments\n *\n * @see {@link SiUserMessageComponent} for user message display\n * @see {@link SiAiMessageComponent} for AI message display\n * @see {@link SiAttachmentListComponent} for attachment list to slot in\n * @see {@link SiChatMessageActionDirective} for action buttons to slot in\n * @see {@link SiChatContainerComponent} for the chat container to use this within\n *\n * @experimental\n */\n@Component({\n selector: 'si-chat-message',\n templateUrl: './si-chat-message.component.html',\n styleUrl: './si-chat-message.component.scss',\n host: {\n class: 'd-block'\n },\n hostDirectives: [SiResponsiveContainerDirective]\n})\nexport class SiChatMessageComponent {\n /**\n * Whether the message is currently loading\n * @defaultValue false\n */\n readonly loading = input(false);\n\n /**\n * Alignment of the message\n * @defaultValue 'start'\n */\n readonly alignment = input<'start' | 'end'>('start');\n\n /**\n * Where to display action buttons (if any)\n * @defaultValue 'side'\n */\n readonly actionsPosition = input<'side' | 'bottom'>('side');\n}\n","<!--- Flex-row if alignment start, flex-row-reverse if alignment end, flex-column if mobile -->\n<div\n class=\"d-flex si-body-paragraph chat-message-container\"\n [class.start]=\"alignment() === 'start'\"\n>\n <div class=\"avatar-wrapper flex-shrink-0\" [class.end]=\"alignment() === 'end'\">\n <ng-content select=\"si-icon,si-avatar,img\" />\n </div>\n\n <div class=\"d-flex flex-column flex-grow-1 w-100\">\n <div class=\"attachment-slot\" [class.align-self-end]=\"alignment() === 'end'\">\n <ng-content select=\"si-attachment-list,si-badge\" />\n </div>\n\n @if (loading()) {\n <div\n class=\"message-wrapper rounded-3 w-75 text-break loading-message-bubble mb-2\"\n [class.align-self-end]=\"alignment() === 'end'\"\n >\n <div class=\"d-flex flex-column w-100 gap-2\">\n <div class=\"si-skeleton skeleton-line skeleton-line-full\"></div>\n <div class=\"si-skeleton skeleton-line skeleton-line-half\"></div>\n </div>\n </div>\n } @else {\n <!-- Flex-column if actions bottom, flex-row/flex-row-reverse if actions start -->\n <div\n class=\"message-wrapper mw-0 d-flex mb-2\"\n [class.start]=\"alignment() === 'start'\"\n [class.end]=\"alignment() === 'end'\"\n [class.flex-column]=\"actionsPosition() === 'bottom'\"\n [class.flex-row]=\"actionsPosition() === 'side' && alignment() === 'start'\"\n [class.flex-row-reverse]=\"actionsPosition() === 'side' && alignment() === 'end'\"\n [class.align-items-start]=\"actionsPosition() === 'side'\"\n [class.align-items-end]=\"actionsPosition() === 'bottom' && alignment() === 'end'\"\n [class.justify-content-end]=\"alignment() === 'end' && actionsPosition() === 'bottom'\"\n [class.justify-content-start]=\"alignment() === 'start' && actionsPosition() === 'bottom'\"\n >\n <div\n class=\"rounded-3 text-break message-bubble\"\n [class.end]=\"alignment() === 'end' && actionsPosition() === 'bottom'\"\n >\n <ng-content />\n </div>\n\n <div\n class=\"actions-wrapper d-flex gap-4\"\n [class.ms-3]=\"actionsPosition() === 'side' && alignment() === 'start'\"\n [class.me-3]=\"actionsPosition() === 'side' && alignment() === 'end'\"\n [class.mt-2]=\"actionsPosition() === 'bottom'\"\n [class.actions-horizontal]=\"actionsPosition() !== 'bottom'\"\n [class.align-self-start]=\"actionsPosition() === 'side'\"\n >\n <ng-content select=\"[siChatMessageAction]\" />\n </div>\n </div>\n }\n </div>\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { booleanAttribute, Component, input, output } from '@angular/core';\nimport { MenuItemAction } from '@siemens/element-ng/menu';\nimport { SourceReference, SiSourceChipComponent } from '@siemens/element-ng/source-chip';\nimport { t } from '@siemens/element-translate-ng/translate';\n\nimport { SiChatMessageActionDirective } from './si-chat-message-action.directive';\nimport { SiChatMessageActionsComponent } from './si-chat-message-actions.component';\nimport { SiChatMessageComponent } from './si-chat-message.component';\n\n/**\n * AI message component for displaying AI-generated responses in conversational interfaces.\n *\n * The AI message component renders AI-generated content in chat interfaces,\n * supporting text, loading states, and contextual actions.\n * It appears as text (no bubble) aligned to the left side without any avatar/icon slot.\n * Can be used within {@link SiChatContainerComponent}.\n *\n * The component automatically handles:\n * - Styling for AI messages distinct from user or generic chat messages\n * - Showing loading states with skeleton UI during generation\n * - Displaying primary and secondary actions\n *\n * @see {@link SiChatMessageComponent} for the base message wrapper component\n * @see {@link SiUserMessageComponent} for the user message component\n * @see {@link SiChatContainerComponent} for the chat container to use this within\n *\n * @experimental\n */\n@Component({\n selector: 'si-ai-message',\n imports: [\n SiChatMessageComponent,\n SiChatMessageActionDirective,\n SiChatMessageActionsComponent,\n SiSourceChipComponent\n ],\n templateUrl: './si-ai-message.component.html',\n styleUrl: './si-ai-message.component.scss'\n})\nexport class SiAiMessageComponent {\n /**\n * The AI-generated message content\n * @defaultValue ''\n */\n readonly content = input<string>('');\n\n /**\n * Whether the message is currently being generated (shows skeleton)\n * @defaultValue false\n */\n readonly loading = input(false, { transform: booleanAttribute });\n\n /**\n * Primary actions available for this message (thumbs up/down, copy, retry, etc.)\n * All actions displayed inline\n * @defaultValue []\n */\n readonly actions = input<MenuItemAction[]>([]);\n\n /**\n * Secondary actions available in dropdown menu, first use primary actions and only add secondary actions additionally\n * @defaultValue []\n */\n readonly secondaryActions = input<MenuItemAction[]>([]);\n\n /** Parameter to pass to action handlers */\n readonly actionParam = input();\n\n /** Source references */\n readonly sources = input<SourceReference[]>();\n\n /**\n * More actions button aria label\n *\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_AI_MESSAGE.SECONDARY_ACTIONS:Additional actions`)\n * ```\n */\n readonly secondaryActionsLabel = input(\n t(() => $localize`:@@SI_AI_MESSAGE.SECONDARY_ACTIONS:Additional actions`)\n );\n\n /** Emitted when a source has been clicked. */\n readonly sourceClicked = output<SourceReference>();\n}\n","<si-chat-message alignment=\"start\" actionsPosition=\"bottom\" [loading]=\"loading()\">\n @if (content()) {\n <span class=\"text-pre-wrap\">{{ content() }}</span>\n } @else {\n <ng-content />\n }\n\n @let src = sources();\n @if (actions().length > 0 || secondaryActions().length > 0 || src?.length) {\n <si-chat-message-actions\n class=\"ai-message-actions\"\n siChatMessageAction\n [actions]=\"actions()\"\n [secondaryActions]=\"secondaryActions()\"\n [actionParam]=\"actionParam()\"\n [secondaryActionsLabel]=\"secondaryActionsLabel()\"\n >\n @if (src?.length) {\n <si-source-chip\n showIcon\n showLabel\n [sources]=\"src\"\n (sourceClicked)=\"sourceClicked.emit($event)\"\n />\n }\n </si-chat-message-actions>\n }\n</si-chat-message>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Component, input, model } from '@angular/core';\nimport { elementCircleFilled, elementIssue, elementRight2 } from '@siemens/element-icons';\nimport { addIcons, SiIconComponent } from '@siemens/element-ng/icon';\nimport { SiLoadingSpinnerComponent } from '@siemens/element-ng/loading-spinner';\nimport { SiTranslatePipe, TranslatableString } from '@siemens/element-translate-ng/translate';\n\n/**\n * Collapsible activity message for displaying progress and intermediate steps in a chat.\n *\n * @experimental\n */\n@Component({\n selector: 'si-activity-message',\n imports: [SiIconComponent, SiLoadingSpinnerComponent, SiTranslatePipe],\n templateUrl: './si-activity-message.component.html',\n styleUrl: './si-activity-message.component.scss',\n host: {\n '[class.expanded]': 'expanded()',\n '[class.failed]': `state() === 'failed'`\n }\n})\nexport class SiActivityMessageComponent {\n /** Activity heading. */\n readonly heading = input.required<TranslatableString>();\n\n /** Activity icon. */\n readonly icon = input<string>();\n\n /** Current state of the activity. */\n readonly state = input<'running' | 'failed'>();\n\n /**\n * Whether the activity details are expanded.\n *\n * @defaultValue false\n */\n readonly expanded = model(false);\n\n protected readonly icons = addIcons({\n elementCircleFilled,\n elementIssue,\n elementRight2\n });\n}\n","<button\n type=\"button\"\n class=\"activity-toggle\"\n [attr.aria-expanded]=\"expanded()\"\n (click)=\"expanded.update(value => !value)\"\n>\n <span class=\"activity-marker\">\n @switch (state()) {\n @case ('running') {\n <si-loading-spinner class=\"activity-icon\" />\n }\n @case ('failed') {\n <si-icon class=\"activity-icon\" [icon]=\"icons.elementIssue\" />\n }\n @default {\n <si-icon\n class=\"activity-icon\"\n [class.default-icon]=\"!icon()\"\n [icon]=\"icon() ?? icons.elementCircleFilled\"\n />\n }\n }\n <si-icon class=\"disclosure-icon\" [class.expanded]=\"expanded()\" [icon]=\"icons.elementRight2\" />\n </span>\n <span class=\"activity-heading\">{{ heading() | translate }}</span>\n</button>\n\n@if (expanded()) {\n <div class=\"content-motion\" animate.enter=\"content-enter\" animate.leave=\"content-leave\">\n <div class=\"overflow-hidden\">\n <div class=\"activity-content\">\n <ng-content />\n </div>\n </div>\n </div>\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { booleanAttribute, Component, input, model } from '@angular/core';\nimport { elementCircleFilled, elementRight2 } from '@siemens/element-icons';\nimport { addIcons, SiIconComponent } from '@siemens/element-ng/icon';\nimport { SiTranslatePipe, TranslatableString } from '@siemens/element-translate-ng/translate';\n\n/**\n * Titled content part for use inside an activity message.\n *\n * @experimental\n */\n@Component({\n selector: 'si-activity-message-part',\n imports: [SiIconComponent, SiTranslatePipe],\n templateUrl: './si-activity-message-part.component.html',\n styleUrl: './si-activity-message-part.component.scss'\n})\nexport class SiActivityMessagePartComponent {\n /** Part heading. */\n readonly heading = input.required<TranslatableString>();\n\n /**\n * Whether the part can be collapsed and expanded.\n *\n * @defaultValue false\n */\n readonly collapsible = input(false, { transform: booleanAttribute });\n\n /**\n * Whether collapsible content is expanded.\n *\n * @defaultValue true\n */\n readonly expanded = model(true);\n\n protected readonly icons = addIcons({ elementCircleFilled, elementRight2 });\n}\n","@if (collapsible()) {\n <button\n type=\"button\"\n class=\"section-heading section-toggle\"\n [attr.aria-expanded]=\"expanded()\"\n (click)=\"expanded.update(value => !value)\"\n >\n <si-icon\n class=\"section-icon disclosure-icon\"\n [class.expanded]=\"expanded()\"\n [icon]=\"icons.elementRight2\"\n />\n <span>{{ heading() | translate }}</span>\n </button>\n} @else {\n <div class=\"section-heading\">\n <si-icon class=\"section-icon default-icon\" [icon]=\"icons.elementCircleFilled\" />\n <span>{{ heading() | translate }}</span>\n </div>\n}\n\n@if (!collapsible() || expanded()) {\n <div class=\"content-motion\" animate.enter=\"content-enter\" animate.leave=\"content-leave\">\n <div class=\"overflow-hidden\">\n <div class=\"section-content\">\n <ng-content />\n </div>\n </div>\n </div>\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Component, input, model } from '@angular/core';\nimport { elementRight2 } from '@siemens/element-icons';\nimport { addIcons, SiIconComponent } from '@siemens/element-ng/icon';\nimport { SiTranslatePipe, TranslatableString } from '@siemens/element-translate-ng/translate';\n\n/**\n * Collapsible container for grouping multiple activity messages.\n *\n * @experimental\n */\n@Component({\n selector: 'si-activity-trace',\n imports: [SiIconComponent, SiTranslatePipe],\n templateUrl: './si-activity-trace.component.html',\n styleUrl: './si-activity-trace.component.scss'\n})\nexport class SiActivityTraceComponent {\n /** Trace heading. */\n readonly heading = input.required<TranslatableString>();\n\n /**\n * Whether the trace content is expanded.\n *\n * @defaultValue false\n */\n readonly expanded = model(false);\n\n protected readonly icons = addIcons({ elementRight2 });\n}\n","<button\n type=\"button\"\n class=\"trace-toggle\"\n [attr.aria-expanded]=\"expanded()\"\n (click)=\"expanded.update(value => !value)\"\n>\n <span class=\"trace-marker\">\n <si-icon class=\"disclosure-icon\" [class.expanded]=\"expanded()\" [icon]=\"icons.elementRight2\" />\n </span>\n <span class=\"trace-heading\">{{ heading() | translate }}</span>\n</button>\n\n@if (expanded()) {\n <div class=\"content-motion\" animate.enter=\"content-enter\" animate.leave=\"content-leave\">\n <div class=\"overflow-hidden\">\n <div class=\"trace-content\">\n <ng-content />\n </div>\n </div>\n </div>\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { booleanAttribute, Component, inject, input, output, TemplateRef } from '@angular/core';\nimport { elementStateClose, elementDocument } from '@siemens/element-icons';\nimport { addIcons, SiIconComponent } from '@siemens/element-ng/icon';\nimport { SiModalService } from '@siemens/element-ng/modal';\nimport { SiTranslatePipe, t } from '@siemens/element-translate-ng/translate';\n\n/**\n * Attachment item interface for file attachments in chat messages, used by {@link SiAttachmentListComponent} and inside {@link SiUserMessageComponent} as well as {@link SiChatInputComponent}.\n *\n * @see {@link SiAttachmentListComponent} for the attachment list component\n * @see {@link SiUserMessageComponent} for the user message\n * @see {@link SiChatInputComponent} for the chat input component\n *\n * @experimental\n */\nexport interface Attachment {\n /** File name */\n name: string;\n /** Optionally show a preview of the attachment by providing a template that is shown in a modal when clicked (optional) */\n previewTemplate?: TemplateRef<any> | (() => TemplateRef<any>);\n}\n\n/**\n * Attachment list component for displaying file attachments in chat messages.\n *\n * This component renders a list of file attachments with icons, names, and optional\n * preview and remove functionality. It's designed to work with chat message components\n * to show files that have been uploaded or shared in conversations.\n *\n * This component provides:\n * - A list of pills showing each attachment's name and an icon\n * - Optional preview modal for attachments\n * - Optional remove functionality for editable messages\n *\n * The component is included within {@link SiUserMessageComponent}, {@link SiAiMessageComponent} and {@link SiChatInputComponent} but can also be used inside custom chat messages with {@link SiChatMessageComponent}\n *\n * @see {@link SiUserMessageComponent} for user message display\n * @see {@link SiAiMessageComponent} for AI message display\n * @see {@link SiChatMessageComponent} for custom chat message display\n * @see {@link SiChatInputComponent} for chat input with attachment support\n * @see {@link Attachment} for attachment data structure\n *\n * @experimental\n */\n@Component({\n selector: 'si-attachment-list',\n imports: [SiIconComponent, SiTranslatePipe],\n templateUrl: './si-attachment-list.component.html',\n styleUrl: './si-attachment-list.component.scss'\n})\nexport class SiAttachmentListComponent {\n protected modalService = inject(SiModalService);\n protected readonly icons = addIcons({ elementStateClose, elementDocument });\n\n /**\n * List of attachments to display\n * @defaultValue []\n */\n readonly attachments = input<Attachment[]>([]);\n\n /**\n * Whether to align attachments to the end (right) or start (left)\n * @defaultValue 'start'\n */\n readonly alignment = input<'start' | 'end'>('start');\n\n /**\n * Whether to show remove buttons on attachments\n * @defaultValue false\n */\n readonly removable = input(false, { transform: booleanAttribute });\n\n /**\n * Label for remove attachment button.\n * The attachment name is available with `{{attachment}}`.\n *\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_ATTACHMENT_LIST.REMOVE_ATTACHMENT:Remove {{attachment}}`)\n * ```\n */\n readonly removeLabel = input(\n t(() => $localize`:@@SI_ATTACHMENT_LIST.REMOVE_ATTACHMENT:Remove {{attachment}}`)\n );\n\n /**\n * Emitted when an attachment should be removed\n */\n readonly remove = output<Attachment>();\n\n private getPreviewTemplate(attachment: Attachment): any | undefined {\n if (attachment.previewTemplate) {\n return typeof attachment.previewTemplate === 'function'\n ? attachment.previewTemplate()\n : attachment.previewTemplate;\n }\n return undefined;\n }\n\n protected openPreview(event: Event, attachment: Attachment): void {\n const template = this.getPreviewTemplate(attachment);\n if (template) {\n event.preventDefault();\n this.modalService.show(template, {\n inputValues: { 'attachment': attachment }\n });\n }\n }\n\n protected getFileIcon(name: string): string {\n // TODO: Accept map and default it in file upload directive.\n return this.icons.elementDocument;\n }\n}\n","<div class=\"d-flex flex-wrap gap-4\" [class.justify-content-end]=\"alignment() === 'end'\">\n @for (attachment of attachments(); track $index) {\n <div class=\"attachment-item d-flex align-items-stretch\" role=\"group\">\n @if (attachment.previewTemplate) {\n <button\n type=\"button\"\n class=\"attachment-main focus-inside d-flex align-items-center flex-grow-1 min-width-0\"\n [attr.title]=\"attachment.name\"\n [attr.aria-label]=\"attachment.name\"\n (click)=\"openPreview($event, attachment)\"\n (keydown.enter)=\"openPreview($event, attachment)\"\n (keydown.space)=\"openPreview($event, attachment)\"\n >\n <si-icon\n class=\"attachment-icon icon flex-shrink-0 m-2\"\n [icon]=\"getFileIcon(attachment.name)\"\n />\n <div class=\"attachment-info flex-grow-1 min-width-0\">\n <span\n class=\"attachment-name me-4 text-truncate si-body d-block\"\n [title]=\"attachment.name\"\n >\n {{ attachment.name }}\n </span>\n </div>\n </button>\n } @else {\n <div class=\"attachment-main--static d-flex align-items-center flex-grow-1 min-width-0\">\n <si-icon\n class=\"attachment-icon icon flex-shrink-0 m-2\"\n [icon]=\"getFileIcon(attachment.name)\"\n />\n <div class=\"attachment-info flex-grow-1 min-width-0\">\n <span\n class=\"attachment-name me-4 text-truncate si-body d-block\"\n [title]=\"attachment.name\"\n >\n {{ attachment.name }}\n </span>\n </div>\n </div>\n }\n\n @if (removable()) {\n <button\n type=\"button\"\n class=\"btn btn-tertiary-ghost btn-sm btn-icon expand-button flex-shrink-0 ms-auto align-self-center focus-inside m-2\"\n [attr.aria-label]=\"removeLabel() | translate: { attachment: attachment.name }\"\n (click)=\"remove.emit(attachment); $event.stopPropagation()\"\n >\n <si-icon class=\"icon\" [icon]=\"icons.elementStateClose\" />\n </button>\n }\n </div>\n }\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n AfterContentInit,\n Component,\n effect,\n ElementRef,\n input,\n OnDestroy,\n PLATFORM_ID,\n viewChild,\n inject\n} from '@angular/core';\n\n/**\n * A declarative container component for displaying a chat interface with automatic scroll-to-bottom behavior.\n *\n * This component provides the layout and styling for a chat interface, managing scrolling behavior\n * to keep the newest messages visible while respecting user scrolling actions. It automatically\n * scrolls to the bottom when new content is added, unless the user has scrolled up to view older messages.\n *\n * Use via content projection:\n * - Default content: Chat messages displayed in the scrollable messages container or a welcome screen (empty state).\n * - `si-inline-notification` selector: Notification component displayed above the input area\n * - `si-chat-input` or `[siChatContainerInput]` selector: Input controls for composing messages\n *\n * @see {@link SiChatInputComponent} for the chat input wrapper component\n * @see {@link SiChatContainerInputDirective} for other input controls to slot in\n * @see {@link SiAiMessageComponent} for AI messages to slot in\n * @see {@link SiUserMessageComponent} for user messages (in AI chats) to slot in\n * @see {@link SiChatMessageComponent} for the chat message wrapper component to slot in other messages\n *\n * @experimental\n */\n@Component({\n selector: 'si-chat-container',\n templateUrl: './si-chat-container.component.html',\n styleUrl: './si-chat-container.component.scss',\n host: {\n class: 'd-flex si-layout-inner flex-grow-1 flex-column h-100 w-100',\n '[class]': 'colorVariant()'\n }\n})\nexport class SiChatContainerComponent implements AfterContentInit, OnDestroy {\n private readonly messagesContainer = viewChild<ElementRef<HTMLDivElement>>('messagesContainer');\n private readonly platformId = inject(PLATFORM_ID);\n\n private isUserAtBottom = true;\n private scrollTimeout: ReturnType<typeof setTimeout> | undefined;\n private lastScrollTime = 0;\n private pendingScroll = false;\n private scrollDebounceMs = 7; // ~144fps\n private resizeObserver: ResizeObserver | undefined;\n private contentObserver: MutationObserver | undefined;\n\n /**\n * The color variant to apply to the container.\n * @defaultValue 'base-0'\n */\n readonly colorVariant = input<string>('base-0');\n\n /**\n * Disables automatic scrolling to the bottom when new content is added.\n * @defaultValue false\n */\n readonly noAutoScroll = input(false, {\n transform: (value: boolean | string) => value === '' || value === true\n });\n\n constructor() {\n effect(() => {\n if (this.messagesContainer()) {\n this.setupResizeObserver();\n this.setupContentObserver();\n }\n });\n }\n\n ngAfterContentInit(): void {\n this.scrollToBottomDuringStreaming();\n }\n\n ngOnDestroy(): void {\n if (this.scrollTimeout) {\n clearTimeout(this.scrollTimeout);\n }\n if (this.resizeObserver) {\n this.resizeObserver.disconnect();\n }\n if (this.contentObserver) {\n this.contentObserver.disconnect();\n }\n }\n\n private scrollToBottomDuringStreaming(): void {\n if (this.noAutoScroll() || !this.isUserAtBottom) {\n return;\n }\n\n const container = this.messagesContainer();\n if (!container) {\n return;\n }\n\n const element = container.nativeElement;\n element.scrollTop = element.scrollHeight;\n }\n\n private debouncedScrollToBottom(): void {\n const now = Date.now();\n const timeSinceLastScroll = now - this.lastScrollTime;\n\n if (timeSinceLastScroll >= this.scrollDebounceMs) {\n this.lastScrollTime = now;\n this.scrollToBottomDuringStreaming();\n this.pendingScroll = false;\n } else {\n this.pendingScroll = true;\n }\n\n if (this.scrollTimeout) {\n clearTimeout(this.scrollTimeout);\n }\n\n this.scrollTimeout = setTimeout(() => {\n if (this.pendingScroll) {\n this.lastScrollTime = Date.now();\n this.scrollToBottomDuringStreaming();\n this.pendingScroll = false;\n }\n }, this.scrollDebounceMs);\n }\n\n private setupResizeObserver(): void {\n if (!isPlatformBrowser(this.platformId)) {\n return;\n }\n\n const container = this.messagesContainer();\n if (!container || this.resizeObserver) {\n return;\n }\n\n this.resizeObserver = new ResizeObserver(() => {\n this.debouncedScrollToBottom();\n });\n\n this.resizeObserver.observe(container.nativeElement);\n }\n\n private setupContentObserver(): void {\n if (!isPlatformBrowser(this.platformId)) {\n return;\n }\n\n const container = this.messagesContainer();\n if (!container || this.contentObserver) {\n return;\n }\n\n this.contentObserver = new MutationObserver(() => {\n this.debouncedScrollToBottom();\n });\n\n this.contentObserver.observe(container.nativeElement, {\n childList: true,\n subtree: true,\n characterData: true\n });\n }\n\n private checkIfUserAtBottom(): void {\n const container = this.messagesContainer();\n if (!container) {\n return;\n }\n\n const element = container.nativeElement;\n const threshold = 100;\n this.isUserAtBottom =\n element.scrollHeight - element.scrollTop - element.clientHeight < threshold;\n }\n\n protected onScroll(): void {\n this.checkIfUserAtBottom();\n }\n\n /**\n * Scrolls to the bottom of the messages container immediately.\n * This method forces a scroll even if the user has scrolled up.\n */\n public scrollToBottom(): void {\n this.isUserAtBottom = true;\n this.scrollToBottomDuringStreaming();\n }\n\n /**\n * Scrolls to the top of the messages container immediately.\n */\n public scrollToTop(): void {\n const container = this.messagesContainer();\n if (!container) {\n return;\n }\n\n const element = container.nativeElement;\n element.scrollTop = 0;\n this.isUserAtBottom = false;\n }\n\n /**\n * Focuses the messages container element.\n */\n public focus(): void {\n const container = this.messagesContainer();\n container?.nativeElement.focus();\n }\n}\n","<div class=\"chat-container d-flex flex-column flex-grow-1 px-6 py-6 w-100\">\n <div\n #messagesContainer\n class=\"messages-container d-flex flex-column flex-grow-1 w-100 align-self-center\"\n tabindex=\"0\"\n (scroll)=\"onScroll()\"\n >\n <ng-content />\n </div>\n\n <div class=\"chat-input-area py-3 pt-0 mt-6 d-flex flex-column align-items-center\">\n <ng-content select=\"si-inline-notification\" />\n <ng-content select=\"si-chat-input,[siChatContainerInput]\" />\n </div>\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Directive } from '@angular/core';\n\n/**\n * A directive to mark elements as input controls within a {@link SiChatContainerComponent}.\n *\n * This directive is used to identify and style input elements that belong to\n * the chat container component, typically applied to form inputs or textareas\n * used for composing chat messages.\n *\n * @example\n * ```html\n * <si-chat-container>\n * <si-chat-message>Hello!</si-chat-message>\n * <si-chat-message>How are you?</si-chat-message>\n *\n * <input siChatContainerInput type=\"text\" placeholder=\"Type a message...\" />\n * </si-chat-container>\n * ```\n *\n * @see {@link SiChatContainerComponent} for the chat container wrapper component\n *\n * @experimental\n */\n@Directive({\n selector: '[siChatContainerInput]'\n})\nexport class SiChatContainerInputDirective {}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { InjectionToken, Signal } from '@angular/core';\n\n/**\n * Parent contract used by {@link SiChatInputComponent} when it is projected into a chat container.\n */\nexport interface SiChatInputParent {\n readonly inputSending: Signal<boolean>;\n readonly inputInterruptible: Signal<boolean>;\n onInputSend(): void;\n}\n\n/**\n * Optional parent contract for {@link SiChatInputComponent}.\n */\nexport const SI_CHAT_INPUT_PARENT = new InjectionToken<SiChatInputParent>('si.chat-input.parent');\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { CdkMenuTrigger } from '@angular/cdk/menu';\nimport {\n afterNextRender,\n AfterViewInit,\n booleanAttribute,\n Component,\n computed,\n ElementRef,\n inject,\n Injector,\n input,\n model,\n output,\n viewChild,\n signal,\n effect\n} from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport {\n elementAttachment,\n elementPlus,\n elementSendFilled,\n elementStopFilled\n} from '@siemens/element-icons';\nimport {\n SiFileUploadDirective,\n UploadFile,\n FileUploadError\n} from '@siemens/element-ng/file-uploader';\nimport { addIcons, SiIconComponent } from '@siemens/element-ng/icon';\nimport {\n MenuItemAction,\n SiMenuActionService,\n SiMenuFactoryComponent\n} from '@siemens/element-ng/menu';\nimport { SiTooltipDirective } from '@siemens/element-ng/tooltip';\nimport { SiTranslatePipe, TranslatableString, t } from '@siemens/element-translate-ng/translate';\n\nimport { Attachment, SiAttachmentListComponent } from './si-attachment-list.component';\nimport { SI_CHAT_INPUT_PARENT, SiChatInputParent } from './si-chat-input-token';\n\n/**\n * Attachment item interface for file attachments in chat messages, extension of {@link Attachment} for {@link SiAttachmentListComponent} to use within {@link SiChatInputComponent}.\n * Adds the action file information.\n * Can be used within {@link SiChatContainerComponent}.\n *\n * @see {@link Attachment} for base attachment interface\n * @see {@link SiAttachmentListComponent} for the attachment list component\n * @see {@link SiChatInputComponent} for the chat input component\n * @see {@link SiChatContainerComponent} for the base chat container component where this can be used\n * @see {@link SiAiChatComponent} for the AI chat container where this needs to be used\n *\n * @experimental\n */\nexport interface ChatInputAttachment extends Attachment {\n /** File object */\n file: File;\n /** File size in bytes */\n size: number;\n /** MIME type */\n type: string;\n}\n\n/**\n * Chat input component for composing and sending messages in conversational interfaces.\n *\n * The chat input component provides a text area for users to compose messages,\n * supporting text, attachments, and contextual actions. It appears as a textarea\n * with buttons for adding attachments and sending messages, as well as an optional disclaimer.\n *\n * The component automatically handles:\n * - Styling for chat input and actions.\n * - Dynamic resizing of the textarea based on content.\n * - Uploading of and displaying of attachments above the input area.\n * - Displaying primary and secondary actions.\n *\n * Additionally to the inputs and outputs documented here, the component supports content projection via the following slots:\n *\n * - Default content: Custom action buttons to display inline, prefer using the `actions` input for buttons, can be used in addition.\n * - `siChatInputDisclaimer` selector: Custom disclaimer content to display below the input area, prefer using the `disclaimer` input for simple text disclaimers.\n *\n * @see {@link SiAttachmentListComponent} for the base attachment component\n * @see {@link SiChatInputDisclaimerDirective} to slot in custom disclaimer content\n *\n * @experimental\n */\n@Component({\n selector: 'si-chat-input',\n imports: [\n CdkMenuTrigger,\n FormsModule,\n SiIconComponent,\n SiTranslatePipe,\n SiAttachmentListComponent,\n SiMenuFactoryComponent,\n SiFileUploadDirective,\n SiTooltipDirective\n ],\n templateUrl: './si-chat-input.component.html',\n styleUrl: './si-chat-input.component.scss'\n})\nexport class SiChatInputComponent implements AfterViewInit {\n private static idCounter = 0;\n private readonly textInput = viewChild<ElementRef<HTMLTextAreaElement>>('textInput');\n private readonly fileUploadDirective = viewChild(SiFileUploadDirective);\n protected readonly fileInput = viewChild<ElementRef<HTMLInputElement>>('fileInput');\n protected readonly icons = addIcons({\n elementAttachment,\n elementPlus,\n elementSendFilled,\n elementStopFilled\n });\n\n private readonly parent = inject<SiChatInputParent>(SI_CHAT_INPUT_PARENT, { optional: true });\n\n constructor() {\n effect(() => {\n const parent = this.parent;\n if (parent) {\n this.sending.set(parent.inputSending());\n this.interruptible.set(parent.inputInterruptible());\n }\n });\n }\n\n /**\n * Current input value\n * @defaultValue ''\n */\n readonly value = model<string>('');\n\n /**\n * Placeholder text for the input\n *\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_CHAT_INPUT.PLACEHOLDER:Enter a message…`)\n * ```\n */\n readonly placeholder = input<TranslatableString>(\n t(() => $localize`:@@SI_CHAT_INPUT.PLACEHOLDER:Enter a message…`)\n );\n\n /**\n * Whether the input is disabled\n * @defaultValue false\n */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n /**\n * Whether a message is currently being sent, also prevent the sending of new ones while still allowing the user to type\n * @defaultValue false\n */\n readonly sending = model(false);\n\n /**\n * Whether the input supports interrupting ongoing operations. When active,\n * the send button transforms into an interrupt button (with element-stop-filled icon).\n * If sending is true, the interrupt button will be disabled.\n * @defaultValue false\n */\n readonly interruptible = model(false);\n\n /**\n * Maximum number of characters allowed\n */\n readonly maxLength = input<number>();\n\n /**\n * A disclaimer to display.\n *\n * If not provided, the component will look for projected content with the `siChatInputDisclaimer` directive.\n * If both are empty, no disclaimer section will be shown (handled via CSS :empty).\n */\n readonly disclaimer = input<TranslatableString>();\n\n /**\n * Primary actions available in the input. Provide at most one action.\n * @defaultValue []\n */\n readonly actions = input<MenuItemAction[]>([]);\n\n /**\n * Secondary actions available in dropdown menu\n * @defaultValue []\n */\n readonly secondaryActions = input<MenuItemAction[]>([]);\n\n /**\n * Whether file attachments are supported\n * @defaultValue false\n */\n readonly allowAttachments = input(false);\n\n /**\n * Accepted file types for attachments (as accept string)\n * @defaultValue undefined\n */\n readonly accept = input<string>();\n\n /**\n * Maximum file size in bytes\n * @defaultValue 10485760 (10MB)\n */\n readonly maxFileSize = input(10485760);\n\n /**\n * Current attachments\n * @defaultValue []\n */\n readonly attachments = model<ChatInputAttachment[]>([]);\n\n /**\n * The label for the input, used for accessibility\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_CHAT_INPUT.LABEL:Chat input`)\n * ```\n */\n readonly label = input<string>(t(() => $localize`:@@SI_CHAT_INPUT.LABEL:Chat input`));\n\n /** Parameter to pass to action handlers */\n readonly actionParam = input<any>();\n\n /**\n * Send button label\n *\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_CHAT_INPUT.SEND:Send`)\n * ```\n */\n readonly sendButtonLabel = input<TranslatableString>(\n t(() => $localize`:@@SI_CHAT_INPUT.SEND:Send`)\n );\n\n /**\n * Send button icon\n *\n * @defaultValue this.icons.elementSendFilled\n */\n readonly sendButtonIcon = input(this.icons.elementSendFilled);\n\n /**\n * Interrupt button label\n *\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_CHAT_INPUT.INTERRUPT:Stop processing`)\n * ```\n */\n readonly interruptButtonLabel = input<TranslatableString>(\n t(() => $localize`:@@SI_CHAT_INPUT.INTERRUPT:Stop processing`)\n );\n\n /**\n * Auto-focus the input on component initialization\n * @defaultValue false\n */\n readonly autoFocus = input(false, { transform: booleanAttribute });\n\n /**\n * Attach file button aria label\n *\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_CHAT_INPUT.ATTACH_FILE:Attach file`)\n * ```\n */\n readonly attachFileLabel = input<TranslatableString>(\n t(() => $localize`:@@SI_CHAT_INPUT.ATTACH_FILE:Attach file`)\n );\n\n /**\n * Remove attachment aria label.\n * The attachment name is available with `{{attachment}}`.\n *\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_ATTACHMENT_LIST.REMOVE_ATTACHMENT:Remove {{attachment}}`)\n * ```\n */\n readonly removeAttachmentLabel = input<TranslatableString>(\n t(() => $localize`:@@SI_ATTACHMENT_LIST.REMOVE_ATTACHMENT:Remove {{attachment}}`)\n );\n\n /**\n * More actions button aria label\n *\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_CHAT_INPUT.SECONDARY_ACTIONS:Additional actions`)\n * ```\n */\n readonly secondaryActionsLabel = input<TranslatableString>(\n t(() => $localize`:@@SI_CHAT_INPUT.SECONDARY_ACTIONS:Additional actions`)\n );\n\n /**\n * Suggested follow-up prompts to display as pill buttons above the chat input.\n * Use `followUpPromptSelected` to handle selection and update the input value.\n * Typically populated from AI response data and cleared after selection or on send.\n * @defaultValue []\n */\n readonly followUpPrompts = input<string[]>([]);\n\n /**\n * Emitted when the user selects a follow-up prompt.\n * The emitted value is the text of the selected prompt.\n */\n readonly followUpPromptSelected = output<string>();\n\n /**\n * Emitted when the user wants to send a message\n */\n readonly send = output<{\n content: string;\n attachments: ChatInputAttachment[];\n }>();\n\n /**\n * Emitted when the user wants to interrupt the current operation\n */\n readonly interrupt = output<void>();\n\n /**\n * Emitted when file upload errors occur\n */\n readonly fileError = output<FileUploadError>();\n\n protected readonly id = `__si-chat-input-${SiChatInputComponent.idCounter++}`;\n protected readonly hasContent = computed(() => this.value().trim().length > 0);\n protected readonly hasAttachments = computed(() => this.attachments().length > 0);\n protected readonly hasActions = computed(() => this.actions().length > 0);\n protected readonly hasSecondaryActions = computed(() => this.secondaryActions().length > 0);\n protected readonly combinedMenuActions = computed<MenuItemAction[]>(() => [\n ...(this.allowAttachments()\n ? [\n {\n type: 'action' as const,\n label: this.attachFileLabel(),\n icon: this.icons.elementAttachment,\n disabled: this.disabled(),\n action: () => this.triggerFileInput()\n } satisfies MenuItemAction\n ]\n : []),\n ...this.secondaryActions()\n ]);\n\n protected readonly hasMenuActions = computed(() => this.hasSecondaryActions());\n\n protected triggerFileInput(): void {\n this.fileInput()?.nativeElement.click();\n }\n protected readonly canSend = computed(\n () => (this.hasContent() || this.hasAttachments()) && !this.disabled() && !this.sending()\n );\n\n protected readonly showInterruptButton = computed(() => this.interruptible());\n protected readonly buttonDisabled = computed(() => {\n if (this.showInterruptButton()) {\n return this.disabled() || this.sending();\n }\n return !this.canSend();\n });\n protected readonly buttonIcon = computed(() =>\n this.showInterruptButton() ? this.icons.elementStopFilled : this.sendButtonIcon()\n );\n protected readonly buttonLabel = computed(() =>\n this.showInterruptButton() ? this.interruptButtonLabel() : this.sendButtonLabel()\n );\n\n protected readonly dragOver = signal(false);\n\n private readonly injector = inject(Injector);\n private readonly menuActionService = inject(SiMenuActionService, { optional: true });\n\n protected runAction(action: MenuItemAction): void {\n if (typeof action.action === 'function') {\n action.action(this.actionParam(), action);\n } else {\n this.menuActionService?.actionTriggered(action, this.actionParam());\n }\n }\n\n protected onInputChange(value: string): void {\n this.value.set(value);\n }\n\n protected selectFollowUpPrompt(prompt: string): void {\n this.followUpPromptSelected.emit(prompt);\n this.focus();\n afterNextRender(\n () => {\n const textarea = this.textInput();\n if (textarea?.nativeElement) {\n this.setTextareaHeight(textarea.nativeElement);\n }\n },\n { injector: this.injector }\n );\n }\n\n protected onSend(): void {\n if (this.canSend()) {\n this.send.emit({\n content: this.value(),\n attachments: this.attachments()\n });\n this.parent?.onInputSend();\n\n this.value.set('');\n this.attachments.set([]);\n }\n }\n\n protected onButtonClick(): void {\n if (this.showInterruptButton()) {\n this.interrupt.emit();\n } else {\n this.onSend();\n }\n }\n\n protected onKeyDown(event: KeyboardEvent): void {\n if (event.key === 'Enter' && !event.shiftKey) {\n event.preventDefault();\n if (!this.canSend()) {\n return;\n }\n if (this.showInterruptButton()) {\n this.interrupt.emit();\n }\n this.onSend();\n }\n }\n\n protected onFilesAdded(uploadFiles: UploadFile[]): void {\n const validFiles = uploadFiles.filter(uploadFile => uploadFile.status === 'added');\n\n validFiles.forEach(uploadFile => {\n const size = parseInt(uploadFile.size, 10);\n const attachment: ChatInputAttachment = {\n name: uploadFile.fileName,\n size: isNaN(size) ? uploadFile.file.size : size,\n type: uploadFile.file.type,\n file: uploadFile.file\n };\n\n this.attachments.update(current => [...current, attachment]);\n });\n }\n\n protected onFileError(error: FileUploadError): void {\n this.fileError.emit(error);\n }\n\n protected removeAttachment(attachment: Attachment): void {\n this.attachments.update(current => {\n return current.filter(a => a !== attachment);\n });\n }\n\n protected onContainerClick(event: Event): void {\n const target = event.target as HTMLElement;\n\n // Don't focus if clicking on interactive elements\n if (\n target.tagName === 'BUTTON' ||\n target.tagName === 'INPUT' ||\n target.tagName === 'TEXTAREA' ||\n target.closest('button') ||\n target.closest('[siChatMessageAction]') ||\n (target.closest('si-attachment-list') && target.closest('.attachment-item'))\n ) {\n return;\n }\n\n this.focus();\n }\n\n ngAfterViewInit(): void {\n const textarea = this.textInput();\n if (textarea?.nativeElement) {\n this.setTextareaHeight(textarea.nativeElement);\n\n if (this.autoFocus()) {\n // Use setTimeout to ensure the element is fully rendered\n setTimeout(() => {\n textarea.nativeElement.focus();\n }, 0);\n }\n }\n }\n\n protected adjustTextareaHeight(event: Event): void {\n const textarea = event.target as HTMLTextAreaElement;\n this.setTextareaHeight(textarea);\n }\n\n /**\n * Focus the textarea input\n */\n focus(): void {\n const textarea = this.textInput();\n if (textarea?.nativeElement) {\n textarea.nativeElement.focus();\n }\n }\n\n protected dropHandler(event: DragEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.dragOver.set(false);\n\n if (!this.allowAttachments() || this.disabled()) {\n return;\n }\n\n const directive = this.fileUploadDirective();\n if (directive && event.dataTransfer?.files) {\n directive.handleFiles(event.dataTransfer.files);\n }\n }\n\n protected dragOverHandler(event: DragEvent): void {\n if (!this.allowAttachments() || this.disabled()) {\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n this.dragOver.set(true);\n }\n\n private setTextareaHeight(textarea: HTMLTextAreaElement): void {\n textarea.style.blockSize = 'auto';\n\n const computedStyle = window.getComputedStyle(textarea);\n const lineHeight =\n parseInt(computedStyle.lineHeight, 10) || parseInt(computedStyle.fontSize, 10) * 1.2;\n const paddingTop = parseInt(computedStyle.paddingBlockStart, 10) || 0;\n const paddingBottom = parseInt(computedStyle.paddingBlockEnd, 10) || 0;\n const minHeight = lineHeight + paddingTop + paddingBottom;\n\n const viewportHeight = window.innerHeight;\n const maxViewportHeight = viewportHeight * 0.3;\n const maxLinesHeight = lineHeight * 8;\n const maxHeight = Math.min(maxViewportHeight, maxLinesHeight) + paddingTop + paddingBottom;\n\n const scrollHeight = textarea.scrollHeight;\n const finalHeight = Math.max(Math.min(scrollHeight, maxHeight), minHeight);\n textarea.style.height = finalHeight + 'px';\n }\n}\n","@if (followUpPrompts().length) {\n <div class=\"follow-up-prompts d-flex flex-wrap gap-4 mb-4\">\n @for (prompt of followUpPrompts(); track $index) {\n <button\n type=\"button\"\n class=\"btn btn-secondary-ghost fw-normal\"\n [disabled]=\"disabled() || sending()\"\n (click)=\"selectFollowUpPrompt(prompt)\"\n >{{ prompt }}</button\n >\n }\n </div>\n}\n\n<div\n class=\"input-wrapper border rounded-3\"\n [class.drag-over]=\"dragOver()\"\n (click)=\"onContainerClick($event)\"\n (drop)=\"dropHandler($event)\"\n (dragover)=\"dragOverHandler($event)\"\n (dragleave)=\"dragOver.set(false)\"\n>\n @if (hasAttachments()) {\n <si-attachment-list\n [attachments]=\"attachments()\"\n [removeLabel]=\"removeAttachmentLabel()\"\n [removable]=\"true\"\n (remove)=\"removeAttachment($event)\"\n />\n }\n\n <div class=\"si-body-paragraph\">\n <label class=\"form-label d-none\" [for]=\"id\">{{ label() | translate }}</label>\n <textarea\n #textInput\n class=\"chat-textarea w-100 border-0\"\n rows=\"1\"\n [id]=\"id\"\n [placeholder]=\"placeholder() | translate\"\n [disabled]=\"disabled()\"\n [maxlength]=\"maxLength() || null\"\n [(ngModel)]=\"value\"\n (keydown)=\"onKeyDown($event)\"\n (input)=\"adjustTextareaHeight($event)\"\n ></textarea>\n </div>\n\n <div class=\"d-flex align-items-center justify-content-between\">\n <div class=\"d-flex align-items-center gap-0\">\n <div class=\"btn-group\" role=\"group\">\n @if (allowAttachments()) {\n <input\n #fileInput\n type=\"file\"\n class=\"d-none\"\n siFileUpload\n [accept]=\"accept()\"\n [maxFileSize]=\"maxFileSize()\"\n [multiple]=\"true\"\n (validFiles)=\"onFilesAdded($event)\"\n (fileError)=\"onFileError($event)\"\n />\n }\n\n @if (allowAttachments() && !hasSecondaryActions()) {\n <button\n type=\"button\"\n class=\"btn btn-tertiary-ghost btn-icon\"\n [disabled]=\"disabled()\"\n [siTooltip]=\"attachFileLabel() | translate\"\n [attr.aria-label]=\"attachFileLabel() | translate\"\n (click)=\"triggerFileInput()\"\n >\n <si-icon [icon]=\"icons.elementAttachment\" />\n </button>\n }\n\n @if (hasMenuActions()) {\n <button\n type=\"button\"\n class=\"btn btn-tertiary-ghost btn-icon\"\n [cdkMenuTriggerFor]=\"allActionsMenu\"\n [siTooltip]=\"secondaryActionsLabel() | translate\"\n [attr.aria-label]=\"secondaryActionsLabel() | translate\"\n >\n <si-icon [icon]=\"icons.elementPlus\" />\n </button>\n\n <ng-template #allActionsMenu>\n <si-menu-factory [items]=\"combinedMenuActions()\" [actionParam]=\"actionParam()\" />\n </ng-template>\n }\n @if (hasActions()) {\n @for (action of actions(); track $index) {\n <button\n type=\"button\"\n class=\"btn btn-tertiary-ghost\"\n [class.btn-icon]=\"!!action.icon\"\n [disabled]=\"action.disabled\"\n [siTooltip]=\"action.label | translate\"\n [attr.aria-label]=\"action.label | translate\"\n (click)=\"runAction(action)\"\n >\n @if (action.icon) {\n <si-icon [icon]=\"action.icon\" />\n } @else {\n {{ action.label | translate }}\n }\n </button>\n }\n }\n </div>\n <div class=\"d-flex align-items-center gap-0\">\n <ng-content />\n </div>\n </div>\n\n <button\n type=\"button\"\n class=\"btn btn-tertiary btn-icon\"\n [disabled]=\"buttonDisabled()\"\n [attr.aria-label]=\"buttonLabel() | translate\"\n (click)=\"onButtonClick()\"\n >\n <si-icon class=\"text-accent\" [icon]=\"buttonIcon()\" />\n </button>\n </div>\n</div>\n\n<div class=\"disclaimer-wrapper text-center mt-4 px-3\">\n @if (disclaimer()) {\n <span class=\"si-body-sm text-secondary d-block\">{{ disclaimer() | translate }}</span>\n }\n <ng-content select=\"[siChatInputDisclaimer]\" />\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Directive } from '@angular/core';\n\n/**\n * Directive to mark content as chat input disclaimer into {@link SiChatInputComponent}.\n * Apply this directive to content that should be slotted into the disclaimer area.\n *\n * @example\n * ```html\n * <si-chat-input>\n * <div siChatInputDisclaimer>\n * Custom disclaimer content\n * </div>\n * </si-chat-input>\n * ```\n *\n * @see {@link SiChatInputComponent} for the chat input wrapper component\n *\n * @experimental\n */\n@Directive({\n selector: '[siChatInputDisclaimer]'\n})\nexport class SiChatInputDisclaimerDirective {}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Component, input, computed } from '@angular/core';\nimport { MenuItemAction } from '@siemens/element-ng/menu';\nimport { t } from '@siemens/element-translate-ng/translate';\n\nimport { Attachment, SiAttachmentListComponent } from './si-attachment-list.component';\nimport { SiChatMessageActionDirective } from './si-chat-message-action.directive';\nimport { SiChatMessageActionsComponent } from './si-chat-message-actions.component';\nimport { SiChatMessageComponent } from './si-chat-message.component';\n\n/**\n * User message component for displaying the user's messages in conversational interfaces.\n *\n * The user message component renders user-submitted content in (AI) chat interfaces,\n * supporting text, attachments, and contextual actions. It appears as a text bubble\n * aligned to the right side.\n * Can be used within {@link SiChatContainerComponent}.\n *\n * The component automatically handles:\n * - Styling for user messages distinct from AI or generic chat messages\n * - Displaying attachments above the message bubble\n * - Displaying primary and secondary actions\n *\n * @see {@link SiChatMessageComponent} for the base message wrapper component\n * @see {@link SiAiMessageComponent} for the AI message component\n * @see {@link SiAttachmentListComponent} for the base attachment component\n * @see {@link SiChatContainerComponent} for the chat container to use this within\n *\n * @experimental\n */\n@Component({\n selector: 'si-user-message',\n imports: [\n SiAttachmentListComponent,\n SiChatMessageComponent,\n SiChatMessageActionDirective,\n SiChatMessageActionsComponent\n ],\n templateUrl: './si-user-message.component.html',\n styleUrl: './si-user-message.component.scss'\n})\nexport class SiUserMessageComponent {\n /**\n * The user message content\n * @defaultValue ''\n */\n readonly content = input<string>('');\n\n /**\n * Primary message actions (edit, delete, copy, etc.).\n * All actions displayed inline\n * @defaultValue []\n */\n readonly actions = input<MenuItemAction[]>([]);\n\n /**\n * Secondary actions available in dropdown menu, first use primary actions and only add secondary actions additionally\n * @defaultValue []\n */\n readonly secondaryActions = input<MenuItemAction[]>([]);\n\n /**\n * List of attachments included with this message\n * @defaultValue []\n */\n readonly attachments = input<Attachment[]>([]);\n\n /** Parameter to pass to action handlers */\n readonly actionParam = input<any>();\n\n /**\n * More actions button aria label\n *\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_USER_MESSAGE.SECONDARY_ACTIONS:Additional actions`)\n * ```\n */\n readonly secondaryActionsLabel = input(\n t(() => $localize`:@@SI_USER_MESSAGE.SECONDARY_ACTIONS:Additional actions`)\n );\n\n protected readonly hasAttachments = computed(() => this.attachments()?.length > 0);\n}\n","<si-chat-message alignment=\"end\" actionsPosition=\"bottom\" [loading]=\"false\">\n @if (hasAttachments()) {\n <si-attachment-list alignment=\"end\" [attachments]=\"attachments()\" [removable]=\"false\" />\n }\n\n @if (content()) {\n <span class=\"text-pre-wrap\">{{ content() }}</span>\n } @else {\n <ng-content />\n }\n @if (actions().length > 0 || secondaryActions().length > 0) {\n <si-chat-message-actions\n class=\"user-message-actions\"\n siChatMessageAction\n [actions]=\"actions()\"\n [secondaryActions]=\"secondaryActions()\"\n [actionParam]=\"actionParam()\"\n [secondaryActionsLabel]=\"secondaryActionsLabel()\"\n />\n }\n</si-chat-message>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Component, input, model, output } from '@angular/core';\nimport { SiActionCardComponent } from '@siemens/element-ng/card';\nimport { SiSummaryChipComponent } from '@siemens/element-ng/summary-chip';\nimport { TranslatableString } from '@siemens/element-translate-ng/translate';\n\nexport interface PromptCategory {\n label: TranslatableString;\n}\n\nexport interface PromptSuggestion {\n text: TranslatableString;\n}\n\n/**\n * AI welcome screen component for displaying initial state in AI chat interfaces.\n *\n * The AI welcome screen component provides an engaging initial state for AI chat interfaces,\n * featuring a welcome message, optional prompt categories for filtering, and suggested prompts\n * that users can click to start conversations.\n *\n * The component includes:\n * - Welcome header with AI branding and customizable greeting\n * - Optional category pills for filtering prompt suggestions\n * - Clickable prompt suggestion cards\n * - Optional refresh button to regenerate suggestions\n *\n * @see {@link SiAiChatComponent} for the AI chat container which uses this component\n * @see {@link SiChatContainerComponent} for the base chat container\n *\n * @experimental\n */\n@Component({\n selector: 'si-ai-welcome-screen',\n imports: [SiActionCardComponent, SiSummaryChipComponent],\n templateUrl: './si-ai-welcome-screen.component.html',\n styleUrl: './si-ai-welcome-screen.component.scss',\n host: {\n class: 'd-block'\n }\n})\nexport class SiAiWelcomeScreenComponent {\n /**\n * The list of prompt categories\n * @defaultValue []\n */\n readonly categories = input<PromptCategory[]>([]);\n\n /**\n * The currently selected category ID\n * @defaultValue undefined\n */\n readonly selectedCategory = model<string | undefined>(undefined);\n\n /**\n * The list of prompt suggestions as an array, update this when the selected category changes.\n * @defaultValue []\n */\n readonly promptSuggestions = input<PromptSuggestion[]>([]);\n\n /**\n * Emitted when a prompt suggestion is clicked\n */\n readonly promptSelected = output<PromptSuggestion>();\n\n protected onCategoryClick(categoryLabel: string): void {\n this.selectedCategory.set(\n this.selectedCategory() === categoryLabel ? undefined : categoryLabel\n );\n }\n\n protected onPromptClick(suggestion: PromptSuggestion): void {\n this.promptSelected.emit(suggestion);\n }\n}\n","<div class=\"d-flex flex-column gap-13 align-items-center w-100\">\n <!-- Welcome Header -->\n <div class=\"welcome-header d-flex flex-column gap-4 w-100 pt-13 pb-8\">\n <ng-content />\n </div>\n\n <!-- Prompt Categories and Suggestions -->\n <div class=\"prompt-suggestions d-flex flex-column gap-6 align-items-center w-100\">\n @if (categories().length > 0) {\n <div class=\"d-flex gap-4 align-items-center w-100\">\n @for (category of categories(); track $index) {\n <si-summary-chip\n class=\"user-select-none\"\n [label]=\"category.label\"\n [selected]=\"selectedCategory() === category.label\"\n (selectedChange)=\"onCategoryClick(category.label)\"\n />\n }\n </div>\n }\n\n @if (promptSuggestions().length > 0) {\n <div class=\"d-flex flex-column gap-4 w-100\">\n @for (suggestion of promptSuggestions(); track $index) {\n <button si-action-card type=\"button\" class=\"w-100\" (click)=\"onPromptClick(suggestion)\">\n <div body class=\"card-body card-text\">\n {{ suggestion.text }}\n </div>\n </button>\n }\n </div>\n }\n </div>\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n computed,\n input,\n output,\n booleanAttribute,\n contentChild,\n Signal,\n isSignal,\n effect,\n viewChild,\n signal\n} from '@angular/core';\nimport { BackgroundColorVariant } from '@siemens/element-ng/common';\nimport { SiInlineNotificationComponent } from '@siemens/element-ng/inline-notification';\nimport {\n makeSiMarkdownOptions,\n SiMarkdownComponent,\n SiMarkdownOptions\n} from '@siemens/element-ng/markdown';\nimport { SiTranslatePipe, TranslatableString, t } from '@siemens/element-translate-ng/translate';\n\nimport {\n ActivityChatMessage,\n ActivityDetailsDisplay,\n ActivityTraceChatMessage,\n AiChatMessage,\n ChatMessage,\n TemplateChatMessage\n} from './chat-message.model';\nimport { SiActivityMessagePartComponent } from './si-activity-message-part.component';\nimport { SiActivityMessageComponent } from './si-activity-message.component';\nimport { SiActivityTraceComponent } from './si-activity-trace.component';\nimport { SiAiMessageComponent } from './si-ai-message.component';\nimport { PromptSuggestion, SiAiWelcomeScreenComponent } from './si-ai-welcome-screen.component';\nimport { SiChatContainerInputDirective } from './si-chat-container-input.directive';\nimport { SiChatContainerComponent } from './si-chat-container.component';\nimport { SI_CHAT_INPUT_PARENT, SiChatInputParent } from './si-chat-input-token';\nimport { ChatInputAttachment, SiChatInputComponent } from './si-chat-input.component';\nimport { SiUserMessageComponent } from './si-user-message.component';\n\ninterface ActivityInputPart {\n content?: string;\n heading: TranslatableString;\n key?: string;\n}\n\n/**\n * A model-driven chat container component for displaying an AI chat interface with automatic scroll-to-bottom behavior.\n *\n * This component provides an AI chat interface, managing scrolling behavior\n * to keep the newest messages visible while respecting user scrolling actions. It automatically\n * scrolls to the bottom when new content is added, unless the user has scrolled up to view older messages.\n *\n * Required content projection:\n * - `si-chat-input`: Input controls for composing messages\n *\n * @see {@link ChatMessage} for the chat message model\n * @see {@link AiChatMessage} for the AI chat message model\n * @see {@link UserChatMessage} for the user chat message model\n * @see {@link TemplateChatMessage} for the template chat message model\n * @see {@link SiChatInputComponent} for the chat input component\n * @see {@link SiChatContainerComponent} for the base chat container component\n * @see {@link SiAiMessageComponent} for the used AI message component\n * @see {@link SiUserMessageComponent} for the used user message component\n * @see {@link SiChatMessageComponent} for the base wrapper chat message component used by AI and user message components\n *\n * @experimental\n */\n@Component({\n selector: 'si-ai-chat',\n imports: [\n NgTemplateOutlet,\n SiInlineNotificationComponent,\n SiAiMessageComponent,\n SiActivityMessageComponent,\n SiActivityMessagePartComponent,\n SiActivityTraceComponent,\n SiUserMessageComponent,\n SiMarkdownComponent,\n SiChatContainerComponent,\n SiChatContainerInputDirective,\n SiTranslatePipe,\n SiAiWelcomeScreenComponent\n ],\n templateUrl: './si-ai-chat.component.html',\n providers: [{ provide: SI_CHAT_INPUT_PARENT, useExisting: SiAiChatComponent }],\n host: {\n class: 'd-flex si-layout-inner flex-grow-1 flex-column h-100 w-100'\n }\n})\nexport class SiAiChatComponent implements SiChatInputParent {\n private readonly chatInput = contentChild<SiChatInputComponent>(SiChatInputComponent);\n private readonly chatContainer = viewChild<SiChatContainerComponent>(SiChatContainerComponent);\n\n constructor() {\n effect(() => {\n if (this.isEmpty()) {\n this.chatContainer()?.scrollToTop();\n }\n });\n }\n\n /**\n * List of chat messages to display. Messages can contain either content (string)\n * or a template (TemplateRef) for custom rendering. When both content and template\n * are provided, the template takes precedence.\n */\n readonly messages = input<ChatMessage[] | undefined>();\n\n /**\n * Whether the latest activity details are expanded automatically.\n * @defaultValue true\n */\n readonly autoExpand = input(true, { transform: booleanAttribute });\n\n /**\n * Which activity input and output parts are shown.\n * @defaultValue 'auto'\n */\n readonly show = input<ActivityDetailsDisplay>('auto');\n\n /**\n * Whether a message is currently being sent, disables input and shows a loading state in the input area.\n * If you want to show a loading state for the latest AI message, set {@link loading} to true instead.\n * @defaultValue false\n */\n readonly sending = input(false, { transform: booleanAttribute });\n\n /**\n * Whether a pending loading AI message should be shown (e.g. while waiting for response).\n * If you also want to prevent the user from sending new messages, set {@link sending} to true as well.\n * @defaultValue false\n */\n readonly loading = input(false, { transform: booleanAttribute });\n\n /**\n * Whether to disable the interrupt functionality\n * @defaultValue false\n */\n readonly disableInterrupt = input(false, { transform: booleanAttribute });\n\n /**\n * Whether the system is currently interrupting an operation. When true,\n * forces interruptible mode and shows sending state on the input.\n * @defaultValue false\n */\n readonly interrupting = input(false, { transform: booleanAttribute });\n\n /**\n * Disable auto-scroll to bottom when new messages are added\n * @defaultValue false\n */\n readonly noAutoScroll = input(false, { transform: booleanAttribute });\n\n /**\n * Custom AI icon name, used for empty state\n * @defaultValue 'element-ai'\n */\n readonly aiIcon = input('element-ai');\n\n /**\n * Color to use for component background.\n * @defaultValue 'base-0'\n */\n readonly colorVariant = input<BackgroundColorVariant>('base-0');\n\n /**\n * Options used to render chat message markdown.\n * @defaultValue\n * ```\n * makeSiMarkdownOptions()\n * ```\n */\n readonly markdownOptions = input<SiMarkdownOptions>(makeSiMarkdownOptions());\n\n /**\n * The greeting text for the welcome screen\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_AI_CHAT_CONTAINER.WELCOME_GREETING:Hello,`)\n * ```\n */\n readonly greeting = input(t(() => $localize`:@@SI_AI_CHAT_CONTAINER.WELCOME_GREETING:Hello,`));\n\n /**\n * The welcome message text for the welcome screen\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_AI_CHAT_CONTAINER.WELCOME_MESSAGE:how can I help you today?`)\n * ```\n */\n readonly welcomeMessage = input(\n t(() => $localize`:@@SI_AI_CHAT_CONTAINER.WELCOME_MESSAGE:how can I help you today?`)\n );\n\n /**\n * The list of prompt suggestions for the welcome screen, either as an array or a record mapping category labels to suggestion arrays\n * @defaultValue []\n */\n readonly promptSuggestions = input<PromptSuggestion[] | Record<string, PromptSuggestion[]>>([]);\n\n /**\n * More actions button aria label\n *\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_AI_CHAT_CONTAINER.SECONDARY_ACTIONS:More actions`)\n * ```\n */\n readonly secondaryActionsLabel = input(\n t(() => $localize`:@@SI_AI_CHAT_CONTAINER.SECONDARY_ACTIONS:More actions`)\n );\n\n /**\n * Status notification severity\n */\n readonly statusSeverity = input<\n 'info' | 'success' | 'caution' | 'warning' | 'danger' | 'critical'\n >();\n\n /**\n * Status notification heading\n */\n readonly statusHeading = input<string>();\n\n /**\n * Status notification message\n */\n readonly statusMessage = input<string>();\n\n /**\n * Status notification action link\n */\n readonly statusAction = input<{ title: string; href: string; target?: string }>();\n\n /**\n * Label for activity input arguments.\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_AI_CHAT_CONTAINER.INPUT_ARGUMENTS:Input arguments`)\n * ```\n */\n readonly activityInputArgumentsLabel = input(\n t(() => $localize`:@@SI_AI_CHAT_CONTAINER.INPUT_ARGUMENTS:Input arguments`)\n );\n\n /**\n * Label for activity output.\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_AI_CHAT_CONTAINER.OUTPUT:Output`)\n * ```\n */\n readonly activityOutputLabel = input(t(() => $localize`:@@SI_AI_CHAT_CONTAINER.OUTPUT:Output`));\n\n /**\n * Default name for reasoning activities.\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_AI_CHAT_CONTAINER.REASONING:Reasoning`)\n * ```\n */\n readonly activityReasoningLabel = input(\n t(() => $localize`:@@SI_AI_CHAT_CONTAINER.REASONING:Reasoning`)\n );\n\n /**\n * Emitted when a new message is sent\n */\n readonly messageSent = output<{\n content: string;\n attachments: ChatInputAttachment[];\n }>();\n\n /**\n * Internal selected category state\n */\n protected readonly selectedCategory = signal<string | undefined>(undefined);\n\n /**\n * Computed list of categories derived from promptSuggestions\n */\n protected readonly promptCategories = computed(() => {\n const suggestions = this.promptSuggestions();\n if (Array.isArray(suggestions)) {\n return [];\n }\n return Object.keys(suggestions).map(label => ({ label }));\n });\n\n /**\n * Resolved prompt suggestions based on selected category.\n */\n protected readonly resolvedPromptSuggestions = computed<PromptSuggestion[]>(() => {\n const suggestions = this.promptSuggestions();\n if (Array.isArray(suggestions)) {\n return suggestions;\n }\n const category = this.selectedCategory();\n if (category && suggestions[category]) {\n return suggestions[category];\n }\n const keys = Object.keys(suggestions);\n return keys.length > 0 ? suggestions[keys[0]] : [];\n });\n\n protected readonly isEmpty = computed(() => this.messages()?.length === 0 && !this.loading());\n\n readonly inputInterruptible = computed(() => {\n return this.interrupting() || (this.loading() && !this.disableInterrupt() && !this.sending());\n });\n\n readonly inputSending = computed(() => {\n return this.sending() || this.interrupting();\n });\n\n protected readonly displayMessages = computed<ChatMessage[]>(() => {\n const messages = this.messages();\n if (!messages?.length) {\n if (this.loading()) {\n const loadingMessage: AiChatMessage = {\n type: 'ai',\n content: '',\n loading: true\n };\n return [loadingMessage];\n }\n return [];\n }\n\n const latestMessage = messages.at(-1);\n if (this.loading() && latestMessage) {\n const shouldAddAiMessage =\n this.isTemplateMessage(latestMessage) ||\n (latestMessage.type === 'ai' &&\n this.getContentValue(latestMessage.content) &&\n !this.getLoadingState(latestMessage.loading, latestMessage.content, false) &&\n !this.isStreamingContent(latestMessage.content)) ||\n latestMessage.type === 'user' ||\n latestMessage.type === 'activity' ||\n latestMessage.type === 'activity-trace';\n\n if (shouldAddAiMessage) {\n const newMessages = [...messages];\n const loadingMessage: AiChatMessage = {\n type: 'ai',\n content: '',\n loading: true\n };\n newMessages.push(loadingMessage);\n return newMessages;\n }\n }\n\n return messages;\n });\n\n protected readonly renderedMessages = computed(() =>\n this.displayMessages().map(message => {\n const actions = 'actions' in message ? (message.actions ?? []) : [];\n return {\n message,\n primaryActions: actions.slice(0, 3),\n secondaryActions: actions.slice(3)\n };\n })\n );\n\n protected isTemplateMessage(message: ChatMessage): message is TemplateChatMessage {\n return 'template' in message && message.template !== undefined;\n }\n\n /**\n * Scrolls to the bottom of the messages container immediately.\n * This method forces a scroll even if the user has scrolled up.\n */\n public scrollToBottom(): void {\n this.chatContainer()?.scrollToBottom();\n }\n\n public onInputSend(): void {\n this.scrollToBottom();\n }\n\n /**\n * Focuses the chat input component if it exists.\n */\n public focus(): void {\n const inputComponent = this.chatInput();\n if (inputComponent) {\n inputComponent.focus();\n }\n }\n\n protected getContentValue(content: string | Signal<string> | undefined): string {\n if (isSignal(content)) {\n return content();\n }\n return content ?? '';\n }\n\n protected getMarkdownContent(\n content: string | object | Signal<string | object> | undefined\n ): string {\n const value = isSignal(content) ? content() : content;\n if (typeof value === 'string') {\n return value;\n }\n return value ? `\\`\\`\\`json\\n${JSON.stringify(value, undefined, 2)}\\n\\`\\`\\`` : '';\n }\n\n private isEmptyContent(content: string | Signal<string> | undefined): boolean {\n const contentValue = this.getContentValue(content);\n return !contentValue || contentValue.trim().length === 0;\n }\n\n protected getLoadingValue(loading: boolean | Signal<boolean> | undefined): boolean {\n if (isSignal(loading)) {\n return loading();\n }\n return loading ?? false;\n }\n\n private isStreamingContent(content: string | Signal<string> | undefined): boolean {\n return isSignal(content) && this.getContentValue(content).trim().length > 0;\n }\n\n protected getLoadingState(\n messageLoading: boolean | Signal<boolean> | undefined,\n content: string | Signal<string> | undefined,\n isLatest: boolean,\n globalLoading: boolean = false\n ): boolean {\n const messageLoadingValue = this.getLoadingValue(messageLoading);\n const isEmptyContent = this.isEmptyContent(content);\n\n return messageLoadingValue || (isLatest && globalLoading && isEmptyContent);\n }\n\n protected isLatestMessage(message: ChatMessage): boolean {\n const messages = this.displayMessages();\n return messages[messages.length - 1] === message;\n }\n\n protected isLatestActivityMessage(\n message: ActivityChatMessage | ActivityTraceChatMessage\n ): boolean {\n const messages = this.displayMessages();\n const messageIndex = messages.indexOf(message);\n if (messageIndex === -1) {\n return false;\n }\n\n return !messages.slice(messageIndex + 1).some(next => {\n return (\n !this.isTemplateMessage(next) &&\n (next.type === 'activity' || next.type === 'activity-trace' || next.type === 'user')\n );\n });\n }\n\n protected shouldAutoExpandTrace(message: ActivityTraceChatMessage): boolean {\n return (\n this.isLatestActivityMessage(message) &&\n ((message.autoExpand ?? this.autoExpand()) ||\n message.messages.some(activity => this.hasExplicitAutoExpand(activity)))\n );\n }\n\n protected shouldAutoExpandActivity(\n message: ActivityChatMessage,\n active: boolean,\n inheritedAutoExpand: boolean\n ): boolean {\n const directDetail = this.getDirectActivityDetailType(message);\n const directAutoExpand =\n directDetail === 'input' && typeof message.autoExpandInputs === 'boolean'\n ? message.autoExpandInputs\n : directDetail === 'output'\n ? message.autoExpandOutputs\n : undefined;\n return (\n active &&\n (directAutoExpand ??\n ((message.autoExpand ?? inheritedAutoExpand) || this.hasExplicitAutoExpand(message)))\n );\n }\n\n private hasExplicitAutoExpand(message: ActivityChatMessage): boolean {\n return (\n message.autoExpandInputs === true ||\n (Array.isArray(message.autoExpandInputs) && message.autoExpandInputs.length > 0) ||\n message.autoExpandOutputs === true ||\n !!message.messages?.some(activity =>\n activity.autoExpand === true ? true : this.hasExplicitAutoExpand(activity)\n )\n );\n }\n\n protected hasActivityDetails(message: ActivityChatMessage): boolean {\n return (\n !!this.getContentValue(message.content).trim() ||\n this.shouldShowActivityInputs(message) ||\n this.shouldShowActivityOutput(message) ||\n !!message.messages?.length\n );\n }\n\n protected getActivityInputs(message: ActivityChatMessage): ActivityInputPart[] {\n if (typeof message.input === 'string') {\n return [\n {\n heading: message.inputArgumentsLabel ?? this.activityInputArgumentsLabel(),\n content: message.input\n }\n ];\n }\n if (Array.isArray(message.input)) {\n return message.input.map((heading, index) => ({ heading, key: `${index}` }));\n }\n if (message.input) {\n return Object.entries(message.input).map(([key, content]) => ({\n heading: key,\n content,\n key\n }));\n }\n return [];\n }\n\n protected hasActivityOutput(message: ActivityChatMessage): boolean {\n return !!message.output?.trim();\n }\n\n protected getDirectActivityDetail(message: ActivityChatMessage): string | undefined {\n const detail = this.getDirectActivityDetailType(message);\n return detail === 'input'\n ? (message.input as string)\n : detail === 'output'\n ? message.output\n : undefined;\n }\n\n private getDirectActivityDetailType(\n message: ActivityChatMessage\n ): 'input' | 'output' | undefined {\n if (message.content || message.messages?.length) {\n return undefined;\n }\n const showInputs = this.shouldShowActivityInputs(message);\n const showOutput = this.shouldShowActivityOutput(message);\n if (showInputs && !showOutput && typeof message.input === 'string') {\n return 'input';\n }\n if (showOutput && !showInputs) {\n return 'output';\n }\n return undefined;\n }\n\n protected shouldShowActivityInputs(message: ActivityChatMessage): boolean {\n const show = this.show();\n return (\n this.getActivityInputs(message).length > 0 &&\n (show === 'inputs' ||\n show === 'both' ||\n (show === 'auto' && !this.hasActivityOutput(message)))\n );\n }\n\n protected shouldShowActivityOutput(message: ActivityChatMessage): boolean {\n const show = this.show();\n return (\n this.hasActivityOutput(message) && (show === 'outputs' || show === 'both' || show === 'auto')\n );\n }\n\n protected shouldAutoExpandInput(\n message: ActivityChatMessage,\n inputPart: ActivityInputPart,\n active: boolean,\n inheritedAutoExpand: boolean\n ): boolean {\n if (!active || inputPart.content === undefined) {\n return false;\n }\n\n if (Array.isArray(message.autoExpandInputs)) {\n return inputPart.key !== undefined && message.autoExpandInputs.includes(inputPart.key);\n }\n if (message.autoExpandInputs !== undefined) {\n return message.autoExpandInputs;\n }\n if (this.shouldShowActivityOutput(message)) {\n return false;\n }\n return message.autoExpand ?? inheritedAutoExpand;\n }\n\n protected shouldAutoExpandOutput(\n message: ActivityChatMessage,\n active: boolean,\n inheritedAutoExpand: boolean\n ): boolean {\n return active && (message.autoExpandOutputs ?? message.autoExpand ?? inheritedAutoExpand);\n }\n\n protected readonly isSignal = isSignal;\n\n protected onPromptSelected(suggestion: PromptSuggestion): void {\n // Set the input value and emit the send event\n const inputComponent = this.chatInput();\n if (inputComponent) {\n inputComponent.value.set(suggestion.text);\n // Programmatically trigger the send output\n inputComponent.send.emit({\n content: suggestion.text,\n attachments: []\n });\n this.onInputSend();\n inputComponent.value.set('');\n }\n }\n}\n","<si-chat-container [colorVariant]=\"colorVariant()\" [noAutoScroll]=\"noAutoScroll() || isEmpty()\">\n @if (isEmpty()) {\n <si-ai-welcome-screen\n [categories]=\"promptCategories()\"\n [selectedCategory]=\"selectedCategory()\"\n [promptSuggestions]=\"resolvedPromptSuggestions()\"\n (selectedCategoryChange)=\"selectedCategory.set($event)\"\n (promptSelected)=\"onPromptSelected($event)\"\n >\n <p class=\"h1 mb-0 text-white\">\n <strong>{{ greeting() | translate }}</strong>\n </p>\n <p class=\"h1 mb-0 text-white\">{{ welcomeMessage() | translate }}</p>\n <ng-content select=\"[welcomeScreen]\" />\n </si-ai-welcome-screen>\n }\n\n @for (entry of renderedMessages(); track $index) {\n @let message = entry.message;\n @if (isTemplateMessage(message)) {\n <ng-container\n [ngTemplateOutlet]=\"message.template\"\n [ngTemplateOutletContext]=\"message.templateContext ?? message\"\n />\n } @else {\n @if (message.type === 'user') {\n <si-user-message\n [class.last]=\"$last\"\n [attachments]=\"message.attachments || []\"\n [actions]=\"entry.primaryActions\"\n [secondaryActions]=\"entry.secondaryActions\"\n [actionParam]=\"message\"\n [secondaryActionsLabel]=\"secondaryActionsLabel()\"\n >\n <si-markdown\n [markdown]=\"getContentValue(message.content)\"\n [options]=\"markdownOptions()\"\n />\n </si-user-message>\n }\n\n @if (message.type === 'ai') {\n <si-ai-message\n [loading]=\"\n getLoadingState(message.loading, message.content, isLatestMessage(message), false)\n \"\n [actions]=\"entry.primaryActions\"\n [secondaryActions]=\"entry.secondaryActions\"\n [actionParam]=\"message\"\n [secondaryActionsLabel]=\"secondaryActionsLabel()\"\n >\n <si-markdown\n [markdown]=\"getContentValue(message.content)\"\n [options]=\"markdownOptions()\"\n />\n </si-ai-message>\n }\n\n @if (message.type === 'activity') {\n <ng-container\n [ngTemplateOutlet]=\"activityMessageTemplate\"\n [ngTemplateOutletContext]=\"{\n $implicit: message,\n active: isLatestActivityMessage(message),\n inheritedAutoExpand: autoExpand()\n }\"\n />\n }\n\n @if (message.type === 'activity-trace') {\n <si-activity-trace [heading]=\"message.name\" [expanded]=\"shouldAutoExpandTrace(message)\">\n @for (activity of message.messages; track activity; let last = $last) {\n <ng-container\n [ngTemplateOutlet]=\"activityMessageTemplate\"\n [ngTemplateOutletContext]=\"{\n $implicit: activity,\n active: isLatestActivityMessage(message) && last,\n inheritedAutoExpand: message.autoExpand ?? autoExpand()\n }\"\n />\n }\n </si-activity-trace>\n }\n }\n }\n\n <ng-template\n #activityMessageTemplate\n let-message\n let-active=\"active\"\n let-inheritedAutoExpand=\"inheritedAutoExpand\"\n >\n <si-activity-message\n [heading]=\"message.name ?? activityReasoningLabel()\"\n [icon]=\"message.icon === false ? undefined : message.icon\"\n [state]=\"getLoadingValue(message.loading) ? 'running' : undefined\"\n [expanded]=\"shouldAutoExpandActivity(message, active, inheritedAutoExpand)\"\n >\n @if (message.content) {\n <si-markdown\n [markdown]=\"getMarkdownContent(message.content)\"\n [options]=\"markdownOptions()\"\n />\n }\n @if (getDirectActivityDetail(message); as directDetail) {\n <si-markdown [markdown]=\"directDetail\" [options]=\"markdownOptions()\" />\n } @else {\n @if (shouldShowActivityInputs(message)) {\n @for (input of getActivityInputs(message); track input.key ?? $index) {\n <si-activity-message-part\n [heading]=\"input.heading\"\n [collapsible]=\"input.content !== undefined\"\n [expanded]=\"\n shouldAutoExpandInput(\n message,\n input,\n active && !message.messages?.length,\n inheritedAutoExpand\n )\n \"\n >\n @if (input.content !== undefined) {\n <si-markdown [markdown]=\"input.content\" [options]=\"markdownOptions()\" />\n }\n </si-activity-message-part>\n }\n }\n @if (shouldShowActivityOutput(message)) {\n <si-activity-message-part\n [heading]=\"message.outputLabel ?? activityOutputLabel()\"\n [collapsible]=\"true\"\n [expanded]=\"\n shouldAutoExpandOutput(\n message,\n active && !message.messages?.length,\n inheritedAutoExpand\n )\n \"\n >\n <si-markdown [markdown]=\"message.output!\" [options]=\"markdownOptions()\" />\n </si-activity-message-part>\n }\n }\n @for (activity of message.messages ?? []; track activity) {\n <ng-container\n [ngTemplateOutlet]=\"activityMessageTemplate\"\n [ngTemplateOutletContext]=\"{\n $implicit: activity,\n active: active && $last,\n inheritedAutoExpand: message.autoExpand ?? inheritedAutoExpand\n }\"\n />\n }\n </si-activity-message>\n </ng-template>\n\n @if (statusSeverity() && statusMessage()) {\n <si-inline-notification\n class=\"mb-6 w-100 overflow-hidden\"\n [severity]=\"statusSeverity()!\"\n [heading]=\"statusHeading()\"\n [message]=\"statusMessage()!\"\n [action]=\"statusAction()\"\n />\n }\n\n <div siChatContainerInput class=\"w-100\">\n <ng-content select=\"si-chat-input\" />\n </div>\n</si-chat-container>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nexport * from './chat-message.model';\nexport * from './si-ai-message.component';\nexport * from './si-activity-message.component';\nexport * from './si-activity-message-part.component';\nexport * from './si-activity-trace.component';\nexport * from './si-attachment-list.component';\nexport * from './si-chat-container.component';\nexport * from './si-chat-container-input.directive';\nexport * from './si-chat-input.component';\nexport * from './si-chat-input-token';\nexport * from './si-chat-input-disclaimer.directive';\nexport * from './si-chat-message-action.directive';\nexport * from './si-chat-message-actions.component';\nexport * from './si-chat-message.component';\nexport * from './si-user-message.component';\nexport * from './si-ai-welcome-screen.component';\nexport * from './si-ai-chat.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;AAGG;AAGH;;;;;;;;;;;;;;;;AAgBG;MAIU,4BAA4B,CAAA;uGAA5B,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAA5B,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAA5B,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBAHxC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE;AACX,iBAAA;;;ACzBD;;;AAGG;AAcH;;;;;;AAMG;MAeU,6BAA6B,CAAA;IACvB,iBAAiB,GAAG,MAAM,CAAC,mBAAmB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACjE,IAAA,KAAK,GAAG,QAAQ,CAAC,EAAE,sBAAsB,EAAE,CAAC;AAE/D;;AAEG;IACM,OAAO,GAAG,KAAK,CAAmB,EAAE;gFAAC;AAE9C;;AAEG;IACM,gBAAgB,GAAG,KAAK,CAAmB,EAAE;yFAAC;;AAG9C,IAAA,WAAW,GAAG,KAAK;+FAAW;AAEvC;;;;;AAKG;IACM,qBAAqB,GAAG,KAAK,CACpC,CAAC,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,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,eAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,cAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,2BAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,6BAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,mBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,sBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,wBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AElG/F;;;AAGG;;ACHH;;AAEG;;"}
1
+ {"version":3,"file":"siemens-element-ng-chat-messages.mjs","sources":["../../../../projects/element-ng/chat-messages/si-chat-message-action.directive.ts","../../../../projects/element-ng/chat-messages/si-chat-message-actions.component.ts","../../../../projects/element-ng/chat-messages/si-chat-message-actions.component.html","../../../../projects/element-ng/chat-messages/si-chat-message.component.ts","../../../../projects/element-ng/chat-messages/si-chat-message.component.html","../../../../projects/element-ng/chat-messages/si-ai-message.component.ts","../../../../projects/element-ng/chat-messages/si-ai-message.component.html","../../../../projects/element-ng/chat-messages/si-activity-message.component.ts","../../../../projects/element-ng/chat-messages/si-activity-message.component.html","../../../../projects/element-ng/chat-messages/si-activity-message-part.component.ts","../../../../projects/element-ng/chat-messages/si-activity-message-part.component.html","../../../../projects/element-ng/chat-messages/si-activity-trace.component.ts","../../../../projects/element-ng/chat-messages/si-activity-trace.component.html","../../../../projects/element-ng/chat-messages/si-attachment-list.component.ts","../../../../projects/element-ng/chat-messages/si-attachment-list.component.html","../../../../projects/element-ng/chat-messages/si-chat-container.component.ts","../../../../projects/element-ng/chat-messages/si-chat-container.component.html","../../../../projects/element-ng/chat-messages/si-chat-container-input.directive.ts","../../../../projects/element-ng/chat-messages/si-chat-input-token.ts","../../../../projects/element-ng/chat-messages/si-chat-input.component.ts","../../../../projects/element-ng/chat-messages/si-chat-input.component.html","../../../../projects/element-ng/chat-messages/si-chat-input-disclaimer.directive.ts","../../../../projects/element-ng/chat-messages/si-user-message.component.ts","../../../../projects/element-ng/chat-messages/si-user-message.component.html","../../../../projects/element-ng/chat-messages/si-ai-welcome-screen.component.ts","../../../../projects/element-ng/chat-messages/si-ai-welcome-screen.component.html","../../../../projects/element-ng/chat-messages/si-ai-chat.component.ts","../../../../projects/element-ng/chat-messages/si-ai-chat.component.html","../../../../projects/element-ng/chat-messages/index.ts","../../../../projects/element-ng/chat-messages/siemens-element-ng-chat-messages.ts"],"sourcesContent":["/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Directive } from '@angular/core';\n\n/**\n * Directive to mark content as chat message actions into {@link SiChatMessageComponent}.\n * Apply this directive to e.g. buttons that should be slotted into the message actions area.\n *\n * @example\n * ```html\n * <si-chat-message>\n * Message content\n * <button siChatMessageAction>Like</button>\n * <button siChatMessageAction>Share</button>\n * </si-chat-message>\n * ```\n *\n * @see {@link SiChatMessageComponent} for the chat message wrapper component\n *\n * @experimental\n */\n@Directive({\n selector: '[siChatMessageAction]'\n})\nexport class SiChatMessageActionDirective {}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { CdkMenuTrigger } from '@angular/cdk/menu';\nimport { Component, inject, input } from '@angular/core';\nimport { elementOptionsVertical } from '@siemens/element-icons';\nimport { addIcons, SiIconComponent } from '@siemens/element-ng/icon';\nimport {\n MenuItemAction,\n SiMenuActionService,\n SiMenuFactoryComponent\n} from '@siemens/element-ng/menu';\nimport { SiTranslatePipe, t } from '@siemens/element-translate-ng/translate';\n\nimport { SiChatMessageActionDirective } from './si-chat-message-action.directive';\n\n/**\n * Shared action controls for user and AI messages.\n *\n * Pass the pre-split primary and secondary actions to this component.\n *\n * @experimental\n */\n@Component({\n selector: 'si-chat-message-actions',\n imports: [\n CdkMenuTrigger,\n SiChatMessageActionDirective,\n SiIconComponent,\n SiMenuFactoryComponent,\n SiTranslatePipe\n ],\n templateUrl: './si-chat-message-actions.component.html',\n host: {\n class: 'd-block'\n }\n})\nexport class SiChatMessageActionsComponent {\n private readonly menuActionService = inject(SiMenuActionService, { optional: true });\n protected readonly icons = addIcons({ elementOptionsVertical });\n\n /** Primary message actions displayed inline.\n * @defaultValue []\n */\n readonly actions = input<MenuItemAction[]>([]);\n\n /** Secondary actions displayed in the menu.\n * @defaultValue []\n */\n readonly secondaryActions = input<MenuItemAction[]>([]);\n\n /** Parameter passed to action handlers. */\n readonly actionParam = input<unknown>();\n\n /** More actions button aria label.\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_CHAT_MESSAGE_ACTIONS.SECONDARY_ACTIONS:Additional actions`)\n * ```\n */\n readonly secondaryActionsLabel = input(\n t(() => $localize`:@@SI_CHAT_MESSAGE_ACTIONS.SECONDARY_ACTIONS:Additional actions`)\n );\n\n protected runAction(action: MenuItemAction): void {\n if (typeof action.action === 'function') {\n action.action(this.actionParam(), action);\n } else {\n this.menuActionService?.actionTriggered(action, this.actionParam());\n }\n }\n}\n","<div class=\"btn-group message-actions align-items-center\" role=\"group\" siChatMessageAction>\n @for (action of actions(); track $index) {\n <button\n type=\"button\"\n class=\"btn btn-tertiary-ghost\"\n [class.btn-icon]=\"!!action.icon\"\n [disabled]=\"action.disabled\"\n [attr.aria-label]=\"action.label | translate\"\n (click)=\"runAction(action)\"\n >\n @if (action.icon) {\n <si-icon [icon]=\"action.icon\" />\n } @else {\n {{ action.label | translate }}\n }\n </button>\n }\n\n @if (secondaryActions().length > 0) {\n <button\n type=\"button\"\n class=\"btn btn-tertiary-ghost btn-icon\"\n [cdkMenuTriggerFor]=\"secondaryActionsMenu\"\n [attr.aria-label]=\"secondaryActionsLabel() | translate\"\n [attr.title]=\"secondaryActionsLabel() | translate\"\n >\n <si-icon [icon]=\"icons.elementOptionsVertical\" />\n </button>\n\n <ng-template #secondaryActionsMenu>\n <si-menu-factory [items]=\"secondaryActions()\" [actionParam]=\"actionParam()\" />\n </ng-template>\n }\n\n <ng-content />\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Component, input } from '@angular/core';\nimport { SiResponsiveContainerDirective } from '@siemens/element-ng/resize-observer';\n\n/**\n * Base declarative chat message component that provides the layout structure for chat messages.\n *\n * This component handles the core message layout including avatar positioning, loading states,\n * and action button as well as attachment list placement. It serves as the foundation for more specialized message components\n * like {@link SiUserMessageComponent} and {@link SiAiMessageComponent}.\n * Can be used within {@link SiChatContainerComponent}.\n *\n * The component provides:\n * - Flexible alignment (start/end) for different message types\n * - Avatar/icon slot for message attribution\n * - Loading state with skeleton UI\n * - Action buttons positioned on the side or bottom\n * - Attachment list display slot\n * - Responsive behavior that adapts to container size\n *\n * This is a low-level component designed for slotting in custom content, it provides slots via content projection:\n * - Default content: Main message content area (consider using `si-markdown` for markdown support)\n * - `si-avatar/si-icon/img` selector: Avatar or icon representing the message sender\n * - `si-chat-message-action` selector: Action buttons related to the message\n * - `si-attachment-list` selector: Attachment list component for displaying file attachments\n *\n * @see {@link SiUserMessageComponent} for user message display\n * @see {@link SiAiMessageComponent} for AI message display\n * @see {@link SiAttachmentListComponent} for attachment list to slot in\n * @see {@link SiChatMessageActionDirective} for action buttons to slot in\n * @see {@link SiChatContainerComponent} for the chat container to use this within\n *\n * @experimental\n */\n@Component({\n selector: 'si-chat-message',\n templateUrl: './si-chat-message.component.html',\n styleUrl: './si-chat-message.component.scss',\n host: {\n class: 'd-block'\n },\n hostDirectives: [SiResponsiveContainerDirective]\n})\nexport class SiChatMessageComponent {\n /**\n * Whether the message is currently loading\n * @defaultValue false\n */\n readonly loading = input(false);\n\n /**\n * Alignment of the message\n * @defaultValue 'start'\n */\n readonly alignment = input<'start' | 'end'>('start');\n\n /**\n * Where to display action buttons (if any)\n * @defaultValue 'side'\n */\n readonly actionsPosition = input<'side' | 'bottom'>('side');\n}\n","<!--- Flex-row if alignment start, flex-row-reverse if alignment end, flex-column if mobile -->\n<div\n class=\"d-flex si-body-paragraph chat-message-container\"\n [class.start]=\"alignment() === 'start'\"\n>\n <div class=\"avatar-wrapper flex-shrink-0\" [class.end]=\"alignment() === 'end'\">\n <ng-content select=\"si-icon,si-avatar,img\" />\n </div>\n\n <div class=\"d-flex flex-column flex-grow-1 w-100\">\n <div class=\"attachment-slot\" [class.align-self-end]=\"alignment() === 'end'\">\n <ng-content select=\"si-attachment-list,si-badge\" />\n </div>\n\n @if (loading()) {\n <div\n class=\"message-wrapper rounded-3 w-75 text-break loading-message-bubble mb-2\"\n [class.align-self-end]=\"alignment() === 'end'\"\n >\n <div class=\"d-flex flex-column w-100 gap-2\">\n <div class=\"si-skeleton skeleton-line skeleton-line-full\"></div>\n <div class=\"si-skeleton skeleton-line skeleton-line-half\"></div>\n </div>\n </div>\n } @else {\n <!-- Flex-column if actions bottom, flex-row/flex-row-reverse if actions start -->\n <div\n class=\"message-wrapper mw-0 d-flex mb-2\"\n [class.start]=\"alignment() === 'start'\"\n [class.end]=\"alignment() === 'end'\"\n [class.flex-column]=\"actionsPosition() === 'bottom'\"\n [class.flex-row]=\"actionsPosition() === 'side' && alignment() === 'start'\"\n [class.flex-row-reverse]=\"actionsPosition() === 'side' && alignment() === 'end'\"\n [class.align-items-start]=\"actionsPosition() === 'side'\"\n [class.align-items-end]=\"actionsPosition() === 'bottom' && alignment() === 'end'\"\n [class.justify-content-end]=\"alignment() === 'end' && actionsPosition() === 'bottom'\"\n [class.justify-content-start]=\"alignment() === 'start' && actionsPosition() === 'bottom'\"\n >\n <div\n class=\"rounded-3 text-break message-bubble\"\n [class.end]=\"alignment() === 'end' && actionsPosition() === 'bottom'\"\n >\n <ng-content />\n </div>\n\n <div\n class=\"actions-wrapper d-flex gap-4\"\n [class.ms-3]=\"actionsPosition() === 'side' && alignment() === 'start'\"\n [class.me-3]=\"actionsPosition() === 'side' && alignment() === 'end'\"\n [class.mt-2]=\"actionsPosition() === 'bottom'\"\n [class.actions-horizontal]=\"actionsPosition() !== 'bottom'\"\n [class.align-self-start]=\"actionsPosition() === 'side'\"\n >\n <ng-content select=\"[siChatMessageAction]\" />\n </div>\n </div>\n }\n </div>\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { booleanAttribute, Component, input, output } from '@angular/core';\nimport { MenuItemAction } from '@siemens/element-ng/menu';\nimport { SourceReference, SiSourceChipComponent } from '@siemens/element-ng/source-chip';\nimport { t } from '@siemens/element-translate-ng/translate';\n\nimport { SiChatMessageActionDirective } from './si-chat-message-action.directive';\nimport { SiChatMessageActionsComponent } from './si-chat-message-actions.component';\nimport { SiChatMessageComponent } from './si-chat-message.component';\n\n/**\n * AI message component for displaying AI-generated responses in conversational interfaces.\n *\n * The AI message component renders AI-generated content in chat interfaces,\n * supporting text, loading states, and contextual actions.\n * It appears as text (no bubble) aligned to the left side without any avatar/icon slot.\n * Can be used within {@link SiChatContainerComponent}.\n *\n * The component automatically handles:\n * - Styling for AI messages distinct from user or generic chat messages\n * - Showing loading states with skeleton UI during generation\n * - Displaying primary and secondary actions\n *\n * @see {@link SiChatMessageComponent} for the base message wrapper component\n * @see {@link SiUserMessageComponent} for the user message component\n * @see {@link SiChatContainerComponent} for the chat container to use this within\n *\n * @experimental\n */\n@Component({\n selector: 'si-ai-message',\n imports: [\n SiChatMessageComponent,\n SiChatMessageActionDirective,\n SiChatMessageActionsComponent,\n SiSourceChipComponent\n ],\n templateUrl: './si-ai-message.component.html',\n styleUrl: './si-ai-message.component.scss'\n})\nexport class SiAiMessageComponent {\n /**\n * The AI-generated message content\n * @defaultValue ''\n */\n readonly content = input<string>('');\n\n /**\n * Whether the message is currently being generated (shows skeleton)\n * @defaultValue false\n */\n readonly loading = input(false, { transform: booleanAttribute });\n\n /**\n * Primary actions available for this message (thumbs up/down, copy, retry, etc.)\n * All actions displayed inline\n * @defaultValue []\n */\n readonly actions = input<MenuItemAction[]>([]);\n\n /**\n * Secondary actions available in dropdown menu, first use primary actions and only add secondary actions additionally\n * @defaultValue []\n */\n readonly secondaryActions = input<MenuItemAction[]>([]);\n\n /** Parameter to pass to action handlers */\n readonly actionParam = input();\n\n /** Source references */\n readonly sources = input<SourceReference[]>();\n\n /**\n * More actions button aria label\n *\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_AI_MESSAGE.SECONDARY_ACTIONS:Additional actions`)\n * ```\n */\n readonly secondaryActionsLabel = input(\n t(() => $localize`:@@SI_AI_MESSAGE.SECONDARY_ACTIONS:Additional actions`)\n );\n\n /** Emitted when a source has been clicked. */\n readonly sourceClicked = output<SourceReference>();\n}\n","<si-chat-message alignment=\"start\" actionsPosition=\"bottom\" [loading]=\"loading()\">\n @if (content()) {\n <span class=\"text-pre-wrap\">{{ content() }}</span>\n } @else {\n <ng-content />\n }\n\n @let src = sources();\n @if (actions().length > 0 || secondaryActions().length > 0 || src?.length) {\n <si-chat-message-actions\n class=\"ai-message-actions\"\n siChatMessageAction\n [actions]=\"actions()\"\n [secondaryActions]=\"secondaryActions()\"\n [actionParam]=\"actionParam()\"\n [secondaryActionsLabel]=\"secondaryActionsLabel()\"\n >\n @if (src?.length) {\n <si-source-chip\n showIcon\n showLabel\n [sources]=\"src\"\n (sourceClicked)=\"sourceClicked.emit($event)\"\n />\n }\n </si-chat-message-actions>\n }\n</si-chat-message>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Component, input, model } from '@angular/core';\nimport { elementCircleFilled, elementIssue, elementRight2 } from '@siemens/element-icons';\nimport { addIcons, SiIconComponent } from '@siemens/element-ng/icon';\nimport { SiLoadingSpinnerComponent } from '@siemens/element-ng/loading-spinner';\nimport { SiTranslatePipe, TranslatableString } from '@siemens/element-translate-ng/translate';\n\n/**\n * Collapsible activity message for displaying progress and intermediate steps in a chat.\n *\n * @experimental\n */\n@Component({\n selector: 'si-activity-message',\n imports: [SiIconComponent, SiLoadingSpinnerComponent, SiTranslatePipe],\n templateUrl: './si-activity-message.component.html',\n styleUrl: './si-activity-message.component.scss',\n host: {\n '[class.expanded]': 'expanded()',\n '[class.failed]': `state() === 'failed'`\n }\n})\nexport class SiActivityMessageComponent {\n /** Activity heading. */\n readonly heading = input.required<TranslatableString>();\n\n /** Activity icon. */\n readonly icon = input<string>();\n\n /** Current state of the activity. */\n readonly state = input<'running' | 'failed'>();\n\n /**\n * Whether the activity details are expanded.\n *\n * @defaultValue false\n */\n readonly expanded = model(false);\n\n protected readonly icons = addIcons({\n elementCircleFilled,\n elementIssue,\n elementRight2\n });\n}\n","<button\n type=\"button\"\n class=\"activity-toggle\"\n [attr.aria-expanded]=\"expanded()\"\n (click)=\"expanded.update(value => !value)\"\n>\n <span class=\"activity-marker\">\n @switch (state()) {\n @case ('running') {\n <si-loading-spinner class=\"activity-icon\" />\n }\n @case ('failed') {\n <si-icon class=\"activity-icon\" [icon]=\"icons.elementIssue\" />\n }\n @default {\n <si-icon\n class=\"activity-icon\"\n [class.default-icon]=\"!icon()\"\n [icon]=\"icon() ?? icons.elementCircleFilled\"\n />\n }\n }\n <si-icon class=\"disclosure-icon\" [class.expanded]=\"expanded()\" [icon]=\"icons.elementRight2\" />\n </span>\n <span class=\"activity-heading\">{{ heading() | translate }}</span>\n</button>\n\n@if (expanded()) {\n <div class=\"content-motion\" animate.enter=\"content-enter\" animate.leave=\"content-leave\">\n <div class=\"overflow-hidden\">\n <div class=\"activity-content\">\n <ng-content />\n </div>\n </div>\n </div>\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { booleanAttribute, Component, input, model } from '@angular/core';\nimport { elementCircleFilled, elementRight2 } from '@siemens/element-icons';\nimport { addIcons, SiIconComponent } from '@siemens/element-ng/icon';\nimport { SiTranslatePipe, TranslatableString } from '@siemens/element-translate-ng/translate';\n\n/**\n * Titled content part for use inside an activity message.\n *\n * @experimental\n */\n@Component({\n selector: 'si-activity-message-part',\n imports: [SiIconComponent, SiTranslatePipe],\n templateUrl: './si-activity-message-part.component.html',\n styleUrl: './si-activity-message-part.component.scss'\n})\nexport class SiActivityMessagePartComponent {\n /** Part heading. */\n readonly heading = input.required<TranslatableString>();\n\n /**\n * Whether the part can be collapsed and expanded.\n *\n * @defaultValue false\n */\n readonly collapsible = input(false, { transform: booleanAttribute });\n\n /**\n * Whether collapsible content is expanded.\n *\n * @defaultValue true\n */\n readonly expanded = model(true);\n\n protected readonly icons = addIcons({ elementCircleFilled, elementRight2 });\n}\n","@if (collapsible()) {\n <button\n type=\"button\"\n class=\"section-heading section-toggle\"\n [attr.aria-expanded]=\"expanded()\"\n (click)=\"expanded.update(value => !value)\"\n >\n <si-icon\n class=\"section-icon disclosure-icon\"\n [class.expanded]=\"expanded()\"\n [icon]=\"icons.elementRight2\"\n />\n <span>{{ heading() | translate }}</span>\n </button>\n} @else {\n <div class=\"section-heading\">\n <si-icon class=\"section-icon default-icon\" [icon]=\"icons.elementCircleFilled\" />\n <span>{{ heading() | translate }}</span>\n </div>\n}\n\n@if (!collapsible() || expanded()) {\n <div class=\"content-motion\" animate.enter=\"content-enter\" animate.leave=\"content-leave\">\n <div class=\"overflow-hidden\">\n <div class=\"section-content\">\n <ng-content />\n </div>\n </div>\n </div>\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Component, input, model } from '@angular/core';\nimport { elementRight2 } from '@siemens/element-icons';\nimport { addIcons, SiIconComponent } from '@siemens/element-ng/icon';\nimport { SiTranslatePipe, TranslatableString } from '@siemens/element-translate-ng/translate';\n\n/**\n * Collapsible container for grouping multiple activity messages.\n *\n * @experimental\n */\n@Component({\n selector: 'si-activity-trace',\n imports: [SiIconComponent, SiTranslatePipe],\n templateUrl: './si-activity-trace.component.html',\n styleUrl: './si-activity-trace.component.scss'\n})\nexport class SiActivityTraceComponent {\n /** Trace heading. */\n readonly heading = input.required<TranslatableString>();\n\n /**\n * Whether the trace content is expanded.\n *\n * @defaultValue false\n */\n readonly expanded = model(false);\n\n protected readonly icons = addIcons({ elementRight2 });\n}\n","<button\n type=\"button\"\n class=\"trace-toggle\"\n [attr.aria-expanded]=\"expanded()\"\n (click)=\"expanded.update(value => !value)\"\n>\n <span class=\"trace-marker\">\n <si-icon class=\"disclosure-icon\" [class.expanded]=\"expanded()\" [icon]=\"icons.elementRight2\" />\n </span>\n <span class=\"trace-heading\">{{ heading() | translate }}</span>\n</button>\n\n@if (expanded()) {\n <div class=\"content-motion\" animate.enter=\"content-enter\" animate.leave=\"content-leave\">\n <div class=\"overflow-hidden\">\n <div class=\"trace-content\">\n <ng-content />\n </div>\n </div>\n </div>\n}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { booleanAttribute, Component, inject, input, output, TemplateRef } from '@angular/core';\nimport { elementStateClose, elementDocument } from '@siemens/element-icons';\nimport { addIcons, SiIconComponent } from '@siemens/element-ng/icon';\nimport { SiModalService } from '@siemens/element-ng/modal';\nimport { SiTranslatePipe, t } from '@siemens/element-translate-ng/translate';\n\n/**\n * Attachment item interface for file attachments in chat messages, used by {@link SiAttachmentListComponent} and inside {@link SiUserMessageComponent} as well as {@link SiChatInputComponent}.\n *\n * @see {@link SiAttachmentListComponent} for the attachment list component\n * @see {@link SiUserMessageComponent} for the user message\n * @see {@link SiChatInputComponent} for the chat input component\n *\n * @experimental\n */\nexport interface Attachment {\n /** File name */\n name: string;\n /** Optionally show a preview of the attachment by providing a template that is shown in a modal when clicked (optional) */\n previewTemplate?: TemplateRef<any> | (() => TemplateRef<any>);\n}\n\n/**\n * Attachment list component for displaying file attachments in chat messages.\n *\n * This component renders a list of file attachments with icons, names, and optional\n * preview and remove functionality. It's designed to work with chat message components\n * to show files that have been uploaded or shared in conversations.\n *\n * This component provides:\n * - A list of pills showing each attachment's name and an icon\n * - Optional preview modal for attachments\n * - Optional remove functionality for editable messages\n *\n * The component is included within {@link SiUserMessageComponent}, {@link SiAiMessageComponent} and {@link SiChatInputComponent} but can also be used inside custom chat messages with {@link SiChatMessageComponent}\n *\n * @see {@link SiUserMessageComponent} for user message display\n * @see {@link SiAiMessageComponent} for AI message display\n * @see {@link SiChatMessageComponent} for custom chat message display\n * @see {@link SiChatInputComponent} for chat input with attachment support\n * @see {@link Attachment} for attachment data structure\n *\n * @experimental\n */\n@Component({\n selector: 'si-attachment-list',\n imports: [SiIconComponent, SiTranslatePipe],\n templateUrl: './si-attachment-list.component.html',\n styleUrl: './si-attachment-list.component.scss'\n})\nexport class SiAttachmentListComponent {\n protected modalService = inject(SiModalService);\n protected readonly icons = addIcons({ elementStateClose, elementDocument });\n\n /**\n * List of attachments to display\n * @defaultValue []\n */\n readonly attachments = input<Attachment[]>([]);\n\n /**\n * Whether to align attachments to the end (right) or start (left)\n * @defaultValue 'start'\n */\n readonly alignment = input<'start' | 'end'>('start');\n\n /**\n * Whether to show remove buttons on attachments\n * @defaultValue false\n */\n readonly removable = input(false, { transform: booleanAttribute });\n\n /**\n * Label for remove attachment button.\n * The attachment name is available with `{{attachment}}`.\n *\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_ATTACHMENT_LIST.REMOVE_ATTACHMENT:Remove {{attachment}}`)\n * ```\n */\n readonly removeLabel = input(\n t(() => $localize`:@@SI_ATTACHMENT_LIST.REMOVE_ATTACHMENT:Remove {{attachment}}`)\n );\n\n /**\n * Emitted when an attachment should be removed\n */\n readonly remove = output<Attachment>();\n\n private getPreviewTemplate(attachment: Attachment): any | undefined {\n if (attachment.previewTemplate) {\n return typeof attachment.previewTemplate === 'function'\n ? attachment.previewTemplate()\n : attachment.previewTemplate;\n }\n return undefined;\n }\n\n protected openPreview(event: Event, attachment: Attachment): void {\n const template = this.getPreviewTemplate(attachment);\n if (template) {\n event.preventDefault();\n this.modalService.show(template, {\n inputValues: { 'attachment': attachment }\n });\n }\n }\n\n protected getFileIcon(name: string): string {\n // TODO: Accept map and default it in file upload directive.\n return this.icons.elementDocument;\n }\n}\n","<div class=\"d-flex flex-wrap gap-4\" [class.justify-content-end]=\"alignment() === 'end'\">\n @for (attachment of attachments(); track $index) {\n <div class=\"attachment-item d-flex align-items-stretch\" role=\"group\">\n @if (attachment.previewTemplate) {\n <button\n type=\"button\"\n class=\"attachment-main focus-inside d-flex align-items-center flex-grow-1 min-width-0\"\n [attr.title]=\"attachment.name\"\n [attr.aria-label]=\"attachment.name\"\n (click)=\"openPreview($event, attachment)\"\n (keydown.enter)=\"openPreview($event, attachment)\"\n (keydown.space)=\"openPreview($event, attachment)\"\n >\n <si-icon\n class=\"attachment-icon icon flex-shrink-0 m-2\"\n [icon]=\"getFileIcon(attachment.name)\"\n />\n <div class=\"attachment-info flex-grow-1 min-width-0\">\n <span\n class=\"attachment-name me-4 text-truncate si-body d-block\"\n [title]=\"attachment.name\"\n >\n {{ attachment.name }}\n </span>\n </div>\n </button>\n } @else {\n <div class=\"attachment-main--static d-flex align-items-center flex-grow-1 min-width-0\">\n <si-icon\n class=\"attachment-icon icon flex-shrink-0 m-2\"\n [icon]=\"getFileIcon(attachment.name)\"\n />\n <div class=\"attachment-info flex-grow-1 min-width-0\">\n <span\n class=\"attachment-name me-4 text-truncate si-body d-block\"\n [title]=\"attachment.name\"\n >\n {{ attachment.name }}\n </span>\n </div>\n </div>\n }\n\n @if (removable()) {\n <button\n type=\"button\"\n class=\"btn btn-tertiary-ghost btn-sm btn-icon expand-button flex-shrink-0 ms-auto align-self-center focus-inside m-2\"\n [attr.aria-label]=\"removeLabel() | translate: { attachment: attachment.name }\"\n (click)=\"remove.emit(attachment); $event.stopPropagation()\"\n >\n <si-icon class=\"icon\" [icon]=\"icons.elementStateClose\" />\n </button>\n }\n </div>\n }\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { isPlatformBrowser } from '@angular/common';\nimport {\n AfterContentInit,\n Component,\n effect,\n ElementRef,\n input,\n OnDestroy,\n PLATFORM_ID,\n viewChild,\n inject\n} from '@angular/core';\n\n/**\n * A declarative container component for displaying a chat interface with automatic scroll-to-bottom behavior.\n *\n * This component provides the layout and styling for a chat interface, managing scrolling behavior\n * to keep the newest messages visible while respecting user scrolling actions. It automatically\n * scrolls to the bottom when new content is added, unless the user has scrolled up to view older messages.\n *\n * Use via content projection:\n * - Default content: Chat messages displayed in the scrollable messages container or a welcome screen (empty state).\n * - `si-inline-notification` selector: Notification component displayed above the input area\n * - `si-chat-input` or `[siChatContainerInput]` selector: Input controls for composing messages\n *\n * @see {@link SiChatInputComponent} for the chat input wrapper component\n * @see {@link SiChatContainerInputDirective} for other input controls to slot in\n * @see {@link SiAiMessageComponent} for AI messages to slot in\n * @see {@link SiUserMessageComponent} for user messages (in AI chats) to slot in\n * @see {@link SiChatMessageComponent} for the chat message wrapper component to slot in other messages\n *\n * @experimental\n */\n@Component({\n selector: 'si-chat-container',\n templateUrl: './si-chat-container.component.html',\n styleUrl: './si-chat-container.component.scss',\n host: {\n class: 'd-flex si-layout-inner flex-grow-1 flex-column h-100 w-100',\n '[class]': 'colorVariant()'\n }\n})\nexport class SiChatContainerComponent implements AfterContentInit, OnDestroy {\n private readonly messagesContainer = viewChild<ElementRef<HTMLDivElement>>('messagesContainer');\n private readonly platformId = inject(PLATFORM_ID);\n\n private isUserAtBottom = true;\n private scrollTimeout: ReturnType<typeof setTimeout> | undefined;\n private lastScrollTime = 0;\n private pendingScroll = false;\n private scrollDebounceMs = 7; // ~144fps\n private resizeObserver: ResizeObserver | undefined;\n private contentObserver: MutationObserver | undefined;\n\n /**\n * The color variant to apply to the container.\n * @defaultValue 'base-0'\n */\n readonly colorVariant = input<string>('base-0');\n\n /**\n * Disables automatic scrolling to the bottom when new content is added.\n * @defaultValue false\n */\n readonly noAutoScroll = input(false, {\n transform: (value: boolean | string) => value === '' || value === true\n });\n\n constructor() {\n effect(() => {\n if (this.messagesContainer()) {\n this.setupResizeObserver();\n this.setupContentObserver();\n }\n });\n }\n\n ngAfterContentInit(): void {\n this.scrollToBottomDuringStreaming();\n }\n\n ngOnDestroy(): void {\n if (this.scrollTimeout) {\n clearTimeout(this.scrollTimeout);\n }\n if (this.resizeObserver) {\n this.resizeObserver.disconnect();\n }\n if (this.contentObserver) {\n this.contentObserver.disconnect();\n }\n }\n\n private scrollToBottomDuringStreaming(): void {\n if (this.noAutoScroll() || !this.isUserAtBottom) {\n return;\n }\n\n const container = this.messagesContainer();\n if (!container) {\n return;\n }\n\n const element = container.nativeElement;\n element.scrollTop = element.scrollHeight;\n }\n\n private debouncedScrollToBottom(): void {\n const now = Date.now();\n const timeSinceLastScroll = now - this.lastScrollTime;\n\n if (timeSinceLastScroll >= this.scrollDebounceMs) {\n this.lastScrollTime = now;\n this.scrollToBottomDuringStreaming();\n this.pendingScroll = false;\n } else {\n this.pendingScroll = true;\n }\n\n if (this.scrollTimeout) {\n clearTimeout(this.scrollTimeout);\n }\n\n this.scrollTimeout = setTimeout(() => {\n if (this.pendingScroll) {\n this.lastScrollTime = Date.now();\n this.scrollToBottomDuringStreaming();\n this.pendingScroll = false;\n }\n }, this.scrollDebounceMs);\n }\n\n private setupResizeObserver(): void {\n if (!isPlatformBrowser(this.platformId)) {\n return;\n }\n\n const container = this.messagesContainer();\n if (!container || this.resizeObserver) {\n return;\n }\n\n this.resizeObserver = new ResizeObserver(() => {\n this.debouncedScrollToBottom();\n });\n\n this.resizeObserver.observe(container.nativeElement);\n }\n\n private setupContentObserver(): void {\n if (!isPlatformBrowser(this.platformId)) {\n return;\n }\n\n const container = this.messagesContainer();\n if (!container || this.contentObserver) {\n return;\n }\n\n this.contentObserver = new MutationObserver(() => {\n this.debouncedScrollToBottom();\n });\n\n this.contentObserver.observe(container.nativeElement, {\n childList: true,\n subtree: true,\n characterData: true\n });\n }\n\n private checkIfUserAtBottom(): void {\n const container = this.messagesContainer();\n if (!container) {\n return;\n }\n\n const element = container.nativeElement;\n const threshold = 100;\n this.isUserAtBottom =\n element.scrollHeight - element.scrollTop - element.clientHeight < threshold;\n }\n\n protected onScroll(): void {\n this.checkIfUserAtBottom();\n }\n\n /**\n * Scrolls to the bottom of the messages container immediately.\n * This method forces a scroll even if the user has scrolled up.\n */\n public scrollToBottom(): void {\n this.isUserAtBottom = true;\n this.scrollToBottomDuringStreaming();\n }\n\n /**\n * Scrolls to the top of the messages container immediately.\n */\n public scrollToTop(): void {\n const container = this.messagesContainer();\n if (!container) {\n return;\n }\n\n const element = container.nativeElement;\n element.scrollTop = 0;\n this.isUserAtBottom = false;\n }\n\n /**\n * Focuses the messages container element.\n */\n public focus(): void {\n const container = this.messagesContainer();\n container?.nativeElement.focus();\n }\n}\n","<div class=\"chat-container d-flex flex-column flex-grow-1 px-6 py-6 w-100\">\n <div\n #messagesContainer\n class=\"messages-container d-flex flex-column flex-grow-1 w-100 align-self-center\"\n tabindex=\"0\"\n (scroll)=\"onScroll()\"\n >\n <ng-content />\n </div>\n\n <div class=\"chat-input-area py-3 pt-0 mt-6 d-flex flex-column align-items-center\">\n <ng-content select=\"si-inline-notification\" />\n <ng-content select=\"si-chat-input,[siChatContainerInput]\" />\n </div>\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Directive } from '@angular/core';\n\n/**\n * A directive to mark elements as input controls within a {@link SiChatContainerComponent}.\n *\n * This directive is used to identify and style input elements that belong to\n * the chat container component, typically applied to form inputs or textareas\n * used for composing chat messages.\n *\n * @example\n * ```html\n * <si-chat-container>\n * <si-chat-message>Hello!</si-chat-message>\n * <si-chat-message>How are you?</si-chat-message>\n *\n * <input siChatContainerInput type=\"text\" placeholder=\"Type a message...\" />\n * </si-chat-container>\n * ```\n *\n * @see {@link SiChatContainerComponent} for the chat container wrapper component\n *\n * @experimental\n */\n@Directive({\n selector: '[siChatContainerInput]'\n})\nexport class SiChatContainerInputDirective {}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { InjectionToken, Signal } from '@angular/core';\n\n/**\n * Parent contract used by {@link SiChatInputComponent} when it is projected into a chat container.\n */\nexport interface SiChatInputParent {\n readonly inputSending: Signal<boolean>;\n readonly inputInterruptible: Signal<boolean>;\n onInputSend(): void;\n}\n\n/**\n * Optional parent contract for {@link SiChatInputComponent}.\n */\nexport const SI_CHAT_INPUT_PARENT = new InjectionToken<SiChatInputParent>('si.chat-input.parent');\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { CdkMenuTrigger } from '@angular/cdk/menu';\nimport {\n afterRenderEffect,\n AfterViewInit,\n booleanAttribute,\n Component,\n computed,\n ElementRef,\n inject,\n input,\n model,\n output,\n viewChild,\n signal,\n effect\n} from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport {\n elementAttachment,\n elementPlus,\n elementSendFilled,\n elementStopFilled\n} from '@siemens/element-icons';\nimport {\n SiFileUploadDirective,\n UploadFile,\n FileUploadError\n} from '@siemens/element-ng/file-uploader';\nimport { addIcons, SiIconComponent } from '@siemens/element-ng/icon';\nimport {\n MenuItemAction,\n SiMenuActionService,\n SiMenuFactoryComponent\n} from '@siemens/element-ng/menu';\nimport { SiTooltipDirective } from '@siemens/element-ng/tooltip';\nimport { SiTranslatePipe, TranslatableString, t } from '@siemens/element-translate-ng/translate';\n\nimport { Attachment, SiAttachmentListComponent } from './si-attachment-list.component';\nimport { SI_CHAT_INPUT_PARENT, SiChatInputParent } from './si-chat-input-token';\n\n/**\n * Attachment item interface for file attachments in chat messages, extension of {@link Attachment} for {@link SiAttachmentListComponent} to use within {@link SiChatInputComponent}.\n * Adds the action file information.\n * Can be used within {@link SiChatContainerComponent}.\n *\n * @see {@link Attachment} for base attachment interface\n * @see {@link SiAttachmentListComponent} for the attachment list component\n * @see {@link SiChatInputComponent} for the chat input component\n * @see {@link SiChatContainerComponent} for the base chat container component where this can be used\n * @see {@link SiAiChatComponent} for the AI chat container where this needs to be used\n *\n * @experimental\n */\nexport interface ChatInputAttachment extends Attachment {\n /** File object */\n file: File;\n /** File size in bytes */\n size: number;\n /** MIME type */\n type: string;\n}\n\n/**\n * Chat input component for composing and sending messages in conversational interfaces.\n *\n * The chat input component provides a text area for users to compose messages,\n * supporting text, attachments, and contextual actions. It appears as a textarea\n * with buttons for adding attachments and sending messages, as well as an optional disclaimer.\n *\n * The component automatically handles:\n * - Styling for chat input and actions.\n * - Dynamic resizing of the textarea based on content.\n * - Uploading of and displaying of attachments above the input area.\n * - Displaying primary and secondary actions.\n *\n * Additionally to the inputs and outputs documented here, the component supports content projection via the following slots:\n *\n * - Default content: Custom action buttons to display inline, prefer using the `actions` input for buttons, can be used in addition.\n * - `siChatInputDisclaimer` selector: Custom disclaimer content to display below the input area, prefer using the `disclaimer` input for simple text disclaimers.\n *\n * @see {@link SiAttachmentListComponent} for the base attachment component\n * @see {@link SiChatInputDisclaimerDirective} to slot in custom disclaimer content\n *\n * @experimental\n */\n@Component({\n selector: 'si-chat-input',\n imports: [\n CdkMenuTrigger,\n FormsModule,\n SiIconComponent,\n SiTranslatePipe,\n SiAttachmentListComponent,\n SiMenuFactoryComponent,\n SiFileUploadDirective,\n SiTooltipDirective\n ],\n templateUrl: './si-chat-input.component.html',\n styleUrl: './si-chat-input.component.scss'\n})\nexport class SiChatInputComponent implements AfterViewInit {\n private static idCounter = 0;\n private readonly textInput = viewChild<ElementRef<HTMLTextAreaElement>>('textInput');\n private readonly fileUploadDirective = viewChild(SiFileUploadDirective);\n protected readonly fileInput = viewChild<ElementRef<HTMLInputElement>>('fileInput');\n protected readonly icons = addIcons({\n elementAttachment,\n elementPlus,\n elementSendFilled,\n elementStopFilled\n });\n\n private readonly parent = inject<SiChatInputParent>(SI_CHAT_INPUT_PARENT, { optional: true });\n\n constructor() {\n effect(() => {\n const parent = this.parent;\n if (parent) {\n this.sending.set(parent.inputSending());\n this.interruptible.set(parent.inputInterruptible());\n }\n });\n\n afterRenderEffect(() => {\n const value = this.value();\n const textarea = this.textInput()?.nativeElement;\n if (textarea) {\n textarea.value = value;\n this.setTextareaHeight(textarea);\n }\n });\n }\n\n /**\n * Current input value\n * @defaultValue ''\n */\n readonly value = model<string>('');\n\n /**\n * Placeholder text for the input\n *\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_CHAT_INPUT.PLACEHOLDER:Enter a message…`)\n * ```\n */\n readonly placeholder = input<TranslatableString>(\n t(() => $localize`:@@SI_CHAT_INPUT.PLACEHOLDER:Enter a message…`)\n );\n\n /**\n * Whether the input is disabled\n * @defaultValue false\n */\n readonly disabled = input(false, { transform: booleanAttribute });\n\n /**\n * Whether a message is currently being sent, also prevent the sending of new ones while still allowing the user to type\n * @defaultValue false\n */\n readonly sending = model(false);\n\n /**\n * Whether the input supports interrupting ongoing operations. When active,\n * the send button transforms into an interrupt button (with element-stop-filled icon).\n * If sending is true, the interrupt button will be disabled.\n * @defaultValue false\n */\n readonly interruptible = model(false);\n\n /**\n * Maximum number of characters allowed\n */\n readonly maxLength = input<number>();\n\n /**\n * A disclaimer to display.\n *\n * If not provided, the component will look for projected content with the `siChatInputDisclaimer` directive.\n * If both are empty, no disclaimer section will be shown (handled via CSS :empty).\n */\n readonly disclaimer = input<TranslatableString>();\n\n /**\n * Primary actions available in the input. Provide at most one action.\n * @defaultValue []\n */\n readonly actions = input<MenuItemAction[]>([]);\n\n /**\n * Secondary actions available in dropdown menu\n * @defaultValue []\n */\n readonly secondaryActions = input<MenuItemAction[]>([]);\n\n /**\n * Whether file attachments are supported\n * @defaultValue false\n */\n readonly allowAttachments = input(false);\n\n /**\n * Accepted file types for attachments (as accept string)\n * @defaultValue undefined\n */\n readonly accept = input<string>();\n\n /**\n * Maximum file size in bytes\n * @defaultValue 10485760 (10MB)\n */\n readonly maxFileSize = input(10485760);\n\n /**\n * Current attachments\n * @defaultValue []\n */\n readonly attachments = model<ChatInputAttachment[]>([]);\n\n /**\n * The label for the input, used for accessibility\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_CHAT_INPUT.LABEL:Chat input`)\n * ```\n */\n readonly label = input<string>(t(() => $localize`:@@SI_CHAT_INPUT.LABEL:Chat input`));\n\n /** Parameter to pass to action handlers */\n readonly actionParam = input<any>();\n\n /**\n * Send button label\n *\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_CHAT_INPUT.SEND:Send`)\n * ```\n */\n readonly sendButtonLabel = input<TranslatableString>(\n t(() => $localize`:@@SI_CHAT_INPUT.SEND:Send`)\n );\n\n /**\n * Send button icon\n *\n * @defaultValue this.icons.elementSendFilled\n */\n readonly sendButtonIcon = input(this.icons.elementSendFilled);\n\n /**\n * Interrupt button label\n *\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_CHAT_INPUT.INTERRUPT:Stop processing`)\n * ```\n */\n readonly interruptButtonLabel = input<TranslatableString>(\n t(() => $localize`:@@SI_CHAT_INPUT.INTERRUPT:Stop processing`)\n );\n\n /**\n * Auto-focus the input on component initialization\n * @defaultValue false\n */\n readonly autoFocus = input(false, { transform: booleanAttribute });\n\n /**\n * Attach file button aria label\n *\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_CHAT_INPUT.ATTACH_FILE:Attach file`)\n * ```\n */\n readonly attachFileLabel = input<TranslatableString>(\n t(() => $localize`:@@SI_CHAT_INPUT.ATTACH_FILE:Attach file`)\n );\n\n /**\n * Remove attachment aria label.\n * The attachment name is available with `{{attachment}}`.\n *\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_ATTACHMENT_LIST.REMOVE_ATTACHMENT:Remove {{attachment}}`)\n * ```\n */\n readonly removeAttachmentLabel = input<TranslatableString>(\n t(() => $localize`:@@SI_ATTACHMENT_LIST.REMOVE_ATTACHMENT:Remove {{attachment}}`)\n );\n\n /**\n * More actions button aria label\n *\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_CHAT_INPUT.SECONDARY_ACTIONS:Additional actions`)\n * ```\n */\n readonly secondaryActionsLabel = input<TranslatableString>(\n t(() => $localize`:@@SI_CHAT_INPUT.SECONDARY_ACTIONS:Additional actions`)\n );\n\n /**\n * Suggested follow-up prompts to display as pill buttons above the chat input.\n * Use `followUpPromptSelected` to handle selection and update the input value.\n * Typically populated from AI response data and cleared after selection or on send.\n * @defaultValue []\n */\n readonly followUpPrompts = input<string[]>([]);\n\n /**\n * Emitted when the user selects a follow-up prompt.\n * The emitted value is the text of the selected prompt.\n */\n readonly followUpPromptSelected = output<string>();\n\n /**\n * Emitted when the user wants to send a message\n */\n readonly send = output<{\n content: string;\n attachments: ChatInputAttachment[];\n }>();\n\n /**\n * Emitted when the user wants to interrupt the current operation\n */\n readonly interrupt = output<void>();\n\n /**\n * Emitted when file upload errors occur\n */\n readonly fileError = output<FileUploadError>();\n\n protected readonly id = `__si-chat-input-${SiChatInputComponent.idCounter++}`;\n protected readonly hasContent = computed(() => this.value().trim().length > 0);\n protected readonly hasAttachments = computed(() => this.attachments().length > 0);\n protected readonly hasActions = computed(() => this.actions().length > 0);\n protected readonly hasSecondaryActions = computed(() => this.secondaryActions().length > 0);\n protected readonly combinedMenuActions = computed<MenuItemAction[]>(() => [\n ...(this.allowAttachments()\n ? [\n {\n type: 'action' as const,\n label: this.attachFileLabel(),\n icon: this.icons.elementAttachment,\n disabled: this.disabled(),\n action: () => this.triggerFileInput()\n } satisfies MenuItemAction\n ]\n : []),\n ...this.secondaryActions()\n ]);\n\n protected readonly hasMenuActions = computed(() => this.hasSecondaryActions());\n\n protected triggerFileInput(): void {\n this.fileInput()?.nativeElement.click();\n }\n protected readonly canSend = computed(\n () => (this.hasContent() || this.hasAttachments()) && !this.disabled() && !this.sending()\n );\n\n protected readonly showInterruptButton = computed(() => this.interruptible());\n protected readonly buttonDisabled = computed(() => {\n if (this.showInterruptButton()) {\n return this.disabled() || this.sending();\n }\n return !this.canSend();\n });\n protected readonly buttonIcon = computed(() =>\n this.showInterruptButton() ? this.icons.elementStopFilled : this.sendButtonIcon()\n );\n protected readonly buttonLabel = computed(() =>\n this.showInterruptButton() ? this.interruptButtonLabel() : this.sendButtonLabel()\n );\n\n protected readonly dragOver = signal(false);\n\n private readonly menuActionService = inject(SiMenuActionService, { optional: true });\n\n protected runAction(action: MenuItemAction): void {\n if (typeof action.action === 'function') {\n action.action(this.actionParam(), action);\n } else {\n this.menuActionService?.actionTriggered(action, this.actionParam());\n }\n }\n\n protected selectFollowUpPrompt(prompt: string): void {\n this.followUpPromptSelected.emit(prompt);\n this.focus();\n }\n\n protected onSend(): void {\n if (this.canSend()) {\n this.send.emit({\n content: this.value(),\n attachments: this.attachments()\n });\n this.parent?.onInputSend();\n\n this.value.set('');\n this.attachments.set([]);\n }\n }\n\n protected onButtonClick(): void {\n if (this.showInterruptButton()) {\n this.interrupt.emit();\n } else {\n this.onSend();\n }\n }\n\n protected onKeyDown(event: KeyboardEvent): void {\n if (event.isComposing) {\n return;\n }\n if (event.key === 'Enter' && !event.shiftKey) {\n event.preventDefault();\n if (event.repeat) {\n return;\n }\n if (!this.canSend()) {\n return;\n }\n if (this.showInterruptButton()) {\n this.interrupt.emit();\n }\n this.onSend();\n }\n }\n\n protected onInput(event: Event): void {\n this.setTextareaHeight(event.target as HTMLTextAreaElement);\n }\n\n protected onFilesAdded(uploadFiles: UploadFile[]): void {\n const validFiles = uploadFiles.filter(uploadFile => uploadFile.status === 'added');\n\n validFiles.forEach(uploadFile => {\n const size = parseInt(uploadFile.size, 10);\n const attachment: ChatInputAttachment = {\n name: uploadFile.fileName,\n size: isNaN(size) ? uploadFile.file.size : size,\n type: uploadFile.file.type,\n file: uploadFile.file\n };\n\n this.attachments.update(current => [...current, attachment]);\n });\n }\n\n protected onFileError(error: FileUploadError): void {\n this.fileError.emit(error);\n }\n\n protected removeAttachment(attachment: Attachment): void {\n this.attachments.update(current => {\n return current.filter(a => a !== attachment);\n });\n }\n\n protected onContainerClick(event: Event): void {\n const target = event.target as HTMLElement;\n\n // Don't focus if clicking on interactive elements\n if (\n target.tagName === 'BUTTON' ||\n target.tagName === 'INPUT' ||\n target.tagName === 'TEXTAREA' ||\n target.closest('button') ||\n target.closest('[siChatMessageAction]') ||\n (target.closest('si-attachment-list') && target.closest('.attachment-item'))\n ) {\n return;\n }\n\n this.focus();\n }\n\n ngAfterViewInit(): void {\n const textarea = this.textInput();\n if (textarea?.nativeElement) {\n if (this.autoFocus()) {\n // Use setTimeout to ensure the element is fully rendered\n setTimeout(() => {\n textarea.nativeElement.focus();\n }, 0);\n }\n }\n }\n\n /**\n * Focus the textarea input\n */\n focus(): void {\n const textarea = this.textInput();\n if (textarea?.nativeElement) {\n textarea.nativeElement.focus();\n }\n }\n\n protected dropHandler(event: DragEvent): void {\n event.preventDefault();\n event.stopPropagation();\n this.dragOver.set(false);\n\n if (!this.allowAttachments() || this.disabled()) {\n return;\n }\n\n const directive = this.fileUploadDirective();\n if (directive && event.dataTransfer?.files) {\n directive.handleFiles(event.dataTransfer.files);\n }\n }\n\n protected dragOverHandler(event: DragEvent): void {\n if (!this.allowAttachments() || this.disabled()) {\n return;\n }\n\n event.preventDefault();\n event.stopPropagation();\n this.dragOver.set(true);\n }\n\n private setTextareaHeight(textarea: HTMLTextAreaElement): void {\n textarea.style.blockSize = 'auto';\n\n const computedStyle = window.getComputedStyle(textarea);\n const lineHeight =\n parseInt(computedStyle.lineHeight, 10) || parseInt(computedStyle.fontSize, 10) * 1.2;\n const paddingTop = parseInt(computedStyle.paddingBlockStart, 10) || 0;\n const paddingBottom = parseInt(computedStyle.paddingBlockEnd, 10) || 0;\n const minHeight = lineHeight + paddingTop + paddingBottom;\n\n const viewportHeight = window.innerHeight;\n const maxViewportHeight = viewportHeight * 0.3;\n const maxLinesHeight = lineHeight * 8;\n const maxHeight = Math.min(maxViewportHeight, maxLinesHeight) + paddingTop + paddingBottom;\n\n const scrollHeight = textarea.scrollHeight;\n const finalHeight = Math.max(Math.min(scrollHeight, maxHeight), minHeight);\n textarea.style.height = finalHeight + 'px';\n }\n}\n","@if (followUpPrompts().length) {\n <div class=\"follow-up-prompts d-flex flex-wrap gap-4 mb-4\">\n @for (prompt of followUpPrompts(); track $index) {\n <button\n type=\"button\"\n class=\"btn btn-secondary-ghost fw-normal\"\n [disabled]=\"disabled() || sending()\"\n (click)=\"selectFollowUpPrompt(prompt)\"\n >{{ prompt }}</button\n >\n }\n </div>\n}\n\n<div\n class=\"input-wrapper border rounded-3\"\n [class.drag-over]=\"dragOver()\"\n (click)=\"onContainerClick($event)\"\n (drop)=\"dropHandler($event)\"\n (dragover)=\"dragOverHandler($event)\"\n (dragleave)=\"dragOver.set(false)\"\n>\n @if (hasAttachments()) {\n <si-attachment-list\n [attachments]=\"attachments()\"\n [removeLabel]=\"removeAttachmentLabel()\"\n [removable]=\"true\"\n (remove)=\"removeAttachment($event)\"\n />\n }\n\n <div class=\"si-body-paragraph\">\n <label class=\"form-label d-none\" [for]=\"id\">{{ label() | translate }}</label>\n <textarea\n #textInput\n class=\"chat-textarea w-100 border-0\"\n rows=\"1\"\n [id]=\"id\"\n [placeholder]=\"placeholder() | translate\"\n [disabled]=\"disabled()\"\n [maxlength]=\"maxLength() || null\"\n [(ngModel)]=\"value\"\n (input)=\"onInput($event)\"\n (keydown)=\"onKeyDown($event)\"\n ></textarea>\n </div>\n\n <div class=\"d-flex align-items-center justify-content-between\">\n <div class=\"d-flex align-items-center gap-0\">\n <div class=\"btn-group\" role=\"group\">\n @if (allowAttachments()) {\n <input\n #fileInput\n type=\"file\"\n class=\"d-none\"\n siFileUpload\n [accept]=\"accept()\"\n [maxFileSize]=\"maxFileSize()\"\n [multiple]=\"true\"\n (validFiles)=\"onFilesAdded($event)\"\n (fileError)=\"onFileError($event)\"\n />\n }\n\n @if (allowAttachments() && !hasSecondaryActions()) {\n <button\n type=\"button\"\n class=\"btn btn-tertiary-ghost btn-icon\"\n [disabled]=\"disabled()\"\n [siTooltip]=\"attachFileLabel() | translate\"\n [attr.aria-label]=\"attachFileLabel() | translate\"\n (click)=\"triggerFileInput()\"\n >\n <si-icon [icon]=\"icons.elementAttachment\" />\n </button>\n }\n\n @if (hasMenuActions()) {\n <button\n type=\"button\"\n class=\"btn btn-tertiary-ghost btn-icon\"\n [cdkMenuTriggerFor]=\"allActionsMenu\"\n [siTooltip]=\"secondaryActionsLabel() | translate\"\n [attr.aria-label]=\"secondaryActionsLabel() | translate\"\n >\n <si-icon [icon]=\"icons.elementPlus\" />\n </button>\n\n <ng-template #allActionsMenu>\n <si-menu-factory [items]=\"combinedMenuActions()\" [actionParam]=\"actionParam()\" />\n </ng-template>\n }\n @if (hasActions()) {\n @for (action of actions(); track $index) {\n <button\n type=\"button\"\n class=\"btn btn-tertiary-ghost\"\n [class.btn-icon]=\"!!action.icon\"\n [disabled]=\"action.disabled\"\n [siTooltip]=\"action.label | translate\"\n [attr.aria-label]=\"action.label | translate\"\n (click)=\"runAction(action)\"\n >\n @if (action.icon) {\n <si-icon [icon]=\"action.icon\" />\n } @else {\n {{ action.label | translate }}\n }\n </button>\n }\n }\n </div>\n <div class=\"d-flex align-items-center gap-0\">\n <ng-content />\n </div>\n </div>\n\n <button\n type=\"button\"\n class=\"btn btn-tertiary btn-icon\"\n [disabled]=\"buttonDisabled()\"\n [attr.aria-label]=\"buttonLabel() | translate\"\n (click)=\"onButtonClick()\"\n >\n <si-icon class=\"text-accent\" [icon]=\"buttonIcon()\" />\n </button>\n </div>\n</div>\n\n<div class=\"disclaimer-wrapper text-center mt-4 px-3\">\n @if (disclaimer()) {\n <span class=\"si-body-sm text-secondary d-block\">{{ disclaimer() | translate }}</span>\n }\n <ng-content select=\"[siChatInputDisclaimer]\" />\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Directive } from '@angular/core';\n\n/**\n * Directive to mark content as chat input disclaimer into {@link SiChatInputComponent}.\n * Apply this directive to content that should be slotted into the disclaimer area.\n *\n * @example\n * ```html\n * <si-chat-input>\n * <div siChatInputDisclaimer>\n * Custom disclaimer content\n * </div>\n * </si-chat-input>\n * ```\n *\n * @see {@link SiChatInputComponent} for the chat input wrapper component\n *\n * @experimental\n */\n@Directive({\n selector: '[siChatInputDisclaimer]'\n})\nexport class SiChatInputDisclaimerDirective {}\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Component, input, computed } from '@angular/core';\nimport { MenuItemAction } from '@siemens/element-ng/menu';\nimport { t } from '@siemens/element-translate-ng/translate';\n\nimport { Attachment, SiAttachmentListComponent } from './si-attachment-list.component';\nimport { SiChatMessageActionDirective } from './si-chat-message-action.directive';\nimport { SiChatMessageActionsComponent } from './si-chat-message-actions.component';\nimport { SiChatMessageComponent } from './si-chat-message.component';\n\n/**\n * User message component for displaying the user's messages in conversational interfaces.\n *\n * The user message component renders user-submitted content in (AI) chat interfaces,\n * supporting text, attachments, and contextual actions. It appears as a text bubble\n * aligned to the right side.\n * Can be used within {@link SiChatContainerComponent}.\n *\n * The component automatically handles:\n * - Styling for user messages distinct from AI or generic chat messages\n * - Displaying attachments above the message bubble\n * - Displaying primary and secondary actions\n *\n * @see {@link SiChatMessageComponent} for the base message wrapper component\n * @see {@link SiAiMessageComponent} for the AI message component\n * @see {@link SiAttachmentListComponent} for the base attachment component\n * @see {@link SiChatContainerComponent} for the chat container to use this within\n *\n * @experimental\n */\n@Component({\n selector: 'si-user-message',\n imports: [\n SiAttachmentListComponent,\n SiChatMessageComponent,\n SiChatMessageActionDirective,\n SiChatMessageActionsComponent\n ],\n templateUrl: './si-user-message.component.html',\n styleUrl: './si-user-message.component.scss'\n})\nexport class SiUserMessageComponent {\n /**\n * The user message content\n * @defaultValue ''\n */\n readonly content = input<string>('');\n\n /**\n * Primary message actions (edit, delete, copy, etc.).\n * All actions displayed inline\n * @defaultValue []\n */\n readonly actions = input<MenuItemAction[]>([]);\n\n /**\n * Secondary actions available in dropdown menu, first use primary actions and only add secondary actions additionally\n * @defaultValue []\n */\n readonly secondaryActions = input<MenuItemAction[]>([]);\n\n /**\n * List of attachments included with this message\n * @defaultValue []\n */\n readonly attachments = input<Attachment[]>([]);\n\n /** Parameter to pass to action handlers */\n readonly actionParam = input<any>();\n\n /**\n * More actions button aria label\n *\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_USER_MESSAGE.SECONDARY_ACTIONS:Additional actions`)\n * ```\n */\n readonly secondaryActionsLabel = input(\n t(() => $localize`:@@SI_USER_MESSAGE.SECONDARY_ACTIONS:Additional actions`)\n );\n\n protected readonly hasAttachments = computed(() => this.attachments()?.length > 0);\n}\n","<si-chat-message alignment=\"end\" actionsPosition=\"bottom\" [loading]=\"false\">\n @if (hasAttachments()) {\n <si-attachment-list alignment=\"end\" [attachments]=\"attachments()\" [removable]=\"false\" />\n }\n\n @if (content()) {\n <span class=\"text-pre-wrap\">{{ content() }}</span>\n } @else {\n <ng-content />\n }\n @if (actions().length > 0 || secondaryActions().length > 0) {\n <si-chat-message-actions\n class=\"user-message-actions\"\n siChatMessageAction\n [actions]=\"actions()\"\n [secondaryActions]=\"secondaryActions()\"\n [actionParam]=\"actionParam()\"\n [secondaryActionsLabel]=\"secondaryActionsLabel()\"\n />\n }\n</si-chat-message>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { Component, input, model, output } from '@angular/core';\nimport { SiActionCardComponent } from '@siemens/element-ng/card';\nimport { SiSummaryChipComponent } from '@siemens/element-ng/summary-chip';\nimport { TranslatableString } from '@siemens/element-translate-ng/translate';\n\nexport interface PromptCategory {\n label: TranslatableString;\n}\n\nexport interface PromptSuggestion {\n text: TranslatableString;\n}\n\n/**\n * AI welcome screen component for displaying initial state in AI chat interfaces.\n *\n * The AI welcome screen component provides an engaging initial state for AI chat interfaces,\n * featuring a welcome message, optional prompt categories for filtering, and suggested prompts\n * that users can click to start conversations.\n *\n * The component includes:\n * - Welcome header with AI branding and customizable greeting\n * - Optional category pills for filtering prompt suggestions\n * - Clickable prompt suggestion cards\n * - Optional refresh button to regenerate suggestions\n *\n * @see {@link SiAiChatComponent} for the AI chat container which uses this component\n * @see {@link SiChatContainerComponent} for the base chat container\n *\n * @experimental\n */\n@Component({\n selector: 'si-ai-welcome-screen',\n imports: [SiActionCardComponent, SiSummaryChipComponent],\n templateUrl: './si-ai-welcome-screen.component.html',\n styleUrl: './si-ai-welcome-screen.component.scss',\n host: {\n class: 'd-block'\n }\n})\nexport class SiAiWelcomeScreenComponent {\n /**\n * The list of prompt categories\n * @defaultValue []\n */\n readonly categories = input<PromptCategory[]>([]);\n\n /**\n * The currently selected category ID\n * @defaultValue undefined\n */\n readonly selectedCategory = model<string | undefined>(undefined);\n\n /**\n * The list of prompt suggestions as an array, update this when the selected category changes.\n * @defaultValue []\n */\n readonly promptSuggestions = input<PromptSuggestion[]>([]);\n\n /**\n * Emitted when a prompt suggestion is clicked\n */\n readonly promptSelected = output<PromptSuggestion>();\n\n protected onCategoryClick(categoryLabel: string): void {\n this.selectedCategory.set(\n this.selectedCategory() === categoryLabel ? undefined : categoryLabel\n );\n }\n\n protected onPromptClick(suggestion: PromptSuggestion): void {\n this.promptSelected.emit(suggestion);\n }\n}\n","<div class=\"d-flex flex-column gap-13 align-items-center w-100\">\n <!-- Welcome Header -->\n <div class=\"welcome-header d-flex flex-column gap-4 w-100 pt-13 pb-8\">\n <ng-content />\n </div>\n\n <!-- Prompt Categories and Suggestions -->\n <div class=\"prompt-suggestions d-flex flex-column gap-6 align-items-center w-100\">\n @if (categories().length > 0) {\n <div class=\"d-flex gap-4 align-items-center w-100\">\n @for (category of categories(); track $index) {\n <si-summary-chip\n class=\"user-select-none\"\n [label]=\"category.label\"\n [selected]=\"selectedCategory() === category.label\"\n (selectedChange)=\"onCategoryClick(category.label)\"\n />\n }\n </div>\n }\n\n @if (promptSuggestions().length > 0) {\n <div class=\"d-flex flex-column gap-4 w-100\">\n @for (suggestion of promptSuggestions(); track $index) {\n <button si-action-card type=\"button\" class=\"w-100\" (click)=\"onPromptClick(suggestion)\">\n <div body class=\"card-body card-text\">\n {{ suggestion.text }}\n </div>\n </button>\n }\n </div>\n }\n </div>\n</div>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n computed,\n input,\n output,\n booleanAttribute,\n contentChild,\n Signal,\n isSignal,\n effect,\n viewChild,\n signal\n} from '@angular/core';\nimport { BackgroundColorVariant } from '@siemens/element-ng/common';\nimport { SiInlineNotificationComponent } from '@siemens/element-ng/inline-notification';\nimport {\n makeSiMarkdownOptions,\n SiMarkdownComponent,\n SiMarkdownOptions\n} from '@siemens/element-ng/markdown';\nimport { SiTranslatePipe, TranslatableString, t } from '@siemens/element-translate-ng/translate';\n\nimport {\n ActivityChatMessage,\n ActivityDetailsDisplay,\n ActivityTraceChatMessage,\n AiChatMessage,\n ChatMessage,\n TemplateChatMessage\n} from './chat-message.model';\nimport { SiActivityMessagePartComponent } from './si-activity-message-part.component';\nimport { SiActivityMessageComponent } from './si-activity-message.component';\nimport { SiActivityTraceComponent } from './si-activity-trace.component';\nimport { SiAiMessageComponent } from './si-ai-message.component';\nimport { PromptSuggestion, SiAiWelcomeScreenComponent } from './si-ai-welcome-screen.component';\nimport { SiChatContainerInputDirective } from './si-chat-container-input.directive';\nimport { SiChatContainerComponent } from './si-chat-container.component';\nimport { SI_CHAT_INPUT_PARENT, SiChatInputParent } from './si-chat-input-token';\nimport { ChatInputAttachment, SiChatInputComponent } from './si-chat-input.component';\nimport { SiUserMessageComponent } from './si-user-message.component';\n\ninterface ActivityInputPart {\n content?: string;\n heading: TranslatableString;\n key?: string;\n}\n\n/**\n * A model-driven chat container component for displaying an AI chat interface with automatic scroll-to-bottom behavior.\n *\n * This component provides an AI chat interface, managing scrolling behavior\n * to keep the newest messages visible while respecting user scrolling actions. It automatically\n * scrolls to the bottom when new content is added, unless the user has scrolled up to view older messages.\n *\n * Required content projection:\n * - `si-chat-input`: Input controls for composing messages\n *\n * @see {@link ChatMessage} for the chat message model\n * @see {@link AiChatMessage} for the AI chat message model\n * @see {@link UserChatMessage} for the user chat message model\n * @see {@link TemplateChatMessage} for the template chat message model\n * @see {@link SiChatInputComponent} for the chat input component\n * @see {@link SiChatContainerComponent} for the base chat container component\n * @see {@link SiAiMessageComponent} for the used AI message component\n * @see {@link SiUserMessageComponent} for the used user message component\n * @see {@link SiChatMessageComponent} for the base wrapper chat message component used by AI and user message components\n *\n * @experimental\n */\n@Component({\n selector: 'si-ai-chat',\n imports: [\n NgTemplateOutlet,\n SiInlineNotificationComponent,\n SiAiMessageComponent,\n SiActivityMessageComponent,\n SiActivityMessagePartComponent,\n SiActivityTraceComponent,\n SiUserMessageComponent,\n SiMarkdownComponent,\n SiChatContainerComponent,\n SiChatContainerInputDirective,\n SiTranslatePipe,\n SiAiWelcomeScreenComponent\n ],\n templateUrl: './si-ai-chat.component.html',\n providers: [{ provide: SI_CHAT_INPUT_PARENT, useExisting: SiAiChatComponent }],\n host: {\n class: 'd-flex si-layout-inner flex-grow-1 flex-column h-100 w-100'\n }\n})\nexport class SiAiChatComponent implements SiChatInputParent {\n private readonly chatInput = contentChild<SiChatInputComponent>(SiChatInputComponent);\n private readonly chatContainer = viewChild<SiChatContainerComponent>(SiChatContainerComponent);\n\n constructor() {\n effect(() => {\n if (this.isEmpty()) {\n this.chatContainer()?.scrollToTop();\n }\n });\n }\n\n /**\n * List of chat messages to display. Messages can contain either content (string)\n * or a template (TemplateRef) for custom rendering. When both content and template\n * are provided, the template takes precedence.\n */\n readonly messages = input<ChatMessage[] | undefined>();\n\n /**\n * Whether the latest activity details are expanded automatically.\n * @defaultValue true\n */\n readonly autoExpand = input(true, { transform: booleanAttribute });\n\n /**\n * Which activity input and output parts are shown.\n * @defaultValue 'auto'\n */\n readonly show = input<ActivityDetailsDisplay>('auto');\n\n /**\n * Whether a message is currently being sent, disables input and shows a loading state in the input area.\n * If you want to show a loading state for the latest AI message, set {@link loading} to true instead.\n * @defaultValue false\n */\n readonly sending = input(false, { transform: booleanAttribute });\n\n /**\n * Whether a pending loading AI message should be shown (e.g. while waiting for response).\n * If you also want to prevent the user from sending new messages, set {@link sending} to true as well.\n * @defaultValue false\n */\n readonly loading = input(false, { transform: booleanAttribute });\n\n /**\n * Whether to disable the interrupt functionality\n * @defaultValue false\n */\n readonly disableInterrupt = input(false, { transform: booleanAttribute });\n\n /**\n * Whether the system is currently interrupting an operation. When true,\n * forces interruptible mode and shows sending state on the input.\n * @defaultValue false\n */\n readonly interrupting = input(false, { transform: booleanAttribute });\n\n /**\n * Disable auto-scroll to bottom when new messages are added\n * @defaultValue false\n */\n readonly noAutoScroll = input(false, { transform: booleanAttribute });\n\n /**\n * Custom AI icon name, used for empty state\n * @defaultValue 'element-ai'\n */\n readonly aiIcon = input('element-ai');\n\n /**\n * Color to use for component background.\n * @defaultValue 'base-0'\n */\n readonly colorVariant = input<BackgroundColorVariant>('base-0');\n\n /**\n * Options used to render chat message markdown.\n * @defaultValue\n * ```\n * makeSiMarkdownOptions()\n * ```\n */\n readonly markdownOptions = input<SiMarkdownOptions>(makeSiMarkdownOptions());\n\n /**\n * The greeting text for the welcome screen\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_AI_CHAT_CONTAINER.WELCOME_GREETING:Hello,`)\n * ```\n */\n readonly greeting = input(t(() => $localize`:@@SI_AI_CHAT_CONTAINER.WELCOME_GREETING:Hello,`));\n\n /**\n * The welcome message text for the welcome screen\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_AI_CHAT_CONTAINER.WELCOME_MESSAGE:how can I help you today?`)\n * ```\n */\n readonly welcomeMessage = input(\n t(() => $localize`:@@SI_AI_CHAT_CONTAINER.WELCOME_MESSAGE:how can I help you today?`)\n );\n\n /**\n * The list of prompt suggestions for the welcome screen, either as an array or a record mapping category labels to suggestion arrays\n * @defaultValue []\n */\n readonly promptSuggestions = input<PromptSuggestion[] | Record<string, PromptSuggestion[]>>([]);\n\n /**\n * More actions button aria label\n *\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_AI_CHAT_CONTAINER.SECONDARY_ACTIONS:More actions`)\n * ```\n */\n readonly secondaryActionsLabel = input(\n t(() => $localize`:@@SI_AI_CHAT_CONTAINER.SECONDARY_ACTIONS:More actions`)\n );\n\n /**\n * Status notification severity\n */\n readonly statusSeverity = input<\n 'info' | 'success' | 'caution' | 'warning' | 'danger' | 'critical'\n >();\n\n /**\n * Status notification heading\n */\n readonly statusHeading = input<string>();\n\n /**\n * Status notification message\n */\n readonly statusMessage = input<string>();\n\n /**\n * Status notification action link\n */\n readonly statusAction = input<{ title: string; href: string; target?: string }>();\n\n /**\n * Label for activity input arguments.\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_AI_CHAT_CONTAINER.INPUT_ARGUMENTS:Input arguments`)\n * ```\n */\n readonly activityInputArgumentsLabel = input(\n t(() => $localize`:@@SI_AI_CHAT_CONTAINER.INPUT_ARGUMENTS:Input arguments`)\n );\n\n /**\n * Label for activity output.\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_AI_CHAT_CONTAINER.OUTPUT:Output`)\n * ```\n */\n readonly activityOutputLabel = input(t(() => $localize`:@@SI_AI_CHAT_CONTAINER.OUTPUT:Output`));\n\n /**\n * Default name for reasoning activities.\n * @defaultValue\n * ```\n * t(() => $localize`:@@SI_AI_CHAT_CONTAINER.REASONING:Reasoning`)\n * ```\n */\n readonly activityReasoningLabel = input(\n t(() => $localize`:@@SI_AI_CHAT_CONTAINER.REASONING:Reasoning`)\n );\n\n /**\n * Emitted when a new message is sent\n */\n readonly messageSent = output<{\n content: string;\n attachments: ChatInputAttachment[];\n }>();\n\n /**\n * Internal selected category state\n */\n protected readonly selectedCategory = signal<string | undefined>(undefined);\n\n /**\n * Computed list of categories derived from promptSuggestions\n */\n protected readonly promptCategories = computed(() => {\n const suggestions = this.promptSuggestions();\n if (Array.isArray(suggestions)) {\n return [];\n }\n return Object.keys(suggestions).map(label => ({ label }));\n });\n\n /**\n * Resolved prompt suggestions based on selected category.\n */\n protected readonly resolvedPromptSuggestions = computed<PromptSuggestion[]>(() => {\n const suggestions = this.promptSuggestions();\n if (Array.isArray(suggestions)) {\n return suggestions;\n }\n const category = this.selectedCategory();\n if (category && suggestions[category]) {\n return suggestions[category];\n }\n const keys = Object.keys(suggestions);\n return keys.length > 0 ? suggestions[keys[0]] : [];\n });\n\n protected readonly isEmpty = computed(() => this.messages()?.length === 0 && !this.loading());\n\n readonly inputInterruptible = computed(() => {\n return this.interrupting() || (this.loading() && !this.disableInterrupt() && !this.sending());\n });\n\n readonly inputSending = computed(() => {\n return this.sending() || this.interrupting();\n });\n\n protected readonly displayMessages = computed<ChatMessage[]>(() => {\n const messages = this.messages();\n if (!messages?.length) {\n if (this.loading()) {\n const loadingMessage: AiChatMessage = {\n type: 'ai',\n content: '',\n loading: true\n };\n return [loadingMessage];\n }\n return [];\n }\n\n const latestMessage = messages.at(-1);\n if (this.loading() && latestMessage) {\n const shouldAddAiMessage =\n this.isTemplateMessage(latestMessage) ||\n (latestMessage.type === 'ai' &&\n this.getContentValue(latestMessage.content) &&\n !this.getLoadingState(latestMessage.loading, latestMessage.content, false) &&\n !this.isStreamingContent(latestMessage.content)) ||\n latestMessage.type === 'user' ||\n latestMessage.type === 'activity' ||\n latestMessage.type === 'activity-trace';\n\n if (shouldAddAiMessage) {\n const newMessages = [...messages];\n const loadingMessage: AiChatMessage = {\n type: 'ai',\n content: '',\n loading: true\n };\n newMessages.push(loadingMessage);\n return newMessages;\n }\n }\n\n return messages;\n });\n\n protected readonly renderedMessages = computed(() =>\n this.displayMessages().map(message => {\n const actions = 'actions' in message ? (message.actions ?? []) : [];\n return {\n message,\n primaryActions: actions.slice(0, 3),\n secondaryActions: actions.slice(3)\n };\n })\n );\n\n protected isTemplateMessage(message: ChatMessage): message is TemplateChatMessage {\n return 'template' in message && message.template !== undefined;\n }\n\n /**\n * Scrolls to the bottom of the messages container immediately.\n * This method forces a scroll even if the user has scrolled up.\n */\n public scrollToBottom(): void {\n this.chatContainer()?.scrollToBottom();\n }\n\n public onInputSend(): void {\n this.scrollToBottom();\n }\n\n /**\n * Focuses the chat input component if it exists.\n */\n public focus(): void {\n const inputComponent = this.chatInput();\n if (inputComponent) {\n inputComponent.focus();\n }\n }\n\n protected getContentValue(content: string | Signal<string> | undefined): string {\n if (isSignal(content)) {\n return content();\n }\n return content ?? '';\n }\n\n protected getMarkdownContent(\n content: string | object | Signal<string | object> | undefined\n ): string {\n const value = isSignal(content) ? content() : content;\n if (typeof value === 'string') {\n return value;\n }\n return value ? `\\`\\`\\`json\\n${JSON.stringify(value, undefined, 2)}\\n\\`\\`\\`` : '';\n }\n\n private isEmptyContent(content: string | Signal<string> | undefined): boolean {\n const contentValue = this.getContentValue(content);\n return !contentValue || contentValue.trim().length === 0;\n }\n\n protected getLoadingValue(loading: boolean | Signal<boolean> | undefined): boolean {\n if (isSignal(loading)) {\n return loading();\n }\n return loading ?? false;\n }\n\n private isStreamingContent(content: string | Signal<string> | undefined): boolean {\n return isSignal(content) && this.getContentValue(content).trim().length > 0;\n }\n\n protected getLoadingState(\n messageLoading: boolean | Signal<boolean> | undefined,\n content: string | Signal<string> | undefined,\n isLatest: boolean,\n globalLoading: boolean = false\n ): boolean {\n const messageLoadingValue = this.getLoadingValue(messageLoading);\n const isEmptyContent = this.isEmptyContent(content);\n\n return messageLoadingValue || (isLatest && globalLoading && isEmptyContent);\n }\n\n protected isLatestMessage(message: ChatMessage): boolean {\n const messages = this.displayMessages();\n return messages[messages.length - 1] === message;\n }\n\n protected isLatestActivityMessage(\n message: ActivityChatMessage | ActivityTraceChatMessage\n ): boolean {\n const messages = this.displayMessages();\n const messageIndex = messages.indexOf(message);\n if (messageIndex === -1) {\n return false;\n }\n\n return !messages.slice(messageIndex + 1).some(next => {\n return (\n !this.isTemplateMessage(next) &&\n (next.type === 'activity' || next.type === 'activity-trace' || next.type === 'user')\n );\n });\n }\n\n protected shouldAutoExpandTrace(message: ActivityTraceChatMessage): boolean {\n return (\n this.isLatestActivityMessage(message) &&\n ((message.autoExpand ?? this.autoExpand()) ||\n message.messages.some(activity => this.hasExplicitAutoExpand(activity)))\n );\n }\n\n protected shouldAutoExpandActivity(\n message: ActivityChatMessage,\n active: boolean,\n inheritedAutoExpand: boolean\n ): boolean {\n const directDetail = this.getDirectActivityDetailType(message);\n const directAutoExpand =\n directDetail === 'input' && typeof message.autoExpandInputs === 'boolean'\n ? message.autoExpandInputs\n : directDetail === 'output'\n ? message.autoExpandOutputs\n : undefined;\n return (\n active &&\n (directAutoExpand ??\n ((message.autoExpand ?? inheritedAutoExpand) || this.hasExplicitAutoExpand(message)))\n );\n }\n\n private hasExplicitAutoExpand(message: ActivityChatMessage): boolean {\n return (\n message.autoExpandInputs === true ||\n (Array.isArray(message.autoExpandInputs) && message.autoExpandInputs.length > 0) ||\n message.autoExpandOutputs === true ||\n !!message.messages?.some(activity =>\n activity.autoExpand === true ? true : this.hasExplicitAutoExpand(activity)\n )\n );\n }\n\n protected hasActivityDetails(message: ActivityChatMessage): boolean {\n return (\n !!this.getContentValue(message.content).trim() ||\n this.shouldShowActivityInputs(message) ||\n this.shouldShowActivityOutput(message) ||\n !!message.messages?.length\n );\n }\n\n protected getActivityInputs(message: ActivityChatMessage): ActivityInputPart[] {\n if (typeof message.input === 'string') {\n return [\n {\n heading: message.inputArgumentsLabel ?? this.activityInputArgumentsLabel(),\n content: message.input\n }\n ];\n }\n if (Array.isArray(message.input)) {\n return message.input.map((heading, index) => ({ heading, key: `${index}` }));\n }\n if (message.input) {\n return Object.entries(message.input).map(([key, content]) => ({\n heading: key,\n content,\n key\n }));\n }\n return [];\n }\n\n protected hasActivityOutput(message: ActivityChatMessage): boolean {\n return !!message.output?.trim();\n }\n\n protected getDirectActivityDetail(message: ActivityChatMessage): string | undefined {\n const detail = this.getDirectActivityDetailType(message);\n return detail === 'input'\n ? (message.input as string)\n : detail === 'output'\n ? message.output\n : undefined;\n }\n\n private getDirectActivityDetailType(\n message: ActivityChatMessage\n ): 'input' | 'output' | undefined {\n if (message.content || message.messages?.length) {\n return undefined;\n }\n const showInputs = this.shouldShowActivityInputs(message);\n const showOutput = this.shouldShowActivityOutput(message);\n if (showInputs && !showOutput && typeof message.input === 'string') {\n return 'input';\n }\n if (showOutput && !showInputs) {\n return 'output';\n }\n return undefined;\n }\n\n protected shouldShowActivityInputs(message: ActivityChatMessage): boolean {\n const show = this.show();\n return (\n this.getActivityInputs(message).length > 0 &&\n (show === 'inputs' ||\n show === 'both' ||\n (show === 'auto' && !this.hasActivityOutput(message)))\n );\n }\n\n protected shouldShowActivityOutput(message: ActivityChatMessage): boolean {\n const show = this.show();\n return (\n this.hasActivityOutput(message) && (show === 'outputs' || show === 'both' || show === 'auto')\n );\n }\n\n protected shouldAutoExpandInput(\n message: ActivityChatMessage,\n inputPart: ActivityInputPart,\n active: boolean,\n inheritedAutoExpand: boolean\n ): boolean {\n if (!active || inputPart.content === undefined) {\n return false;\n }\n\n if (Array.isArray(message.autoExpandInputs)) {\n return inputPart.key !== undefined && message.autoExpandInputs.includes(inputPart.key);\n }\n if (message.autoExpandInputs !== undefined) {\n return message.autoExpandInputs;\n }\n if (this.shouldShowActivityOutput(message)) {\n return false;\n }\n return message.autoExpand ?? inheritedAutoExpand;\n }\n\n protected shouldAutoExpandOutput(\n message: ActivityChatMessage,\n active: boolean,\n inheritedAutoExpand: boolean\n ): boolean {\n return active && (message.autoExpandOutputs ?? message.autoExpand ?? inheritedAutoExpand);\n }\n\n protected readonly isSignal = isSignal;\n\n protected onPromptSelected(suggestion: PromptSuggestion): void {\n // Set the input value and emit the send event\n const inputComponent = this.chatInput();\n if (inputComponent) {\n inputComponent.value.set(suggestion.text);\n // Programmatically trigger the send output\n inputComponent.send.emit({\n content: suggestion.text,\n attachments: []\n });\n this.onInputSend();\n inputComponent.value.set('');\n }\n }\n}\n","<si-chat-container [colorVariant]=\"colorVariant()\" [noAutoScroll]=\"noAutoScroll() || isEmpty()\">\n @if (isEmpty()) {\n <si-ai-welcome-screen\n [categories]=\"promptCategories()\"\n [selectedCategory]=\"selectedCategory()\"\n [promptSuggestions]=\"resolvedPromptSuggestions()\"\n (selectedCategoryChange)=\"selectedCategory.set($event)\"\n (promptSelected)=\"onPromptSelected($event)\"\n >\n <p class=\"h1 mb-0 text-white\">\n <strong>{{ greeting() | translate }}</strong>\n </p>\n <p class=\"h1 mb-0 text-white\">{{ welcomeMessage() | translate }}</p>\n <ng-content select=\"[welcomeScreen]\" />\n </si-ai-welcome-screen>\n }\n\n @for (entry of renderedMessages(); track $index) {\n @let message = entry.message;\n @if (isTemplateMessage(message)) {\n <ng-container\n [ngTemplateOutlet]=\"message.template\"\n [ngTemplateOutletContext]=\"message.templateContext ?? message\"\n />\n } @else {\n @if (message.type === 'user') {\n <si-user-message\n [class.last]=\"$last\"\n [attachments]=\"message.attachments || []\"\n [actions]=\"entry.primaryActions\"\n [secondaryActions]=\"entry.secondaryActions\"\n [actionParam]=\"message\"\n [secondaryActionsLabel]=\"secondaryActionsLabel()\"\n >\n <si-markdown\n [markdown]=\"getContentValue(message.content)\"\n [options]=\"markdownOptions()\"\n />\n </si-user-message>\n }\n\n @if (message.type === 'ai') {\n <si-ai-message\n [loading]=\"\n getLoadingState(message.loading, message.content, isLatestMessage(message), false)\n \"\n [actions]=\"entry.primaryActions\"\n [secondaryActions]=\"entry.secondaryActions\"\n [actionParam]=\"message\"\n [secondaryActionsLabel]=\"secondaryActionsLabel()\"\n >\n <si-markdown\n [markdown]=\"getContentValue(message.content)\"\n [options]=\"markdownOptions()\"\n />\n </si-ai-message>\n }\n\n @if (message.type === 'activity') {\n <ng-container\n [ngTemplateOutlet]=\"activityMessageTemplate\"\n [ngTemplateOutletContext]=\"{\n $implicit: message,\n active: isLatestActivityMessage(message),\n inheritedAutoExpand: autoExpand()\n }\"\n />\n }\n\n @if (message.type === 'activity-trace') {\n <si-activity-trace [heading]=\"message.name\" [expanded]=\"shouldAutoExpandTrace(message)\">\n @for (activity of message.messages; track activity; let last = $last) {\n <ng-container\n [ngTemplateOutlet]=\"activityMessageTemplate\"\n [ngTemplateOutletContext]=\"{\n $implicit: activity,\n active: isLatestActivityMessage(message) && last,\n inheritedAutoExpand: message.autoExpand ?? autoExpand()\n }\"\n />\n }\n </si-activity-trace>\n }\n }\n }\n\n <ng-template\n #activityMessageTemplate\n let-message\n let-active=\"active\"\n let-inheritedAutoExpand=\"inheritedAutoExpand\"\n >\n <si-activity-message\n [heading]=\"message.name ?? activityReasoningLabel()\"\n [icon]=\"message.icon === false ? undefined : message.icon\"\n [state]=\"getLoadingValue(message.loading) ? 'running' : undefined\"\n [expanded]=\"shouldAutoExpandActivity(message, active, inheritedAutoExpand)\"\n >\n @if (message.content) {\n <si-markdown\n [markdown]=\"getMarkdownContent(message.content)\"\n [options]=\"markdownOptions()\"\n />\n }\n @if (getDirectActivityDetail(message); as directDetail) {\n <si-markdown [markdown]=\"directDetail\" [options]=\"markdownOptions()\" />\n } @else {\n @if (shouldShowActivityInputs(message)) {\n @for (input of getActivityInputs(message); track input.key ?? $index) {\n <si-activity-message-part\n [heading]=\"input.heading\"\n [collapsible]=\"input.content !== undefined\"\n [expanded]=\"\n shouldAutoExpandInput(\n message,\n input,\n active && !message.messages?.length,\n inheritedAutoExpand\n )\n \"\n >\n @if (input.content !== undefined) {\n <si-markdown [markdown]=\"input.content\" [options]=\"markdownOptions()\" />\n }\n </si-activity-message-part>\n }\n }\n @if (shouldShowActivityOutput(message)) {\n <si-activity-message-part\n [heading]=\"message.outputLabel ?? activityOutputLabel()\"\n [collapsible]=\"true\"\n [expanded]=\"\n shouldAutoExpandOutput(\n message,\n active && !message.messages?.length,\n inheritedAutoExpand\n )\n \"\n >\n <si-markdown [markdown]=\"message.output!\" [options]=\"markdownOptions()\" />\n </si-activity-message-part>\n }\n }\n @for (activity of message.messages ?? []; track activity) {\n <ng-container\n [ngTemplateOutlet]=\"activityMessageTemplate\"\n [ngTemplateOutletContext]=\"{\n $implicit: activity,\n active: active && $last,\n inheritedAutoExpand: message.autoExpand ?? inheritedAutoExpand\n }\"\n />\n }\n </si-activity-message>\n </ng-template>\n\n @if (statusSeverity() && statusMessage()) {\n <si-inline-notification\n class=\"mb-6 w-100 overflow-hidden\"\n [severity]=\"statusSeverity()!\"\n [heading]=\"statusHeading()\"\n [message]=\"statusMessage()!\"\n [action]=\"statusAction()\"\n />\n }\n\n <div siChatContainerInput class=\"w-100\">\n <ng-content select=\"si-chat-input\" />\n </div>\n</si-chat-container>\n","/**\n * Copyright (c) Siemens 2016 - 2026\n * SPDX-License-Identifier: MIT\n */\nexport * from './chat-message.model';\nexport * from './si-ai-message.component';\nexport * from './si-activity-message.component';\nexport * from './si-activity-message-part.component';\nexport * from './si-activity-trace.component';\nexport * from './si-attachment-list.component';\nexport * from './si-chat-container.component';\nexport * from './si-chat-container-input.directive';\nexport * from './si-chat-input.component';\nexport * from './si-chat-input-token';\nexport * from './si-chat-input-disclaimer.directive';\nexport * from './si-chat-message-action.directive';\nexport * from './si-chat-message-actions.component';\nexport * from './si-chat-message.component';\nexport * from './si-user-message.component';\nexport * from './si-ai-welcome-screen.component';\nexport * from './si-ai-chat.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;AAGG;AAGH;;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