@progress/kendo-angular-conversational-ui 21.4.1-develop.1 → 22.0.0-develop.1

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 (116) hide show
  1. package/ai-prompt/localization/messages.d.ts +1 -1
  2. package/ai-prompt/views/base-view.d.ts +1 -1
  3. package/chat/l10n/messages.d.ts +1 -1
  4. package/fesm2022/progress-kendo-angular-conversational-ui.mjs +182 -182
  5. package/inline-ai-prompt/localization/messages.d.ts +1 -1
  6. package/package.json +17 -25
  7. package/esm2022/ai-prompt/aiprompt.component.mjs +0 -556
  8. package/esm2022/ai-prompt/aiprompt.module.mjs +0 -53
  9. package/esm2022/ai-prompt/common/aiprompt.service.mjs +0 -75
  10. package/esm2022/ai-prompt/common/output-card.component.mjs +0 -230
  11. package/esm2022/ai-prompt/common/toolbar-focusable.directive.mjs +0 -72
  12. package/esm2022/ai-prompt/common/toolbar-navigation.service.mjs +0 -56
  13. package/esm2022/ai-prompt/localization/custom-messages.component.mjs +0 -54
  14. package/esm2022/ai-prompt/localization/localized-messages.directive.mjs +0 -39
  15. package/esm2022/ai-prompt/localization/messages.mjs +0 -77
  16. package/esm2022/ai-prompt/models/ai-prompt-settings.mjs +0 -5
  17. package/esm2022/ai-prompt/models/command-execute-event.mjs +0 -5
  18. package/esm2022/ai-prompt/models/command.interface.mjs +0 -5
  19. package/esm2022/ai-prompt/models/index.mjs +0 -5
  20. package/esm2022/ai-prompt/models/output-rating-change-event.mjs +0 -5
  21. package/esm2022/ai-prompt/models/prompt-output.interface.mjs +0 -5
  22. package/esm2022/ai-prompt/models/prompt-request-event.mjs +0 -5
  23. package/esm2022/ai-prompt/models/view-type.mjs +0 -5
  24. package/esm2022/ai-prompt/templates/aiprompt-output-body-template.directive.mjs +0 -33
  25. package/esm2022/ai-prompt/templates/aiprompt-output-template.directive.mjs +0 -33
  26. package/esm2022/ai-prompt/templates/toolbar-actions.template.mjs +0 -39
  27. package/esm2022/ai-prompt/utils.mjs +0 -26
  28. package/esm2022/ai-prompt/views/base-view.mjs +0 -98
  29. package/esm2022/ai-prompt/views/command-view.component.mjs +0 -100
  30. package/esm2022/ai-prompt/views/custom-view.component.mjs +0 -50
  31. package/esm2022/ai-prompt/views/index.mjs +0 -8
  32. package/esm2022/ai-prompt/views/output-view.component.mjs +0 -90
  33. package/esm2022/ai-prompt/views/prompt-view.component.mjs +0 -288
  34. package/esm2022/chat/api/action.interface.mjs +0 -5
  35. package/esm2022/chat/api/attachment.interface.mjs +0 -5
  36. package/esm2022/chat/api/chat-file-interface.mjs +0 -5
  37. package/esm2022/chat/api/chat-suggestion.interface.mjs +0 -5
  38. package/esm2022/chat/api/execute-action-event.mjs +0 -29
  39. package/esm2022/chat/api/file-action.mjs +0 -5
  40. package/esm2022/chat/api/file-download-event.interface.mjs +0 -5
  41. package/esm2022/chat/api/files-layout.mjs +0 -5
  42. package/esm2022/chat/api/index.mjs +0 -21
  43. package/esm2022/chat/api/message-action.mjs +0 -5
  44. package/esm2022/chat/api/message-settings.interface.mjs +0 -5
  45. package/esm2022/chat/api/message-width-mode.mjs +0 -5
  46. package/esm2022/chat/api/message.interface.mjs +0 -5
  47. package/esm2022/chat/api/post-message-event.mjs +0 -21
  48. package/esm2022/chat/api/preventable-event.mjs +0 -28
  49. package/esm2022/chat/api/send-button-settings.mjs +0 -5
  50. package/esm2022/chat/api/suggestions-layout.mjs +0 -5
  51. package/esm2022/chat/api/timestamp-visibility.mjs +0 -5
  52. package/esm2022/chat/api/user.interface.mjs +0 -5
  53. package/esm2022/chat/attachment.component.mjs +0 -105
  54. package/esm2022/chat/builtin-actions.mjs +0 -27
  55. package/esm2022/chat/cards/hero-card.component.mjs +0 -131
  56. package/esm2022/chat/chat-file.component.mjs +0 -144
  57. package/esm2022/chat/chat-item.mjs +0 -10
  58. package/esm2022/chat/chat-view.mjs +0 -80
  59. package/esm2022/chat/chat.component.mjs +0 -1015
  60. package/esm2022/chat/chat.directives.mjs +0 -18
  61. package/esm2022/chat/chat.module.mjs +0 -61
  62. package/esm2022/chat/common/chat.service.mjs +0 -179
  63. package/esm2022/chat/common/models/default-model-fields.mjs +0 -25
  64. package/esm2022/chat/common/models/formatted-text-parts.mjs +0 -5
  65. package/esm2022/chat/common/models/message-box-options.mjs +0 -5
  66. package/esm2022/chat/common/models/model-fields.mjs +0 -5
  67. package/esm2022/chat/common/scroll-anchor.directive.mjs +0 -80
  68. package/esm2022/chat/common/scroll-button.component.mjs +0 -81
  69. package/esm2022/chat/common/scroll.service.mjs +0 -110
  70. package/esm2022/chat/common/utils.mjs +0 -159
  71. package/esm2022/chat/l10n/custom-messages.component.mjs +0 -55
  72. package/esm2022/chat/l10n/localized-messages.directive.mjs +0 -40
  73. package/esm2022/chat/l10n/messages.mjs +0 -130
  74. package/esm2022/chat/message-attachments.component.mjs +0 -258
  75. package/esm2022/chat/message-box.component.mjs +0 -501
  76. package/esm2022/chat/message-list.component.mjs +0 -617
  77. package/esm2022/chat/message-reference-content.component.mjs +0 -86
  78. package/esm2022/chat/message.component.mjs +0 -740
  79. package/esm2022/chat/suggested-actions.component.mjs +0 -443
  80. package/esm2022/chat/templates/attachment-template.directive.mjs +0 -43
  81. package/esm2022/chat/templates/author-message-content-template.directive.mjs +0 -39
  82. package/esm2022/chat/templates/author-message-template.directive.mjs +0 -39
  83. package/esm2022/chat/templates/header-template.directive.mjs +0 -33
  84. package/esm2022/chat/templates/message-box.directive.mjs +0 -36
  85. package/esm2022/chat/templates/message-content-template.directive.mjs +0 -39
  86. package/esm2022/chat/templates/message-template.directive.mjs +0 -39
  87. package/esm2022/chat/templates/no-data-template.directive.mjs +0 -38
  88. package/esm2022/chat/templates/receiver-message-content-template.directive.mjs +0 -39
  89. package/esm2022/chat/templates/receiver-message-template.directive.mjs +0 -39
  90. package/esm2022/chat/templates/status-template.directive.mjs +0 -33
  91. package/esm2022/chat/templates/suggestion-template.directive.mjs +0 -36
  92. package/esm2022/chat/templates/timestamp-template.directive.mjs +0 -42
  93. package/esm2022/chat/templates/user-status-template.directive.mjs +0 -38
  94. package/esm2022/conversational-ui.module.mjs +0 -73
  95. package/esm2022/directives.mjs +0 -145
  96. package/esm2022/index.mjs +0 -40
  97. package/esm2022/inline-ai-prompt/inlineaiprompt-content.component.mjs +0 -548
  98. package/esm2022/inline-ai-prompt/inlineaiprompt.component.mjs +0 -351
  99. package/esm2022/inline-ai-prompt/inlineaiprompt.module.mjs +0 -46
  100. package/esm2022/inline-ai-prompt/inlineaiprompt.service.mjs +0 -92
  101. package/esm2022/inline-ai-prompt/localization/custom-messages.component.mjs +0 -51
  102. package/esm2022/inline-ai-prompt/localization/localized-messages.directive.mjs +0 -39
  103. package/esm2022/inline-ai-prompt/localization/messages.mjs +0 -35
  104. package/esm2022/inline-ai-prompt/models/command.interface.mjs +0 -5
  105. package/esm2022/inline-ai-prompt/models/index.mjs +0 -5
  106. package/esm2022/inline-ai-prompt/models/inlineaiprompt-popupsettings.mjs +0 -5
  107. package/esm2022/inline-ai-prompt/models/inlineaiprompt-settings.mjs +0 -59
  108. package/esm2022/inline-ai-prompt/models/messages.mjs +0 -8
  109. package/esm2022/inline-ai-prompt/models/output-action-click-event.mjs +0 -5
  110. package/esm2022/inline-ai-prompt/models/output-action.interface.mjs +0 -5
  111. package/esm2022/inline-ai-prompt/models/prompt-output.interface.mjs +0 -5
  112. package/esm2022/inline-ai-prompt/models/prompt-request-event.mjs +0 -5
  113. package/esm2022/inline-ai-prompt/output-template.directive.mjs +0 -38
  114. package/esm2022/inline-ai-prompt/utils.mjs +0 -57
  115. package/esm2022/package-metadata.mjs +0 -16
  116. package/esm2022/progress-kendo-angular-conversational-ui.mjs +0 -8
