@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,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 {};
@@ -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 {};
@@ -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 {};
@@ -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,33 +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, TemplateRef } from '@angular/core';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Represents the template for the body of the response in the AIPrompt component. The template context is set to the current output object.
9
- *
10
- * @example
11
- * ```html
12
- * <kendo-aiprompt>
13
- * <ng-template kendoAIPromptOutputBodyTemplate let-output>
14
- * <div>{{output.prompt}}</div>
15
- * </ng-template>
16
- * </kendo-aiprompt>
17
- * ```
18
- */
19
- export class AIPromptOutputBodyTemplateDirective {
20
- templateRef;
21
- constructor(templateRef) {
22
- this.templateRef = templateRef;
23
- }
24
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AIPromptOutputBodyTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
25
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: AIPromptOutputBodyTemplateDirective, isStandalone: true, selector: "[kendoAIPromptOutputBodyTemplate]", ngImport: i0 });
26
- }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AIPromptOutputBodyTemplateDirective, decorators: [{
28
- type: Directive,
29
- args: [{
30
- selector: '[kendoAIPromptOutputBodyTemplate]',
31
- standalone: true
32
- }]
33
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
@@ -1,33 +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, TemplateRef } from '@angular/core';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Represents the template for the response in the AIPrompt component. The template context is set to the current output object.
9
- *
10
- * @example
11
- * ```html
12
- * <kendo-aiprompt>
13
- * <ng-template kendoAIPromptOutputTemplate let-output>
14
- * <div>{{output.prompt}}</div>
15
- * </ng-template>
16
- * </kendo-aiprompt>
17
- * ```
18
- */
19
- export class AIPromptOutputTemplateDirective {
20
- templateRef;
21
- constructor(templateRef) {
22
- this.templateRef = templateRef;
23
- }
24
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AIPromptOutputTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
25
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: AIPromptOutputTemplateDirective, isStandalone: true, selector: "[kendoAIPromptOutputTemplate]", ngImport: i0 });
26
- }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AIPromptOutputTemplateDirective, decorators: [{
28
- type: Directive,
29
- args: [{
30
- selector: '[kendoAIPromptOutputTemplate]',
31
- standalone: true
32
- }]
33
- }], ctorParameters: () => [{ type: i0.TemplateRef }] });
@@ -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, Optional, TemplateRef } from '@angular/core';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Represents a template for additional Toolbar actions.
9
- * The actions appear after the Toolbar buttons for all views.
10
- *
11
- * To define the template, nest an `<ng-template>` tag
12
- * with the `kendoAIPromptToolbarActionsTemplate` directive inside the `<kendo-aiprompt>` tag.
13
- *
14
- * @example
15
- * ```html
16
- * <kendo-aiprompt>
17
- * <ng-template kendoAIPromptToolbarActionsTemplate>
18
- * <button kendoButton>Custom Action</button>
19
- * </ng-template>
20
- * </kendo-aiprompt>
21
- * ```
22
- */
23
- export class AIPromptToolbarActionsDirective {
24
- templateRef;
25
- constructor(templateRef) {
26
- this.templateRef = templateRef;
27
- }
28
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AIPromptToolbarActionsDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
29
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: AIPromptToolbarActionsDirective, isStandalone: true, selector: "[kendoAIPromptToolbarActionsTemplate]", ngImport: i0 });
30
- }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: AIPromptToolbarActionsDirective, decorators: [{
32
- type: Directive,
33
- args: [{
34
- selector: '[kendoAIPromptToolbarActionsTemplate]',
35
- standalone: true
36
- }]
37
- }], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
38
- type: Optional
39
- }] }] });
@@ -1,26 +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 { InjectionToken } from "@angular/core";
6
- import { commentIcon, moreHorizontalIcon, sparklesIcon } from "@progress/kendo-svg-icons";
7
- /**
8
- * @hidden
9
- */
10
- export const MY_TOKEN = new InjectionToken('COMMAND_TOKEN');
11
- /**
12
- * @hidden
13
- */
14
- export const DEFAULT_SVG_ICONS = {
15
- prompt: sparklesIcon,
16
- output: commentIcon,
17
- command: moreHorizontalIcon
18
- };
19
- /**
20
- * @hidden
21
- */
22
- export const DEFAULT_ICONS = {
23
- prompt: 'sparkles',
24
- output: 'comment',
25
- command: 'more-horizontal'
26
- };
@@ -1,98 +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 { Input, TemplateRef, Directive, HostBinding, Inject, ViewChild } from '@angular/core';
6
- import { LocalizationService } from '@progress/kendo-angular-l10n';
7
- import { isPresent } from '@progress/kendo-angular-common';
8
- import { DEFAULT_ICONS, DEFAULT_SVG_ICONS, MY_TOKEN } from '../utils';
9
- import * as i0 from "@angular/core";
10
- import * as i1 from "@progress/kendo-angular-l10n";
11
- /**
12
- * @hidden
13
- */
14
- export class BaseView {
15
- viewType;
16
- localization;
17
- hostClasses = true;
18
- /**
19
- * @hidden
20
- */
21
- template;
22
- constructor(viewType, localization) {
23
- this.viewType = viewType;
24
- this.localization = localization;
25
- if (this.viewType !== 'custom') {
26
- this.icon = DEFAULT_ICONS[this.viewType];
27
- this.svgIcon = DEFAULT_SVG_ICONS[this.viewType];
28
- }
29
- }
30
- /**
31
- * Sets the text for the Toolbar button of the current view.
32
- */
33
- set buttonText(value) {
34
- this._buttonText = value;
35
- }
36
- get buttonText() {
37
- return isPresent(this._buttonText) ?
38
- this._buttonText :
39
- this.messageFor(`${this.viewType}View`);
40
- }
41
- /**
42
- * Sets the font icon for the Toolbar button of the current view.
43
- */
44
- set icon(value) {
45
- if (isPresent(value)) {
46
- this._icon = value;
47
- }
48
- else {
49
- this.icon = DEFAULT_ICONS[this.viewType];
50
- }
51
- }
52
- get icon() {
53
- return this._icon;
54
- }
55
- /**
56
- * Sets the SVG icon for the Toolbar button of the current view.
57
- */
58
- set svgIcon(value) {
59
- if (isPresent(value)) {
60
- this._svgIcon = value;
61
- }
62
- else {
63
- this.svgIcon = DEFAULT_SVG_ICONS[this.viewType];
64
- }
65
- }
66
- get svgIcon() {
67
- return this._svgIcon;
68
- }
69
- /**
70
- * @hidden
71
- */
72
- messageFor(text) {
73
- return this.localization.get(text);
74
- }
75
- _buttonText;
76
- _icon;
77
- _svgIcon;
78
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BaseView, deps: [{ token: MY_TOKEN }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
79
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.14", type: BaseView, inputs: { buttonText: "buttonText", icon: "icon", svgIcon: "svgIcon" }, host: { properties: { "class.k-prompt-view": "this.hostClasses" } }, viewQueries: [{ propertyName: "template", first: true, predicate: ["content"], descendants: true, static: true }], ngImport: i0 });
80
- }
81
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: BaseView, decorators: [{
82
- type: Directive
83
- }], ctorParameters: () => [{ type: undefined, decorators: [{
84
- type: Inject,
85
- args: [MY_TOKEN]
86
- }] }, { type: i1.LocalizationService }], propDecorators: { hostClasses: [{
87
- type: HostBinding,
88
- args: ['class.k-prompt-view']
89
- }], template: [{
90
- type: ViewChild,
91
- args: ['content', { static: true }]
92
- }], buttonText: [{
93
- type: Input
94
- }], icon: [{
95
- type: Input
96
- }], svgIcon: [{
97
- type: Input
98
- }] } });
@@ -1,100 +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 { PanelBarComponent } from '@progress/kendo-angular-layout';
8
- import { BaseView } from './base-view';
9
- import { AIPromptService } from '../common/aiprompt.service';
10
- import * as i0 from "@angular/core";
11
- import * as i1 from "@progress/kendo-angular-l10n";
12
- import * as i2 from "../common/aiprompt.service";
13
- /**
14
- * Represents the component that renders the **Command** view of the AIPrompt.
15
- *
16
- * @example
17
- * ```html
18
- * <kendo-aiprompt-command-view
19
- * buttonText="My command view">
20
- * </kendo-aiprompt-command-view>
21
- * ```
22
- */
23
- export class CommandViewComponent extends BaseView {
24
- service;
25
- constructor(localization, service) {
26
- super('command', localization);
27
- this.service = service;
28
- }
29
- /**
30
- * @hidden
31
- */
32
- panelBarItems = [];
33
- ngOnInit() {
34
- if (this.service.promptCommands) {
35
- this.panelBarItems = this.getPanelBarItems(this.service.promptCommands);
36
- }
37
- }
38
- /**
39
- * @hidden
40
- */
41
- itemClickHandler(ev) {
42
- if (ev.item.children) {
43
- return;
44
- }
45
- const selectedCommand = this.service.getFlattenPromptCommands().find(c => c.id == ev.item.id);
46
- if (selectedCommand) {
47
- const eventArgs = {
48
- command: selectedCommand,
49
- sender: this.service.aiPrompt,
50
- isRetry: false
51
- };
52
- this.service.executeEvent.next(eventArgs);
53
- }
54
- }
55
- getPanelBarItems(commands) {
56
- return commands.map(c => ({
57
- title: c.text,
58
- id: c.id,
59
- icon: c.icon,
60
- svgIcon: c.svgIcon,
61
- children: c.children ? this.getPanelBarItems(c.children) : null
62
- }));
63
- }
64
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CommandViewComponent, deps: [{ token: i1.LocalizationService }, { token: i2.AIPromptService }], target: i0.ɵɵFactoryTarget.Component });
65
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: CommandViewComponent, isStandalone: true, selector: "kendo-aiprompt-command-view", providers: [{
66
- provide: BaseView,
67
- useExisting: forwardRef(() => CommandViewComponent)
68
- }], usesInheritance: true, ngImport: i0, template: `
69
- <ng-template #content>
70
- <kendo-panelbar
71
- [items]="panelBarItems"
72
- [animate]="false"
73
- [selectable]="false"
74
- (itemClick)="itemClickHandler($event)"
75
- ></kendo-panelbar>
76
- </ng-template>
77
- `, isInline: true, dependencies: [{ kind: "component", type: PanelBarComponent, selector: "kendo-panelbar", inputs: ["expandMode", "selectable", "animate", "height", "keepItemContent", "items"], outputs: ["stateChange", "select", "expand", "collapse", "itemClick"], exportAs: ["kendoPanelbar"] }] });
78
- }
79
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CommandViewComponent, decorators: [{
80
- type: Component,
81
- args: [{
82
- selector: 'kendo-aiprompt-command-view',
83
- providers: [{
84
- provide: BaseView,
85
- useExisting: forwardRef(() => CommandViewComponent)
86
- }],
87
- template: `
88
- <ng-template #content>
89
- <kendo-panelbar
90
- [items]="panelBarItems"
91
- [animate]="false"
92
- [selectable]="false"
93
- (itemClick)="itemClickHandler($event)"
94
- ></kendo-panelbar>
95
- </ng-template>
96
- `,
97
- standalone: true,
98
- imports: [PanelBarComponent]
99
- }]
100
- }], ctorParameters: () => [{ type: i1.LocalizationService }, { type: i2.AIPromptService }] });
@@ -1,50 +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, Input, TemplateRef } from '@angular/core';
6
- import { LocalizationService } from '@progress/kendo-angular-l10n';
7
- import { BaseView } from './base-view';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "@progress/kendo-angular-l10n";
10
- /**
11
- * Represents the component that renders a **Custom** view in the AIPrompt.
12
- *
13
- * @example
14
- * ```html
15
- * <kendo-aiprompt-custom-view [viewTemplate]="customTemplate">
16
- * </kendo-aiprompt-custom-view>
17
- *
18
- * <ng-template #customTemplate>
19
- * <div>Custom content here</div>
20
- * </ng-template>
21
- * ```
22
- */
23
- export class CustomViewComponent extends BaseView {
24
- constructor(localization) {
25
- super('custom', localization);
26
- }
27
- /**
28
- * Sets the content of the Custom view as a template reference.
29
- */
30
- viewTemplate;
31
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CustomViewComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
32
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.14", type: CustomViewComponent, isStandalone: true, selector: "kendo-aiprompt-custom-view", inputs: { viewTemplate: "viewTemplate" }, providers: [{
33
- provide: BaseView,
34
- useExisting: forwardRef(() => CustomViewComponent)
35
- }], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
36
- }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: CustomViewComponent, decorators: [{
38
- type: Component,
39
- args: [{
40
- selector: 'kendo-aiprompt-custom-view',
41
- providers: [{
42
- provide: BaseView,
43
- useExisting: forwardRef(() => CustomViewComponent)
44
- }],
45
- template: ``,
46
- standalone: true
47
- }]
48
- }], ctorParameters: () => [{ type: i1.LocalizationService }], propDecorators: { viewTemplate: [{
49
- type: Input
50
- }] } });
@@ -1,8 +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 { CommandViewComponent } from './command-view.component';
6
- export { CustomViewComponent } from './custom-view.component';
7
- export { OutputViewComponent } from './output-view.component';
8
- export { PromptViewComponent } from './prompt-view.component';
@@ -1,90 +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 { BaseView } from './base-view';
8
- import { AIPromptService } from '../common/aiprompt.service';
9
- import { AIPromptOutputCardComponent } from '../common/output-card.component';
10
- import { NgTemplateOutlet } from '@angular/common';
11
- import * as i0 from "@angular/core";
12
- import * as i1 from "@progress/kendo-angular-l10n";
13
- import * as i2 from "../common/aiprompt.service";
14
- /**
15
- * Represents the component that renders the **Output** view of the AIPrompt.
16
- *
17
- * @example
18
- * ```html
19
- * <kendo-aiprompt-output-view
20
- * buttonText="My output view">
21
- * </kendo-aiprompt-output-view>
22
- * ```
23
- */
24
- export class OutputViewComponent extends BaseView {
25
- service;
26
- constructor(localization, service) {
27
- super('output', localization);
28
- this.service = service;
29
- }
30
- /**
31
- * @hidden
32
- */
33
- get promptOutputs() {
34
- return this.service.promptOutputs;
35
- }
36
- /**
37
- * @hidden
38
- */
39
- get customTemplate() {
40
- return this.service.outputTemplate?.templateRef;
41
- }
42
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OutputViewComponent, deps: [{ token: i1.LocalizationService }, { token: i2.AIPromptService }], target: i0.ɵɵFactoryTarget.Component });
43
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: OutputViewComponent, isStandalone: true, selector: "kendo-aiprompt-output-view", providers: [{
44
- provide: BaseView,
45
- useExisting: forwardRef(() => OutputViewComponent)
46
- }], usesInheritance: true, ngImport: i0, template: `
47
- <ng-template #content>
48
- <div
49
- class="k-card-list"
50
- role="list">
51
- @for (output of promptOutputs; track output) {
52
- @if (customTemplate) {
53
- <ng-container *ngTemplateOutlet="customTemplate; context: { $implicit: output }">
54
- </ng-container>
55
- } @else {
56
- <div kendoAIPromptOutputCard [promptOutput]="output"></div>
57
- }
58
- }
59
- </div>
60
- </ng-template>
61
- `, isInline: true, dependencies: [{ kind: "component", type: AIPromptOutputCardComponent, selector: "[kendoAIPromptOutputCard]", inputs: ["promptOutput"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
62
- }
63
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: OutputViewComponent, decorators: [{
64
- type: Component,
65
- args: [{
66
- selector: 'kendo-aiprompt-output-view',
67
- providers: [{
68
- provide: BaseView,
69
- useExisting: forwardRef(() => OutputViewComponent)
70
- }],
71
- template: `
72
- <ng-template #content>
73
- <div
74
- class="k-card-list"
75
- role="list">
76
- @for (output of promptOutputs; track output) {
77
- @if (customTemplate) {
78
- <ng-container *ngTemplateOutlet="customTemplate; context: { $implicit: output }">
79
- </ng-container>
80
- } @else {
81
- <div kendoAIPromptOutputCard [promptOutput]="output"></div>
82
- }
83
- }
84
- </div>
85
- </ng-template>
86
- `,
87
- standalone: true,
88
- imports: [AIPromptOutputCardComponent, NgTemplateOutlet]
89
- }]
90
- }], ctorParameters: () => [{ type: i1.LocalizationService }, { type: i2.AIPromptService }] });