@c8y/ngx-components 1023.68.6 → 1023.70.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/ai/agent-chat/index.d.ts +235 -75
  2. package/ai/agent-chat/index.d.ts.map +1 -1
  3. package/ai/ai-chat/index.d.ts +176 -26
  4. package/ai/ai-chat/index.d.ts.map +1 -1
  5. package/ai/index.d.ts +309 -75
  6. package/ai/index.d.ts.map +1 -1
  7. package/asset-properties/index.d.ts.map +1 -1
  8. package/echart/index.d.ts +4 -0
  9. package/echart/index.d.ts.map +1 -1
  10. package/echart/models/index.d.ts +2 -0
  11. package/echart/models/index.d.ts.map +1 -1
  12. package/fesm2022/c8y-ngx-components-ai-agent-chat.mjs +680 -242
  13. package/fesm2022/c8y-ngx-components-ai-agent-chat.mjs.map +1 -1
  14. package/fesm2022/c8y-ngx-components-ai-ai-chat.mjs +343 -44
  15. package/fesm2022/c8y-ngx-components-ai-ai-chat.mjs.map +1 -1
  16. package/fesm2022/c8y-ngx-components-ai.mjs +187 -75
  17. package/fesm2022/c8y-ngx-components-ai.mjs.map +1 -1
  18. package/fesm2022/c8y-ngx-components-asset-properties.mjs +11 -5
  19. package/fesm2022/c8y-ngx-components-asset-properties.mjs.map +1 -1
  20. package/fesm2022/{c8y-ngx-components-computed-asset-properties-alarm-count-config.component-B2cy8gI7.mjs → c8y-ngx-components-computed-asset-properties-alarm-count-config.component-CPLDClTp.mjs} +3 -3
  21. package/fesm2022/{c8y-ngx-components-computed-asset-properties-alarm-count-config.component-B2cy8gI7.mjs.map → c8y-ngx-components-computed-asset-properties-alarm-count-config.component-CPLDClTp.mjs.map} +1 -1
  22. package/fesm2022/{c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-BYHnA-5R.mjs → c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-9be_iMQg.mjs} +30 -13
  23. package/fesm2022/c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-9be_iMQg.mjs.map +1 -0
  24. package/fesm2022/{c8y-ngx-components-computed-asset-properties-configuration-snapshot-config.component-C4oL39m8.mjs → c8y-ngx-components-computed-asset-properties-configuration-snapshot-config.component-B2em01_W.mjs} +3 -3
  25. package/fesm2022/c8y-ngx-components-computed-asset-properties-configuration-snapshot-config.component-B2em01_W.mjs.map +1 -0
  26. package/fesm2022/{c8y-ngx-components-computed-asset-properties-event-count-config.component-DGwm6_C9.mjs → c8y-ngx-components-computed-asset-properties-event-count-config.component-CQuGa1RI.mjs} +3 -3
  27. package/fesm2022/c8y-ngx-components-computed-asset-properties-event-count-config.component-CQuGa1RI.mjs.map +1 -0
  28. package/fesm2022/{c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-BxfCjbYY.mjs → c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-CkmurxJv.mjs} +5 -5
  29. package/fesm2022/{c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-BxfCjbYY.mjs.map → c8y-ngx-components-computed-asset-properties-fieldbus-item-status-config.component-CkmurxJv.mjs.map} +1 -1
  30. package/fesm2022/c8y-ngx-components-computed-asset-properties-last-measurement-config.component-CTK9zNUh.mjs +86 -0
  31. package/fesm2022/c8y-ngx-components-computed-asset-properties-last-measurement-config.component-CTK9zNUh.mjs.map +1 -0
  32. package/fesm2022/c8y-ngx-components-computed-asset-properties.mjs +1 -1
  33. package/fesm2022/c8y-ngx-components-echart-models.mjs.map +1 -1
  34. package/fesm2022/c8y-ngx-components-echart.mjs +39 -18
  35. package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
  36. package/fesm2022/c8y-ngx-components-widgets-definitions-html-widget-ai-config.mjs +106 -4
  37. package/fesm2022/c8y-ngx-components-widgets-definitions-html-widget-ai-config.mjs.map +1 -1
  38. package/fesm2022/c8y-ngx-components-widgets-implementations-html-widget.mjs +14 -122
  39. package/fesm2022/c8y-ngx-components-widgets-implementations-html-widget.mjs.map +1 -1
  40. package/fesm2022/c8y-ngx-components.mjs +15 -13
  41. package/fesm2022/c8y-ngx-components.mjs.map +1 -1
  42. package/index.d.ts.map +1 -1
  43. package/locales/de.po +3 -0
  44. package/locales/es.po +3 -0
  45. package/locales/fr.po +3 -0
  46. package/locales/ja_JP.po +3 -0
  47. package/locales/ko.po +3 -0
  48. package/locales/locales.pot +83 -30
  49. package/locales/nl.po +3 -0
  50. package/locales/pl.po +3 -0
  51. package/locales/pt_BR.po +3 -0
  52. package/locales/zh_CN.po +3 -0
  53. package/locales/zh_TW.po +3 -0
  54. package/package.json +1 -1
  55. package/widgets/implementations/html-widget/index.d.ts +11 -50
  56. package/widgets/implementations/html-widget/index.d.ts.map +1 -1
  57. package/fesm2022/c8y-ngx-components-computed-asset-properties-c8y-ngx-components-computed-asset-properties-BYHnA-5R.mjs.map +0 -1
  58. package/fesm2022/c8y-ngx-components-computed-asset-properties-configuration-snapshot-config.component-C4oL39m8.mjs.map +0 -1
  59. package/fesm2022/c8y-ngx-components-computed-asset-properties-event-count-config.component-DGwm6_C9.mjs.map +0 -1
  60. package/fesm2022/c8y-ngx-components-computed-asset-properties-last-measurement-config.component-C1cuxN3L.mjs +0 -92
  61. package/fesm2022/c8y-ngx-components-computed-asset-properties-last-measurement-config.component-C1cuxN3L.mjs.map +0 -1