@@ -1,351 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Component, ContentChild, ElementRef, EventEmitter, Input, NgZone, Output, ViewChild, ViewContainerRef, } from '@angular/core';
6
- import { Subscription } from 'rxjs';
7
- import { validatePackage } from '@progress/kendo-licensing';
8
- import { packageMetadata } from '../package-metadata';
9
- import { InlineAIPromptContentComponent } from './inlineaiprompt-content.component';
10
- import { KENDO_POPUP, PopupComponent } from '@progress/kendo-angular-popup';
11
- import { take } from 'rxjs/operators';
12
- import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
13
- import { defaultPopupSettings, calculateMeasurement, defaultOutputActions } from './utils';
14
- import { LocalizedMessagesDirective } from './localization/localized-messages.directive';
15
- import { InlineAIPromptOutputTemplateDirective } from './output-template.directive';
16
- import * as i0 from "@angular/core";
17
- import * as i1 from "@progress/kendo-angular-popup";
18
- /**
19
- * Represents the Kendo UI InlineAIPrompt component for Angular.
20
- *
21
- * @remarks
22
- * Supported children components are: {@link InlineAIPromptCustomMessagesComponent}
23
- *
24
- * @example
25
- * ```html
26
- * <kendo-inlineaiprompt
27
- * placeholder="Enter your prompt..."
28
- * [promptOutput]="promptOutput"
29
- * (promptRequest)="onPromptRequest($event)">
30
- * </kendo-inlineaiprompt>
31
- * ```
32
- */
33
- export class InlineAIPromptComponent {
34
- ngZone;
35
- element;
36
- /**
37
- * Sets the TextArea value.
38
- *
39
- * @default ""
40
- */
41
- promptValue = "";
42
- /**
43
- * Sets the placeholder text that appears in the text area when it is empty.
44
- */
45
- placeholder;
46
- /**
47
- * Sets the output data for the prompt.
48
- * The output displays as a card above the text area.
49
- */
50
- promptOutput;
51
- /**
52
- * Controls the visibility and settings of the Speech to Text button.
53
- *
54
- * @default true
55
- */
56
- enableSpeechToText = true;
57
- /**
58
- * When set to `true`, the **Send** button displays a generating state and the component emits a `promptRequestCancel` event when you click it.
59
- *
60
- * @default false
61
- */
62
- streaming = false;
63
- /**
64
- * Sets the width of the component.
65
- * Accepts a number for pixels or a string for other units.
66
- *
67
- * @default 550
68
- */
69
- width = 550;
70
- /**
71
- * Sets the maximum height of the component.
72
- * Accepts a number for pixels or a string for other units.
73
- */
74
- maxHeight;
75
- /**
76
- * Represents the configuration of the default output actions.
77
- * The default actions are `copy`, `retry`, and `discard`.
78
- */
79
- defaultOutputActions = defaultOutputActions;
80
- /**
81
- * Sets the output actions that display in the output card.
82
- * The default actions are `copy`, `retry`, and `discard`.
83
- * To customize the appearance and order of the default actions, define them with the same `name`.
84
- *
85
- * @default [{ name: 'copy', type: 'button', icon: 'copy', svgIcon: copyIcon, text: 'Copy', fillMode: 'flat', themeColor: 'primary', rounded: 'medium'}, { name: 'retry', type: 'button', icon: 'arrow-rotate-cw', svgIcon: arrowRotateCwIcon, text: 'Retry', fillMode: 'flat', themeColor: 'primary', rounded: 'medium'}, { name: 'discard', type: 'button', icon: 'cancel-outline', svgIcon: cancelOutlineIcon, text: 'Discard', fillMode: 'flat', themeColor: 'base', rounded: 'medium'}]
86
- */
87
- outputActions = defaultOutputActions;
88
- /**
89
- * Sets the available prompt commands.
90
- */
91
- promptCommands;
92
- /**
93
- * Sets the Popup settings.
94
- *
95
- */
96
- set popupSettings(settings) {
97
- this._popupSettings = { ...defaultPopupSettings, ...settings };
98
- }
99
- get popupSettings() {
100
- return this._popupSettings;
101
- }
102
- /**
103
- * Fires when the send button is clicked.
104
- */
105
- promptRequest = new EventEmitter();
106
- /**
107
- * Fires when a command is executed.
108
- */
109
- commandExecute = new EventEmitter();
110
- /**
111
- * Fires when an output action button is clicked.
112
- */
113
- outputActionClick = new EventEmitter();
114
- /**
115
- * Fires when the stop button is clicked during streaming.
116
- */
117
- promptRequestCancel = new EventEmitter();
118
- /**
119
- * Fires when the component closes (Escape key, Discard action or outside click).
120
- */
121
- close = new EventEmitter();
122
- /**
123
- * Fires when the TextArea value changes.
124
- */
125
- promptValueChange = new EventEmitter();
126
- popupElement;
127
- popupViewContainer;
128
- contentComponent;
129
- outputTemplate;
130
- /**
131
- * @hidden
132
- */
133
- calculateMeasurement = calculateMeasurement;
134
- _popupSettings = defaultPopupSettings;
135
- subs = new Subscription();
136
- constructor(ngZone, element) {
137
- this.ngZone = ngZone;
138
- this.element = element;
139
- validatePackage(packageMetadata);
140
- }
141
- ngAfterViewInit() {
142
- if (this.contentComponent && this.popupElement) {
143
- this.contentComponent.popupElement = this.popupElement;
144
- }
145
- this.ngZone.onStable.pipe(take(1)).subscribe(() => {
146
- if (this.contentComponent && this.popupViewContainer) {
147
- this.contentComponent.appendTo = this.popupViewContainer;
148
- }
149
- });
150
- }
151
- ngOnDestroy() {
152
- this.subs.unsubscribe();
153
- }
154
- /**
155
- * Focus the TextArea.
156
- */
157
- focus() {
158
- if (this.contentComponent?.textArea) {
159
- this.contentComponent.textArea.focus();
160
- }
161
- }
162
- /**
163
- * @hidden
164
- */
165
- onPromptRequest(event) {
166
- this.promptRequest.emit(event);
167
- }
168
- /**
169
- * @hidden
170
- */
171
- onCommandExecute(event) {
172
- this.commandExecute.emit(event);
173
- }
174
- /**
175
- * @hidden
176
- */
177
- onOutputActionClick(event) {
178
- this.outputActionClick.emit(event);
179
- }
180
- /**
181
- * @hidden
182
- */
183
- onPromptRequestCancel() {
184
- this.promptRequestCancel.emit();
185
- }
186
- /**
187
- * @hidden
188
- */
189
- onClose() {
190
- this.close.emit();
191
- }
192
- /**
193
- * @hidden
194
- */
195
- onPromptValueChange(value) {
196
- this.promptValueChange.emit(value);
197
- }
198
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
199
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: InlineAIPromptComponent, isStandalone: true, selector: "kendo-inlineaiprompt", inputs: { promptValue: "promptValue", placeholder: "placeholder", promptOutput: "promptOutput", enableSpeechToText: "enableSpeechToText", streaming: "streaming", width: "width", maxHeight: "maxHeight", outputActions: "outputActions", promptCommands: "promptCommands", popupSettings: "popupSettings" }, outputs: { promptRequest: "promptRequest", commandExecute: "commandExecute", outputActionClick: "outputActionClick", promptRequestCancel: "promptRequestCancel", close: "close", promptValueChange: "promptValueChange" }, providers: [
200
- LocalizationService,
201
- {
202
- provide: L10N_PREFIX,
203
- useValue: 'kendo.inlineaiprompt',
204
- },
205
- ], queries: [{ propertyName: "outputTemplate", first: true, predicate: InlineAIPromptOutputTemplateDirective, descendants: true }], viewQueries: [{ propertyName: "popupElement", first: true, predicate: PopupComponent, descendants: true, read: ElementRef }, { propertyName: "popupViewContainer", first: true, predicate: PopupComponent, descendants: true, read: ViewContainerRef }, { propertyName: "contentComponent", first: true, predicate: InlineAIPromptContentComponent, descendants: true }], exportAs: ["kendoInlineAIPrompt"], ngImport: i0, template: `
206
- <ng-container kendoInlineAIPromptLocalizedMessages
207
- i18n-commandsButtonTitle="kendo.inlineaiprompt.commandsButtonTitle|Sets the Commands button title."
208
- commandsButtonTitle="Command Menu"
209
- i18n-generateButtonTitle="kendo.inlineaiprompt.generateButtonTitle|Sets the Generate button title."
210
- generateButtonTitle="Generate"
211
- i18n-speechToTextButtonTitle="kendo.inlineaiprompt.speechToTextButtonTitle|Sets the Speech to Text button title."
212
- speechToTextButtonTitle="Speech to Text"
213
- >
214
- </ng-container>
215
- <kendo-popup
216
- [style.width]="calculateMeasurement(width)"
217
- [anchor]="popupSettings?.anchor"
218
- [anchorAlign]="popupSettings?.anchorAlign"
219
- [offset]="popupSettings?.offset"
220
- [popupAlign]="popupSettings?.popupAlign"
221
- [animate]="popupSettings?.animate"
222
- [collision]="popupSettings?.collision"
223
- [positionMode]="popupSettings?.positionMode"
224
- [margin]="popupSettings?.margin"
225
- [popupClass]="popupSettings?.popupClass || 'k-prompt-popup'"
226
- >
227
- <kendo-inlineaiprompt-content
228
- [style.width]="width"
229
- [promptValue]="promptValue"
230
- [placeholder]="placeholder"
231
- [promptOutput]="promptOutput"
232
- [enableSpeechToText]="enableSpeechToText"
233
- [streaming]="streaming"
234
- [maxHeight]="maxHeight"
235
- [outputActions]="outputActions"
236
- [promptCommands]="promptCommands"
237
- [outputTemplate]="outputTemplate?.templateRef"
238
- (promptRequest)="onPromptRequest($event)"
239
- (commandExecute)="onCommandExecute($event)"
240
- (outputActionClick)="onOutputActionClick($event)"
241
- (promptRequestCancel)="onPromptRequestCancel()"
242
- (close)="onClose()"
243
- (promptValueChange)="onPromptValueChange($event)"
244
- >
245
- </kendo-inlineaiprompt-content>
246
- </kendo-popup>
247
- `, isInline: true, dependencies: [{ kind: "component", type: i1.PopupComponent, selector: "kendo-popup", inputs: ["animate", "anchor", "anchorAlign", "collision", "popupAlign", "copyAnchorStyles", "popupClass", "positionMode", "offset", "margin"], outputs: ["anchorViewportLeave", "close", "open", "positionChange"], exportAs: ["kendo-popup"] }, { kind: "component", type: InlineAIPromptContentComponent, selector: "kendo-inlineaiprompt-content", inputs: ["popupElement", "promptValue", "placeholder", "promptOutput", "enableSpeechToText", "streaming", "width", "maxHeight", "appendTo", "outputActions", "promptCommands", "outputTemplate"], outputs: ["promptRequest", "commandExecute", "outputActionClick", "promptRequestCancel", "close", "promptValueChange"], exportAs: ["kendoInlineAIPromptContent"] }, { kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoInlineAIPromptLocalizedMessages]" }] });
248
- }
249
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptComponent, decorators: [{
250
- type: Component,
251
- args: [{
252
- exportAs: 'kendoInlineAIPrompt',
253
- selector: 'kendo-inlineaiprompt',
254
- providers: [
255
- LocalizationService,
256
- {
257
- provide: L10N_PREFIX,
258
- useValue: 'kendo.inlineaiprompt',
259
- },
260
- ],
261
- template: `
262
- <ng-container kendoInlineAIPromptLocalizedMessages
263
- i18n-commandsButtonTitle="kendo.inlineaiprompt.commandsButtonTitle|Sets the Commands button title."
264
- commandsButtonTitle="Command Menu"
265
- i18n-generateButtonTitle="kendo.inlineaiprompt.generateButtonTitle|Sets the Generate button title."
266
- generateButtonTitle="Generate"
267
- i18n-speechToTextButtonTitle="kendo.inlineaiprompt.speechToTextButtonTitle|Sets the Speech to Text button title."
268
- speechToTextButtonTitle="Speech to Text"
269
- >
270
- </ng-container>
271
- <kendo-popup
272
- [style.width]="calculateMeasurement(width)"
273
- [anchor]="popupSettings?.anchor"
274
- [anchorAlign]="popupSettings?.anchorAlign"
275
- [offset]="popupSettings?.offset"
276
- [popupAlign]="popupSettings?.popupAlign"
277
- [animate]="popupSettings?.animate"
278
- [collision]="popupSettings?.collision"
279
- [positionMode]="popupSettings?.positionMode"
280
- [margin]="popupSettings?.margin"
281
- [popupClass]="popupSettings?.popupClass || 'k-prompt-popup'"
282
- >
283
- <kendo-inlineaiprompt-content
284
- [style.width]="width"
285
- [promptValue]="promptValue"
286
- [placeholder]="placeholder"
287
- [promptOutput]="promptOutput"
288
- [enableSpeechToText]="enableSpeechToText"
289
- [streaming]="streaming"
290
- [maxHeight]="maxHeight"
291
- [outputActions]="outputActions"
292
- [promptCommands]="promptCommands"
293
- [outputTemplate]="outputTemplate?.templateRef"
294
- (promptRequest)="onPromptRequest($event)"
295
- (commandExecute)="onCommandExecute($event)"
296
- (outputActionClick)="onOutputActionClick($event)"
297
- (promptRequestCancel)="onPromptRequestCancel()"
298
- (close)="onClose()"
299
- (promptValueChange)="onPromptValueChange($event)"
300
- >
301
- </kendo-inlineaiprompt-content>
302
- </kendo-popup>
303
- `,
304
- standalone: true,
305
- imports: [KENDO_POPUP, InlineAIPromptContentComponent, LocalizedMessagesDirective],
306
- }]
307
- }], ctorParameters: () => [{ type: i0.NgZone }, { type: i0.ElementRef }], propDecorators: { promptValue: [{
308
- type: Input
309
- }], placeholder: [{
310
- type: Input
311
- }], promptOutput: [{
312
- type: Input
313
- }], enableSpeechToText: [{
314
- type: Input
315
- }], streaming: [{
316
- type: Input
317
- }], width: [{
318
- type: Input
319
- }], maxHeight: [{
320
- type: Input
321
- }], outputActions: [{
322
- type: Input
323
- }], promptCommands: [{
324
- type: Input
325
- }], popupSettings: [{
326
- type: Input
327
- }], promptRequest: [{
328
- type: Output
329
- }], commandExecute: [{
330
- type: Output
331
- }], outputActionClick: [{
332
- type: Output
333
- }], promptRequestCancel: [{
334
- type: Output
335
- }], close: [{
336
- type: Output
337
- }], promptValueChange: [{
338
- type: Output
339
- }], popupElement: [{
340
- type: ViewChild,
341
- args: [PopupComponent, { read: ElementRef }]
342
- }], popupViewContainer: [{
343
- type: ViewChild,
344
- args: [PopupComponent, { read: ViewContainerRef }]
345
- }], contentComponent: [{
346
- type: ViewChild,
347
- args: [InlineAIPromptContentComponent]
348
- }], outputTemplate: [{
349
- type: ContentChild,
350
- args: [InlineAIPromptOutputTemplateDirective]
351
- }] } });
@@ -1,46 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { NgModule } from "@angular/core";
6
- import { IconsService } from '@progress/kendo-angular-icons';
7
- import { PopupService } from "@progress/kendo-angular-popup";
8
- import { ResizeBatchService } from "@progress/kendo-angular-common";
9
- import { DialogContainerService, DialogService, WindowContainerService, WindowService } from "@progress/kendo-angular-dialog";
10
- import { KENDO_INLINEAIPROMPT } from "../directives";
11
- import * as i0 from "@angular/core";
12
- import * as i1 from "./inlineaiprompt.component";
13
- import * as i2 from "./output-template.directive";
14
- import * as i3 from "./localization/custom-messages.component";
15
- // IMPORTANT: NgModule export kept for backwards compatibility
16
- /**
17
- * Represents the [`NgModule`](link:site.data.urls.angular['ngmodules']) for the InlineAIPrompt component.
18
- *
19
- * @example
20
- * ```ts
21
- * import { NgModule } from '@angular/core';
22
- * import { BrowserModule } from '@angular/platform-browser';
23
- * import { InlineAIPromptModule } from '@progress/kendo-angular-conversational-ui';
24
- * import { AppComponent } from './app.component';
25
- *
26
- * @NgModule({
27
- * imports: [BrowserModule, InlineAIPromptModule],
28
- * declarations: [AppComponent],
29
- * bootstrap: [AppComponent]
30
- * })
31
- * export class AppModule {}
32
- * ```
33
- */
34
- export class InlineAIPromptModule {
35
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
36
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptModule, imports: [i1.InlineAIPromptComponent, i2.InlineAIPromptOutputTemplateDirective, i3.InlineAIPromptCustomMessagesComponent], exports: [i1.InlineAIPromptComponent, i2.InlineAIPromptOutputTemplateDirective, i3.InlineAIPromptCustomMessagesComponent] });
37
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptModule, providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService], imports: [i1.InlineAIPromptComponent] });
38
- }
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptModule, decorators: [{
40
- type: NgModule,
41
- args: [{
42
- exports: [...KENDO_INLINEAIPROMPT],
43
- imports: [...KENDO_INLINEAIPROMPT],
44
- providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService]
45
- }]
46
- }] });
@@ -1,92 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Injectable, ViewContainerRef } from '@angular/core';
6
- import { PopupService } from '@progress/kendo-angular-popup';
7
- import { InlineAIPromptContentComponent } from './inlineaiprompt-content.component';
8
- import { defaultPopupSettings } from './utils';
9
- import * as i0 from "@angular/core";
10
- import * as i1 from "@progress/kendo-angular-popup";
11
- /**
12
- * Provides a service for opening and configuring the Inline AI Prompt component dynamically.
13
- *
14
- * @example
15
- * ```ts
16
- * export class DemoComponent {
17
- * @ViewChild('anchor', { read: ElementRef }) anchor: ElementRef;
18
- * constructor(private promptService: InlineAIPromptService) {}
19
- *
20
- * open(): void {
21
- * this.promptService.open({
22
- * popupSettings: { anchor: this.anchor },
23
- * placeholder: 'Enter your prompt...'
24
- * });
25
- * }
26
- * }
27
- * ```
28
- * ```html
29
- * <button #anchor (click)="open()">Ask AI</button>
30
- * ```
31
- */
32
- export class InlineAIPromptService {
33
- popupService;
34
- /**
35
- * @hidden
36
- */
37
- constructor(popupService) {
38
- this.popupService = popupService;
39
- }
40
- /**
41
- * Opens an Inline AI Prompt component in a popup. The popup appears near the specified anchor element or at the provided offset coordinates.
42
- *
43
- * @param {InlineAIPromptSettings} options The options for the InlineAIPromptComponent.
44
- * @returns {PopupRef} A reference to the popup.
45
- */
46
- open(options) {
47
- const popupSettings = { ...defaultPopupSettings, ...options?.popupSettings };
48
- const popupRef = this.popupService.open({
49
- ...(options?.popupSettings?.anchor && { anchor: options.popupSettings.anchor }),
50
- popupClass: 'k-prompt-popup',
51
- ...popupSettings,
52
- content: InlineAIPromptContentComponent,
53
- });
54
- const promptInstance = popupRef.content?.instance;
55
- if (promptInstance) {
56
- const popupViewContainer = popupRef.popup.injector.get(ViewContainerRef);
57
- promptInstance.appendTo = popupViewContainer;
58
- promptInstance.popupElement = popupRef.popupElement;
59
- this.projectComponentInputs(promptInstance, options);
60
- if (promptInstance.close) {
61
- promptInstance.close.subscribe(() => {
62
- popupRef.close();
63
- });
64
- }
65
- if (popupRef.content.changeDetectorRef) {
66
- popupRef.content.changeDetectorRef.detectChanges();
67
- }
68
- }
69
- return popupRef;
70
- }
71
- /**
72
- * Projects the input options onto the component instance.
73
- */
74
- projectComponentInputs(component, options) {
75
- if (!options) {
76
- return component;
77
- }
78
- Object.getOwnPropertyNames(options)
79
- .forEach((prop) => {
80
- component[prop] = options[prop];
81
- });
82
- return component;
83
- }
84
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptService, deps: [{ token: i1.PopupService }], target: i0.ɵɵFactoryTarget.Injectable });
85
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptService, providedIn: 'root' });
86
- }
87
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptService, decorators: [{
88
- type: Injectable,
89
- args: [{
90
- providedIn: 'root'
91
- }]
92
- }], ctorParameters: () => [{ type: i1.PopupService }] });
@@ -1,51 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Component, forwardRef } from '@angular/core';
6
- import { LocalizationService } from '@progress/kendo-angular-l10n';
7
- import { Messages } from './messages';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "@progress/kendo-angular-l10n";
10
- /**
11
- * Provides a component for customizing messages in the Inline AI Prompt. [See example](slug:globalization_chat#custom-messages).
12
- *
13
- * @example
14
- * ```html
15
- * <kendo-inlineaiprompt-messages
16
- * commandsButtonTitle="Commands Menu"
17
- * generateButtonTitle="Generate">
18
- * </kendo-inlineaiprompt-messages>
19
- * ```
20
- */
21
- export class InlineAIPromptCustomMessagesComponent extends Messages {
22
- service;
23
- constructor(service) {
24
- super();
25
- this.service = service;
26
- }
27
- get override() {
28
- return true;
29
- }
30
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
31
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: InlineAIPromptCustomMessagesComponent, isStandalone: true, selector: "kendo-inlineaiprompt-messages", providers: [
32
- {
33
- provide: Messages,
34
- useExisting: forwardRef(() => InlineAIPromptCustomMessagesComponent)
35
- }
36
- ], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
37
- }
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: InlineAIPromptCustomMessagesComponent, decorators: [{
39
- type: Component,
40
- args: [{
41
- providers: [
42
- {
43
- provide: Messages,
44
- useExisting: forwardRef(() => InlineAIPromptCustomMessagesComponent)
45
- }
46
- ],
47
- selector: 'kendo-inlineaiprompt-messages',
48
- template: ``,
49
- standalone: true
50
- }]
51
- }], ctorParameters: () => [{ type: i1.LocalizationService }] });
@@ -1,39 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Directive, forwardRef } from '@angular/core';
6
- import { LocalizationService } from '@progress/kendo-angular-l10n';
7
- import { Messages } from './messages';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "@progress/kendo-angular-l10n";
10
- /**
11
- * @hidden
12
- */
13
- export class LocalizedMessagesDirective extends Messages {
14
- service;
15
- constructor(service) {
16
- super();
17
- this.service = service;
18
- }
19
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
20
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoInlineAIPromptLocalizedMessages]", providers: [
21
- {
22
- provide: Messages,
23
- useExisting: forwardRef(() => LocalizedMessagesDirective)
24
- }
25
- ], usesInheritance: true, ngImport: i0 });
26
- }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
28
- type: Directive,
29
- args: [{
30
- providers: [
31
- {
32
- provide: Messages,
33
- useExisting: forwardRef(() => LocalizedMessagesDirective)
34
- }
35
- ],
36
- selector: '[kendoInlineAIPromptLocalizedMessages]',
37
- standalone: true
38
- }]
39
- }], ctorParameters: () => [{ type: i1.LocalizationService }] });
@@ -1,35 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import { Directive, Input } from '@angular/core';
6
- import { ComponentMessages } from '@progress/kendo-angular-l10n';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * @hidden
10
- */
11
- export class Messages extends ComponentMessages {
12
- /**
13
- * The title for the Commands button.
14
- */
15
- commandsButtonTitle;
16
- /**
17
- * The title for the Generate button.
18
- */
19
- generateButtonTitle;
20
- /**
21
- * The title for the Speech to Text button.
22
- */
23
- speechToTextButtonTitle;
24
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
25
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: Messages, inputs: { commandsButtonTitle: "commandsButtonTitle", generateButtonTitle: "generateButtonTitle", speechToTextButtonTitle: "speechToTextButtonTitle" }, usesInheritance: true, ngImport: i0 });
26
- }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: Messages, decorators: [{
28
- type: Directive
29
- }], propDecorators: { commandsButtonTitle: [{
30
- type: Input
31
- }], generateButtonTitle: [{
32
- type: Input
33
- }], speechToTextButtonTitle: [{
34
- type: Input
35
- }] } });
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export { InlineAIPromptSettings } from './inlineaiprompt-settings';
@@ -1,5 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2026 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- export {};