@progress/kendo-angular-conversational-ui 19.3.0-develop.9 → 19.3.1-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 (72) hide show
  1. package/ai-prompt/aiprompt.component.d.ts +80 -13
  2. package/ai-prompt/aiprompt.module.d.ts +3 -1
  3. package/ai-prompt/common/aiprompt.service.d.ts +10 -0
  4. package/ai-prompt/common/output-card.component.d.ts +4 -0
  5. package/ai-prompt/localization/messages.d.ts +5 -1
  6. package/ai-prompt/models/ai-prompt-settings.d.ts +60 -0
  7. package/ai-prompt/models/index.d.ts +1 -0
  8. package/ai-prompt/templates/aiprompt-output-body-template.directive.d.ts +24 -0
  9. package/ai-prompt/templates/aiprompt-output-template.directive.d.ts +24 -0
  10. package/ai-prompt/views/output-view.component.d.ts +4 -0
  11. package/ai-prompt/views/prompt-view.component.d.ts +23 -1
  12. package/chat/message-attachments.component.d.ts +1 -1
  13. package/conversational-ui.module.d.ts +12 -7
  14. package/directives.d.ts +25 -2
  15. package/esm2022/ai-prompt/aiprompt.component.mjs +177 -25
  16. package/esm2022/ai-prompt/aiprompt.module.mjs +3 -1
  17. package/esm2022/ai-prompt/common/aiprompt.service.mjs +35 -0
  18. package/esm2022/ai-prompt/common/output-card.component.mjs +23 -5
  19. package/esm2022/ai-prompt/common/toolbar-focusable.directive.mjs +4 -3
  20. package/esm2022/ai-prompt/localization/messages.mjs +7 -1
  21. package/esm2022/ai-prompt/models/ai-prompt-settings.mjs +5 -0
  22. package/esm2022/ai-prompt/templates/aiprompt-output-body-template.directive.mjs +33 -0
  23. package/esm2022/ai-prompt/templates/aiprompt-output-template.directive.mjs +33 -0
  24. package/esm2022/ai-prompt/views/output-view.component.mjs +27 -11
  25. package/esm2022/ai-prompt/views/prompt-view.component.mjs +139 -21
  26. package/esm2022/chat/message-attachments.component.mjs +3 -2
  27. package/esm2022/chat/message-box.component.mjs +3 -3
  28. package/esm2022/chat/message-list.component.mjs +4 -2
  29. package/esm2022/chat/suggested-actions.component.mjs +2 -2
  30. package/esm2022/conversational-ui.module.mjs +13 -8
  31. package/esm2022/directives.mjs +32 -2
  32. package/esm2022/index.mjs +8 -0
  33. package/esm2022/inline-ai-prompt/inlineaiprompt-content.component.mjs +522 -0
  34. package/esm2022/inline-ai-prompt/inlineaiprompt.component.mjs +349 -0
  35. package/esm2022/inline-ai-prompt/inlineaiprompt.module.mjs +46 -0
  36. package/esm2022/inline-ai-prompt/inlineaiprompt.service.mjs +85 -0
  37. package/esm2022/inline-ai-prompt/localization/custom-messages.component.mjs +53 -0
  38. package/esm2022/inline-ai-prompt/localization/localized-messages.directive.mjs +39 -0
  39. package/esm2022/inline-ai-prompt/localization/messages.mjs +35 -0
  40. package/esm2022/inline-ai-prompt/models/command.interface.mjs +5 -0
  41. package/esm2022/inline-ai-prompt/models/index.mjs +5 -0
  42. package/esm2022/inline-ai-prompt/models/inlineaiprompt-popupsettings.mjs +5 -0
  43. package/esm2022/inline-ai-prompt/models/inlineaiprompt-settings.mjs +59 -0
  44. package/esm2022/inline-ai-prompt/models/messages.mjs +8 -0
  45. package/esm2022/inline-ai-prompt/models/output-action-click-event.mjs +5 -0
  46. package/esm2022/inline-ai-prompt/models/output-action.interface.mjs +5 -0
  47. package/esm2022/inline-ai-prompt/models/prompt-output.interface.mjs +5 -0
  48. package/esm2022/inline-ai-prompt/models/prompt-request-event.mjs +5 -0
  49. package/esm2022/inline-ai-prompt/output-template.directive.mjs +38 -0
  50. package/esm2022/inline-ai-prompt/utils.mjs +57 -0
  51. package/esm2022/package-metadata.mjs +2 -2
  52. package/fesm2022/progress-kendo-angular-conversational-ui.mjs +1768 -147
  53. package/index.d.ts +8 -0
  54. package/inline-ai-prompt/inlineaiprompt-content.component.d.ts +82 -0
  55. package/inline-ai-prompt/inlineaiprompt.component.d.ts +157 -0
  56. package/inline-ai-prompt/inlineaiprompt.module.d.ts +31 -0
  57. package/inline-ai-prompt/inlineaiprompt.service.d.ts +41 -0
  58. package/inline-ai-prompt/localization/custom-messages.component.d.ts +27 -0
  59. package/inline-ai-prompt/localization/localized-messages.directive.d.ts +16 -0
  60. package/inline-ai-prompt/localization/messages.d.ts +25 -0
  61. package/inline-ai-prompt/models/command.interface.d.ts +38 -0
  62. package/inline-ai-prompt/models/index.d.ts +12 -0
  63. package/inline-ai-prompt/models/inlineaiprompt-popupsettings.d.ts +10 -0
  64. package/inline-ai-prompt/models/inlineaiprompt-settings.d.ts +66 -0
  65. package/inline-ai-prompt/models/messages.d.ts +21 -0
  66. package/inline-ai-prompt/models/output-action-click-event.d.ts +19 -0
  67. package/inline-ai-prompt/models/output-action.interface.d.ts +52 -0
  68. package/inline-ai-prompt/models/prompt-output.interface.d.ts +25 -0
  69. package/inline-ai-prompt/models/prompt-request-event.d.ts +17 -0
  70. package/inline-ai-prompt/output-template.directive.d.ts +27 -0
  71. package/inline-ai-prompt/utils.d.ts +17 -0
  72. package/package.json +13 -12