@@ -1,13 +1,102 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, QueryList } from '@angular/core';
1
+ import * as _angular_core from '@angular/core';
2
+ import { EventEmitter, Type, TemplateRef } from '@angular/core';
3
+ import { AIMessage, AssistantMessageDisplayConfig, ToolCallPart, AgentStep, AIMessagePart, ChatConfig } from '@c8y/ngx-components/ai';
3
4
  import { SupportedIconsSuggestions } from '@c8y/ngx-components/icon-selector/icons';
4
- import { AIMessage, ChatConfig } from '@c8y/ngx-components/ai';
5
+ import { TranslateService } from '@ngx-translate/core';
6
+
7
+ /**
8
+ * Context object which includes the inputs needed for assistant message rendering.
9
+ * If creating a custom component for assistant message rendering, you will receive this as an input.
10
+ */
11
+ interface AssistantMessageContext {
12
+ message: AIMessage;
13
+ config: AssistantMessageDisplayConfig;
14
+ /** The message response is currently streaming in (not yet complete). */
15
+ isMessageLoading: boolean;
16
+ /** A number identifying this message in the chat history numbered from the latest - 0 is the latest, -1 is the previous, etc. */
17
+ messageDisplayIndex: number;
18
+ }
19
+ /**
20
+ * This is the default component used to render the contents of a message from the AI assistant, including
21
+ * the main answer text, text from earlier steps, reasoning text and tool calls.
22
+ */
23
+ declare class AiChatAssistantMessageComponent {
24
+ /**
25
+ * The context needed to render a message.
26
+ * This is a single input so we can extend in future without breaking people who have a custom rendering implementation.
27
+ */
28
+ readonly assistantMessageContext: _angular_core.InputSignal<AssistantMessageContext>;
29
+ /**
30
+ * By default this component will render a "Working..." indicator while streaming results. This input can turn that off if required.
31
+ */
32
+ readonly showWorkingIndicator: _angular_core.InputSignal<boolean>;
33
+ /**
34
+ * Whether the thinking section is expanded. Initialized to false unless the message is still loading.
35
+ * Call setThinkingExpanded() via viewChild to control this programmatically. Does nothing if appearance does not distinguish thinking steps.
36
+ */
37
+ protected readonly thinkingExpanded: _angular_core.WritableSignal<boolean>;
38
+ /**
39
+ * Tracks which reasoning sections are expanded, keyed by step index.
40
+ */
41
+ protected readonly expandedReasoningStepIndices: _angular_core.WritableSignal<Set<number>>;
42
+ private readonly translateService;
43
+ /**
44
+ * For now be conservative with the old behaviour, but hope to change this once we've got working really smoothly.
45
+ */
46
+ protected readonly defaultNonFinalStepTextDisplay: AssistantMessageDisplayConfig['experimental_nonFinalStepTextDisplay'];
47
+ constructor();
48
+ /**
49
+ * This is public and exists for agent-chat to collapse older messages.
50
+ * @param expanded Whether the thinking section should be expanded or not.
51
+ */
52
+ setThinkingExpanded(expanded: boolean): void;
53
+ /**
54
+ * Get a translated/translateable label for the specified tool.
55
+ * @param tool The tool call part to get the label for.
56
+ * @return The label to show for this tool call.
57
+ */
58
+ getToolLabel(tool: ToolCallPart): string;
59
+ protected getToolParts(step: AgentStep): ToolCallPart[];
60
+ protected toggleReasoningExpanded(stepIndex: number): void;
61
+ /**
62
+ * Note: ctx is passed as a parameter rather than reading the signal in the template to ensure
63
+ * it's totally aligned with what the template is rendering.
64
+ * @param ctx The context for the assistant message.
65
+ * @return The label to display for the thinking section.
66
+ */
67
+ protected getThinkingLabel(ctx: AssistantMessageContext): string;
68
+ protected getMainAnswerText(ctx: AssistantMessageContext): string;
69
+ protected hasThinkingContent(ctx: AssistantMessageContext, mainAnswer: string): boolean;
70
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AiChatAssistantMessageComponent, never>;
71
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AiChatAssistantMessageComponent, "c8y-ai-chat-assistant-message", never, { "assistantMessageContext": { "alias": "assistantMessageContext"; "required": true; "isSignal": true; }; "showWorkingIndicator": { "alias": "showWorkingIndicator"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
72
+ }
73
+
74
+ /** This renders a part of an assistant message. Currently only ToolCallPart is supported, but later we can expand this to deal with all part types. */
75
+ declare class AiChatAssistantPartComponent {
76
+ readonly part: _angular_core.InputSignal<AIMessagePart>;
77
+ /** Whether this part is rendered as part of the main answer, or is an intermediate step with more muted rendering. */
78
+ readonly displayAsPartOfMainAnswer: _angular_core.InputSignal<boolean>;
79
+ /**
80
+ * The context needed to render a message.
81
+ * This is a single input so we can extend in future without breaking people who have a custom rendering implementation.
82
+ */
83
+ readonly assistantMessageContext: _angular_core.InputSignal<AssistantMessageContext>;
84
+ /** Tracks whether this is currently expanded (used for reasoning section). */
85
+ protected readonly expanded: _angular_core.WritableSignal<boolean>;
86
+ protected toggleExpanded(): void;
87
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AiChatAssistantPartComponent, never>;
88
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AiChatAssistantPartComponent, "c8y-ai-chat-assistant-part", never, { "part": { "alias": "part"; "required": true; "isSignal": true; }; "displayAsPartOfMainAnswer": { "alias": "displayAsPartOfMainAnswer"; "required": false; "isSignal": true; }; "assistantMessageContext": { "alias": "assistantMessageContext"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
89
+ }
5
90
 
6
91
  /**
7
92
  * An action button that can be added to chat messages.
8
93
  * Typically used for actions like copying, regenerating, or providing feedback on messages.
9
94
  */
10
95
  declare class AiChatMessageActionComponent {
96
+ /**
97
+ * Set to true to use content projection for custom action button content.
98
+ */
99
+ custom: boolean;
11
100
  /**
12
101
  * Disables the action button when true.
13
102
  */
@@ -23,14 +112,20 @@ declare class AiChatMessageActionComponent {
23
112
  /**
24
113
  * Emitted when the action button is clicked.
25
114
  */
26
- click: EventEmitter<void>;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<AiChatMessageActionComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<AiChatMessageActionComponent, "c8y-ai-chat-message-action", never, { "disabled": { "alias": "disabled"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, { "click": "click"; }, never, never, true, never>;
115
+ actionClicked: EventEmitter<void>;
116
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AiChatMessageActionComponent, never>;
117
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AiChatMessageActionComponent, "c8y-ai-chat-message-action", never, { "custom": { "alias": "custom"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, { "actionClicked": "actionClicked"; }, never, ["*"], true, never>;
29
118
  }
30
119
 
120
+ /**
121
+ * A container for content and actions that should be rendered for each chat message.
122
+ *
123
+ * Project content into this component to display the message, for example add an `<ai-chat-assistant-message>`
124
+ * for assistant messages, and a simple `markdownToHtml | async` rendering of the content for user messages.
125
+ */
31
126
  declare class AiChatMessageComponent {
32
- readonly role: i0.InputSignal<"user" | "assistant">;
33
- readonly message: i0.InputSignal<AIMessage>;
127
+ readonly role: _angular_core.InputSignal<"user" | "assistant" | "system">;
128
+ readonly message: _angular_core.InputSignal<AIMessage>;
34
129
  private readonly translateService;
35
130
  private readonly roleResolved;
36
131
  /**
@@ -38,15 +133,15 @@ declare class AiChatMessageComponent {
38
133
  * Includes the role (user or assistant) and timestamp if available.
39
134
  * @returns The aria-label string for screen readers
40
135
  */
41
- readonly ariaLabel: i0.Signal<any>;
136
+ readonly ariaLabel: _angular_core.Signal<any>;
42
137
  /**
43
138
  * Generates an accessible label for the message content.
44
139
  * Prefixes the content with contextual information about who sent it.
45
140
  * @returns The aria-label string with prefixed role information
46
141
  */
47
- readonly messageContentAriaLabel: i0.Signal<any>;
48
- static ɵfac: i0.ɵɵFactoryDeclaration<AiChatMessageComponent, never>;
49
- static ɵcmp: i0.ɵɵComponentDeclaration<AiChatMessageComponent, "c8y-ai-chat-message", never, { "role": { "alias": "role"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; }, {}, never, [":not(c8y-ai-chat-message-action)", "c8y-ai-chat-message-action"], true, never>;
142
+ readonly messageContentAriaLabel: _angular_core.Signal<any>;
143
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AiChatMessageComponent, never>;
144
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AiChatMessageComponent, "c8y-ai-chat-message", never, { "role": { "alias": "role"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; }, {}, never, [":not(c8y-ai-chat-message-action)", "c8y-ai-chat-message-action"], true, never>;
50
145
  }
51
146
 
52
147
  /**
@@ -57,33 +152,72 @@ declare class AiChatSuggestionComponent {
57
152
  /**
58
153
  * The visible label text displayed on the suggestion chip.
59
154
  */
60
- label: string;
155
+ readonly label: _angular_core.InputSignal<string>;
61
156
  /**
62
157
  * The prompt text that will be sent when the suggestion is clicked.
63
158
  */
64
- prompt: string;
159
+ readonly prompt: _angular_core.InputSignal<string>;
65
160
  /**
66
161
  * Icon to display alongside the suggestion label.
67
162
  */
68
- icon: SupportedIconsSuggestions;
163
+ readonly icon: _angular_core.InputSignal<SupportedIconsSuggestions>;
69
164
  /**
70
165
  * When true, uses AI-styled buttons instead of default styling.
71
166
  */
72
- useAiButtons: boolean;
167
+ readonly useAiButtons: _angular_core.InputSignal<boolean>;
73
168
  /**
74
169
  * Disables the suggestion chip when true.
75
170
  */
76
- disabled: boolean;
171
+ readonly disabled: _angular_core.InputSignal<boolean>;
77
172
  /**
78
173
  * Emitted when the suggestion is clicked, providing the prompt as an AIMessage.
79
174
  */
80
- suggestionClicked: EventEmitter<AIMessage>;
175
+ readonly suggestionClicked: _angular_core.OutputEmitterRef<AIMessage>;
81
176
  /**
82
177
  * Handles suggestion click and emits the prompt as a user message.
83
178
  */
84
179
  suggest(): void;
85
- static ɵfac: i0.ɵɵFactoryDeclaration<AiChatSuggestionComponent, never>;
86
- static ɵcmp: i0.ɵɵComponentDeclaration<AiChatSuggestionComponent, "c8y-ai-chat-suggestion", never, { "label": { "alias": "label"; "required": false; }; "prompt": { "alias": "prompt"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "useAiButtons": { "alias": "useAiButtons"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "suggestionClicked": "suggestionClicked"; }, never, never, true, never>;
180
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AiChatSuggestionComponent, never>;
181
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AiChatSuggestionComponent, "c8y-ai-chat-suggestion", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "prompt": { "alias": "prompt"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "useAiButtons": { "alias": "useAiButtons"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "suggestionClicked": "suggestionClicked"; }, never, never, true, never>;
182
+ }
183
+
184
+ declare class AiChatToolCallComponent {
185
+ /**
186
+ * The tool call part to render. This includes all information about the tool call, including the name of the tool,
187
+ * the input provided and (once available) the output from the tool.
188
+ */
189
+ readonly tool: _angular_core.InputSignal<ToolCallPart<Record<string, unknown>, unknown>>;
190
+ /**
191
+ * Whether the tool call is still in progress.
192
+ */
193
+ readonly isExecuting: _angular_core.InputSignal<boolean>;
194
+ /**
195
+ * A custom component to render the details of the tool call. If not provided, the default details section will be shown.
196
+ */
197
+ readonly toolDetailsComponent: _angular_core.InputSignal<Type<unknown>>;
198
+ /**
199
+ * Shows the default details section for a tool call.
200
+ */
201
+ readonly showDefaultToolDetails: _angular_core.InputSignal<boolean>;
202
+ /**
203
+ * The label to show while the tool is executing. If not provided, a default label will be generated based on the tool name.
204
+ */
205
+ readonly executingLabel: _angular_core.InputSignal<string>;
206
+ /**
207
+ * The label to show once the tool has completed. If not provided, a default label will be generated based on the tool name and whether the tool call was successful or resulted in an error.
208
+ */
209
+ readonly completedLabel: _angular_core.InputSignal<string>;
210
+ /**
211
+ * A function that can generate a label for this tool call based on the tool call data.
212
+ */
213
+ readonly labelProvider: _angular_core.InputSignal<(toolCallPart: ToolCallPart, translateService: TranslateService) => string | undefined>;
214
+ protected readonly expanded: _angular_core.WritableSignal<boolean>;
215
+ protected readonly everExpanded: _angular_core.WritableSignal<boolean>;
216
+ private readonly translateService;
217
+ getToolLabel(tool: ToolCallPart): string;
218
+ protected toggleExpanded(): void;
219
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AiChatToolCallComponent, never>;
220
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AiChatToolCallComponent, "c8y-ai-chat-tool-call", never, { "tool": { "alias": "tool"; "required": true; "isSignal": true; }; "isExecuting": { "alias": "isExecuting"; "required": true; "isSignal": true; }; "toolDetailsComponent": { "alias": "toolDetailsComponent"; "required": false; "isSignal": true; }; "showDefaultToolDetails": { "alias": "showDefaultToolDetails"; "required": false; "isSignal": true; }; "executingLabel": { "alias": "executingLabel"; "required": false; "isSignal": true; }; "completedLabel": { "alias": "completedLabel"; "required": false; "isSignal": true; }; "labelProvider": { "alias": "labelProvider"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
87
221
  }
88
222
 
89
223
  /**
@@ -105,6 +239,14 @@ declare class AiChatComponent {
105
239
  * The current text in the chat input field. Supports two-way binding.
106
240
  */
107
241
  prompt: string;
242
+ /**
243
+ * Template for rendering custom suggestions below the input field. Can be used to provide predefined prompts or actions
244
+ * from a dynamic source such as the AI. To use this, wrap your suggestion components in an `<ng-template #suggestionsRef>`
245
+ * (where `suggestionsRef` matches the suggestionsTemplate reference);
246
+ */
247
+ suggestionsTemplate?: TemplateRef<any>;
248
+ /** Template for customizing the welcome view using `<ng-template>`. */
249
+ welcomeTemplate?: TemplateRef<any>;
108
250
  /**
109
251
  * Emitted when the user sends a message.
110
252
  * Provides an AIMessage object with role, content, and timestamp.
@@ -117,19 +259,26 @@ declare class AiChatComponent {
117
259
  /**
118
260
  * Child message components displayed in the chat.
119
261
  */
120
- messages: QueryList<AiChatMessageComponent>;
262
+ readonly messages: _angular_core.Signal<readonly AiChatMessageComponent[]>;
263
+ /**
264
+ * Reference to the scroll container for the chat messages.
265
+ */
266
+ private readonly scrollContainer;
121
267
  readonly componentId: string;
122
268
  private _config;
269
+ constructor();
123
270
  /**
124
271
  * Configuration object for customizing labels, placeholders, and icons.
125
272
  * Accepts partial configuration to override defaults.
273
+ * @param value Partial configuration to merge with defaults.
274
+ * @returns The complete configuration object.
126
275
  */
127
276
  set config(value: Partial<ChatConfig>);
128
- get config(): Partial<ChatConfig>;
277
+ get config(): ChatConfig;
129
278
  /**
130
279
  * Handles message submission when the user sends a message.
131
280
  * Emits the onMessage event and clears the input.
132
- * @param $event - The event object from the form submission
281
+ * @param $event The event object from the form submission
133
282
  */
134
283
  sendMessage($event: Event): void;
135
284
  /**
@@ -137,9 +286,10 @@ declare class AiChatComponent {
137
286
  * Emits the onCancel event.
138
287
  */
139
288
  cancel(): void;
140
- static ɵfac: i0.ɵɵFactoryDeclaration<AiChatComponent, never>;
141
- static ɵcmp: i0.ɵɵComponentDeclaration<AiChatComponent, "c8y-ai-chat", never, { "isLoading": { "alias": "isLoading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "prompt": { "alias": "prompt"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "onMessage": "onMessage"; "onCancel": "onCancel"; }, ["messages"], ["c8y-ai-chat-message", "*", "c8y-ai-chat-suggestion"], true, never>;
289
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AiChatComponent, never>;
290
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<AiChatComponent, "c8y-ai-chat", never, { "isLoading": { "alias": "isLoading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "prompt": { "alias": "prompt"; "required": false; }; "suggestionsTemplate": { "alias": "suggestionsTemplate"; "required": false; }; "welcomeTemplate": { "alias": "welcomeTemplate"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, { "onMessage": "onMessage"; "onCancel": "onCancel"; }, ["messages"], ["[slot='before-messages']", "c8y-ai-chat-message", "[slot='after-messages']", "c8y-ai-chat-suggestion"], true, never>;
142
291
  }
143
292
 
144
- export { AiChatComponent, AiChatMessageActionComponent, AiChatMessageComponent, AiChatSuggestionComponent };
293
+ export { AiChatAssistantMessageComponent, AiChatAssistantPartComponent, AiChatComponent, AiChatMessageActionComponent, AiChatMessageComponent, AiChatSuggestionComponent, AiChatToolCallComponent };
294
+ export type { AssistantMessageContext };
145
295
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../../ai/ai-chat/ai-chat-message-action.component.ts","../../../ai/ai-chat/ai-chat-message.component.ts","../../../ai/ai-chat/ai-chat-suggestion.component.ts","../../../ai/ai-chat/ai-chat.component.ts"],"sourcesContent":[null,null,null,null],"names":["_angular_core"],"mappings":";;;;;AAKA;;;AAGG;AACH,cAAA,4BAAA;AAOE;;AAEG;AAEH;AAEA;;AAEG;AAEH;AAEA;;AAEG;;AAIH;;AAEG;AAEH,WAAA,YAAA;;;AACD;;AC/BD,cAAA,sBAAA;mBAOeA,EAAA,CAAA,WAAA;sBACGA,EAAA,CAAA,WAAA,CAAA,SAAA;AAChB;AAEA;AAIA;;;;AAIG;wBACeA,EAAA,CAAA,MAAA;AASlB;;;;AAIG;sCAC6BA,EAAA,CAAA,MAAA;;;AAcjC;;ACnDD;;;AAGG;AACH,cAAA,yBAAA;AAOE;;AAEG;;AAIH;;AAEG;;AAIH;;AAEG;;AAIH;;AAEG;AAEH;AAEA;;AAEG;AAEH;AAEA;;AAEG;AAEH,uBAAA,YAAA,CAAA,SAAA;AAEA;;AAEG;;;;AAQJ;;ACtDD;;;;AAIG;AACH,cAAA,eAAA;AAQE;;;AAGG;AAEH;AAEA;;AAEG;AAEH;AAEA;;AAEG;AAEH;AAEA;;;AAGG;AAEH,eAAA,YAAA,CAAA,SAAA;AAEA;;AAEG;AAEH,cAAA,YAAA;AAEA;;AAEG;AACsC,cAAA,SAAA,CAAA,sBAAA;;;AAqBzC;;;AAGG;;AAKH,kBAAA,OAAA,CAAA,UAAA;AAIA;;;;AAIG;AACH,wBAAA,KAAA;AAWA;;;AAGG;AACH;;;AAGD;;;;"}
1
+ {"version":3,"file":"index.d.ts","sources":["../../../ai/ai-chat/ai-chat-assistant-message.component.ts","../../../ai/ai-chat/ai-chat-assistant-part.component.ts","../../../ai/ai-chat/ai-chat-message-action.component.ts","../../../ai/ai-chat/ai-chat-message.component.ts","../../../ai/ai-chat/ai-chat-suggestion.component.ts","../../../ai/ai-chat/ai-chat-tool-call.component.ts","../../../ai/ai-chat/ai-chat.component.ts"],"sourcesContent":[null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;AAaA;;;AAGG;;;;;;;;AAUF;AAED;;;AAGG;AACH;AAaE;;;AAGG;;AAGH;;AAEG;;AAGH;;;AAGG;AACH;AAEA;;AAEG;AACH;AAEA;AAEA;;AAEG;;;AAcH;;;AAGG;AACH;AAIA;;;;AAIG;AACH;;AAmCA;AAQA;;;;;AAKG;AACH;AAQA;;;;AAyCD;;AC5LD;AACA;;;;AAqBE;;;AAGG;;;AAIH;;;;AAKD;;ACrCD;;;AAGG;AACH;AAOE;;AAEG;AAEH;AAEA;;AAEG;AAEH;AAEA;;AAEG;AAEH;AAEA;;AAEG;;AAIH;;AAEG;AAEH;;;AACD;;ACpCD;;;;;AAKG;AACH;;;AAWE;AAEA;AAIA;;;;AAIG;;AAUH;;;;AAIG;;;;AAeJ;;AC5DD;;;AAGG;AACH;AAQE;;AAEG;;AAGH;;AAEG;;AAGH;;AAEG;;AAGH;;AAEG;;AAGH;;AAEG;;AAGH;;AAEG;;AAGH;;AAEG;;;;AAQJ;;ACjDD;AAcE;;;AAGG;;AAGH;;AAEG;;AAGH;;AAEG;;AAGH;;AAEG;;AAGH;;AAEG;;AAEH;;AAEG;;AAGH;;AAEG;;AAGH;AACA;AAEA;AAEA;;;;AAgCD;;ACvED;;;;AAIG;AACH;AAiBE;;;AAGG;AAEH;AAEA;;AAEG;AAEH;AAEA;;AAEG;AAEH;AAEA;;;;AAIG;AAEH;;AAGS;AAET;;;AAGG;AAEH;AAEA;;AAEG;AAEH;AAEA;;AAEG;;AAGH;;AAEG;AACH;;;;AAoCA;;;;;AAKG;;;AASH;;;;AAIG;AACH;AAWA;;;AAGG;AACH;;;AAGD;;;"}