@@ -0,0 +1,59 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * Defines the settings for opening an Inline AI Prompt through the `InlineAIPromptService`.
7
+ */
8
+ export class InlineAIPromptSettings {
9
+ /**
10
+ * Specifies the settings for the Inline AI Prompt Popup.
11
+ */
12
+ popupSettings;
13
+ /**
14
+ * Sets the width of the component.
15
+ * Accepts a number for pixels or a string for other units, for example, `50%`.
16
+ */
17
+ width;
18
+ /**
19
+ * Sets the maximum height of the component.
20
+ * Accepts a number for pixels or a string for other units, for example, `50%`.
21
+ */
22
+ maxHeight;
23
+ /**
24
+ * Sets the value of the Inline AI Prompt TextArea.
25
+ */
26
+ promptValue;
27
+ /**
28
+ * Sets the placeholder of the Inline AI Prompt TextArea.
29
+ */
30
+ placeholder;
31
+ /**
32
+ * Sets the action buttons for the output card.
33
+ */
34
+ outputActions;
35
+ /**
36
+ * Sets the commands for the Inline AI Prompt TextArea prefix.
37
+ */
38
+ promptCommands;
39
+ /**
40
+ * Sets the prompt output to display.
41
+ */
42
+ promptOutput;
43
+ /**
44
+ * Sets the visibility and configuration of the Speech to Text button.
45
+ */
46
+ enableSpeechToTextButton;
47
+ /**
48
+ * Sets the template for the output content. If not provided, the default output template is used.
49
+ */
50
+ outputTemplate;
51
+ /**
52
+ * Sets whether the send button turns into a stop button.
53
+ */
54
+ streaming;
55
+ /**
56
+ * Sets the titles of the buttons shown in the Inline AI Prompt. Use for localization.
57
+ */
58
+ messages;
59
+ }
@@ -0,0 +1,8 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ /**
6
+ * Defines the titles that appear in the Inline AI Prompt. Use for localization.
7
+ */
8
+ export {};
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -0,0 +1,5 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ export {};
@@ -0,0 +1,38 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 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, Optional, TemplateRef } from "@angular/core";
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Defines a template for displaying the output of the Inline AI Prompt.
9
+ *
10
+ * @example
11
+ * ```html
12
+ * <kendo-inlineaiprompt>
13
+ * <ng-template kendoInlineAIPromptOutputTemplate let-output>
14
+ * <div class="custom-output">
15
+ * <h4>AI Response:</h4>
16
+ * <p>{{ output.output }}</p>
17
+ * </div>
18
+ * </ng-template>
19
+ * </kendo-inlineaiprompt>
20
+ * ```
21
+ */
22
+ export class InlineAIPromptOutputTemplateDirective {
23
+ templateRef;
24
+ constructor(templateRef) {
25
+ this.templateRef = templateRef;
26
+ }
27
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InlineAIPromptOutputTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
28
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: InlineAIPromptOutputTemplateDirective, isStandalone: true, selector: "[kendoInlineAIPromptOutputTemplate]", ngImport: i0 });
29
+ }
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: InlineAIPromptOutputTemplateDirective, decorators: [{
31
+ type: Directive,
32
+ args: [{
33
+ selector: '[kendoInlineAIPromptOutputTemplate]',
34
+ standalone: true
35
+ }]
36
+ }], ctorParameters: function () { return [{ type: i0.TemplateRef, decorators: [{
37
+ type: Optional
38
+ }] }]; } });
@@ -0,0 +1,57 @@
1
+ /**-----------------------------------------------------------------------------------------
2
+ * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
+ * Licensed under commercial license. See LICENSE.md in the project root for more information
4
+ *-------------------------------------------------------------------------------------------*/
5
+ import { copyIcon, arrowRotateCwIcon, cancelOutlineIcon } from "@progress/kendo-svg-icons";
6
+ /**
7
+ * @hidden
8
+ */
9
+ export const defaultPopupSettings = {
10
+ popupAlign: { vertical: 'top', horizontal: 'left' },
11
+ anchorAlign: { horizontal: "left", vertical: "bottom" },
12
+ positionMode: 'absolute',
13
+ collision: { horizontal: 'fit', vertical: 'flip' },
14
+ animate: true,
15
+ offset: { top: 0, left: 0 },
16
+ margin: { horizontal: 0, vertical: 0 },
17
+ };
18
+ /**
19
+ * @hidden
20
+ */
21
+ export const calculateMeasurement = (value) => {
22
+ return value + (typeof value === 'number' ? 'px' : '');
23
+ };
24
+ /**
25
+ * @hidden
26
+ */
27
+ export const defaultOutputActions = [{
28
+ name: 'copy',
29
+ type: 'button',
30
+ icon: 'copy',
31
+ svgIcon: copyIcon,
32
+ text: 'Copy',
33
+ fillMode: 'flat',
34
+ themeColor: 'primary',
35
+ rounded: 'medium',
36
+ },
37
+ {
38
+ name: 'retry',
39
+ type: 'button',
40
+ icon: 'arrow-rotate-cw',
41
+ svgIcon: arrowRotateCwIcon,
42
+ text: 'Retry',
43
+ fillMode: 'flat',
44
+ themeColor: 'primary',
45
+ rounded: 'medium',
46
+ },
47
+ {
48
+ name: 'discard',
49
+ type: 'button',
50
+ icon: 'cancel-outline',
51
+ svgIcon: cancelOutlineIcon,
52
+ text: 'Discard',
53
+ fillMode: 'flat',
54
+ themeColor: 'base',
55
+ rounded: 'medium',
56
+ }
57
+ ];
@@ -10,7 +10,7 @@ export const packageMetadata = {
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCode: 'KENDOUIANGULAR',
12
12
  productCodes: ['KENDOUIANGULAR'],
13
- publishDate: 1752672481,
14
- version: '19.3.0-develop.9',
13
+ publishDate: 1755502649,
14
+ version: '19.3.1-develop.1',
15
15
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
16
16
  };