@progress/kendo-angular-conversational-ui 15.0.2-develop.1 → 15.0.2-develop.11
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.
- package/ai-prompt/aiprompt.component.d.ts +2 -2
- package/ai-prompt/common/output-card.component.d.ts +3 -1
- package/ai-prompt/localization/custom-messages.component.d.ts +2 -1
- package/ai-prompt/localization/messages.d.ts +1 -1
- package/ai-prompt/models/command-execute-event.d.ts +1 -0
- package/ai-prompt/models/command.interface.d.ts +1 -1
- package/ai-prompt/models/output-rating-change-event.d.ts +1 -0
- package/ai-prompt/models/prompt-output.interface.d.ts +2 -2
- package/ai-prompt/models/prompt-request-event.d.ts +1 -0
- package/ai-prompt/views/command-view.component.d.ts +1 -1
- package/ai-prompt/views/custom-view.component.d.ts +1 -1
- package/ai-prompt/views/output-view.component.d.ts +1 -1
- package/ai-prompt/views/prompt-view.component.d.ts +1 -1
- package/esm2020/ai-prompt/aiprompt.component.mjs +4 -4
- package/esm2020/ai-prompt/common/output-card.component.mjs +10 -0
- package/esm2020/ai-prompt/localization/custom-messages.component.mjs +2 -1
- package/esm2020/ai-prompt/views/command-view.component.mjs +1 -1
- package/esm2020/ai-prompt/views/custom-view.component.mjs +1 -1
- package/esm2020/ai-prompt/views/output-view.component.mjs +1 -1
- package/esm2020/ai-prompt/views/prompt-view.component.mjs +1 -1
- package/esm2020/package-metadata.mjs +2 -2
- package/fesm2015/progress-kendo-angular-conversational-ui.mjs +23 -11
- package/fesm2020/progress-kendo-angular-conversational-ui.mjs +22 -11
- package/package.json +10 -10
@@ -12,7 +12,7 @@ import { AIPromptToolbarActionsDirective } from "./templates/toolbar-actions.tem
|
|
12
12
|
import { ToolbarNavigationService } from "./common/toolbar-navigation.service";
|
13
13
|
import * as i0 from "@angular/core";
|
14
14
|
/**
|
15
|
-
* Represents the Kendo UI AIPrompt component for Angular
|
15
|
+
* Represents the Kendo UI AIPrompt component for Angular.
|
16
16
|
*/
|
17
17
|
export declare class AIPromptComponent implements AfterViewInit, OnDestroy {
|
18
18
|
private localization;
|
@@ -79,7 +79,7 @@ export declare class AIPromptComponent implements AfterViewInit, OnDestroy {
|
|
79
79
|
ngAfterViewInit(): void;
|
80
80
|
ngOnDestroy(): void;
|
81
81
|
/**
|
82
|
-
* Focuses the first focusable element in the
|
82
|
+
* Focuses the first focusable element in the AIPrompt.
|
83
83
|
*/
|
84
84
|
focus(): void;
|
85
85
|
private subs;
|
@@ -2,6 +2,7 @@
|
|
2
2
|
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
|
+
import { OnInit } from '@angular/core';
|
5
6
|
import { LocalizationService } from '@progress/kendo-angular-l10n';
|
6
7
|
import { SVGIcon } from '@progress/kendo-svg-icons';
|
7
8
|
import { PromptOutput, PromptOutputRating } from '../models/prompt-output.interface';
|
@@ -10,7 +11,7 @@ import * as i0 from "@angular/core";
|
|
10
11
|
/**
|
11
12
|
* @hidden
|
12
13
|
*/
|
13
|
-
export declare class AIPromptOutputCardComponent {
|
14
|
+
export declare class AIPromptOutputCardComponent implements OnInit {
|
14
15
|
private localization;
|
15
16
|
private service;
|
16
17
|
hostClass: boolean;
|
@@ -20,6 +21,7 @@ export declare class AIPromptOutputCardComponent {
|
|
20
21
|
ariaKeyShortcuts: string;
|
21
22
|
promptOutput: PromptOutput;
|
22
23
|
constructor(localization: LocalizationService, service: AIPromptService);
|
24
|
+
ngOnInit(): void;
|
23
25
|
copyIcon: SVGIcon;
|
24
26
|
retryIcon: SVGIcon;
|
25
27
|
positiveRatingIcon: SVGIcon;
|
@@ -6,7 +6,8 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
6
6
|
import { Messages } from './messages';
|
7
7
|
import * as i0 from "@angular/core";
|
8
8
|
/**
|
9
|
-
* Custom component messages override default component messages.
|
9
|
+
* Custom component messages override the default component messages.
|
10
|
+
* ([see example]({% slug globalization_chat %}#toc-custom-messages)).
|
10
11
|
*/
|
11
12
|
export declare class AIPromptCustomMessagesComponent extends Messages {
|
12
13
|
protected service: LocalizationService;
|
@@ -6,6 +6,7 @@ import { AIPromptComponent } from "../aiprompt.component";
|
|
6
6
|
import { PromptCommand } from "./command.interface";
|
7
7
|
/**
|
8
8
|
* Arguments for the `commandExecute` event of the AIPrompt.
|
9
|
+
* ([see example]({% slug events_aiprompt %})).
|
9
10
|
*/
|
10
11
|
export interface CommandExecuteEvent {
|
11
12
|
/**
|
@@ -4,7 +4,7 @@
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
5
|
import { SVGIcon } from "@progress/kendo-svg-icons";
|
6
6
|
/**
|
7
|
-
* An interface for the
|
7
|
+
* An interface for the AIPrompt commands rendered in the Command View.
|
8
8
|
*/
|
9
9
|
export interface PromptCommand {
|
10
10
|
/**
|
@@ -3,7 +3,7 @@
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
5
5
|
/**
|
6
|
-
* An interface for the
|
6
|
+
* An interface for the AIPrompt outputs rendered in the Output View.
|
7
7
|
*/
|
8
8
|
export interface PromptOutput {
|
9
9
|
/**
|
@@ -36,6 +36,6 @@ export interface PromptOutput {
|
|
36
36
|
rating?: PromptOutputRating;
|
37
37
|
}
|
38
38
|
/**
|
39
|
-
* Represents the rating of the prompt
|
39
|
+
* Represents the rating of the prompt output.
|
40
40
|
*/
|
41
41
|
export declare type PromptOutputRating = "positive" | "negative";
|
@@ -9,7 +9,7 @@ import { AIPromptService } from '../common/aiprompt.service';
|
|
9
9
|
import { PanelBarItemModel, PanelBarItemClickEvent } from '@progress/kendo-angular-layout';
|
10
10
|
import * as i0 from "@angular/core";
|
11
11
|
/**
|
12
|
-
* The component for rendering the
|
12
|
+
* The component for rendering the AIPrompt Command View.
|
13
13
|
*/
|
14
14
|
export declare class CommandViewComponent extends BaseView implements OnInit {
|
15
15
|
private service;
|
@@ -7,7 +7,7 @@ import { LocalizationService } from '@progress/kendo-angular-l10n';
|
|
7
7
|
import { BaseView } from './base-view';
|
8
8
|
import * as i0 from "@angular/core";
|
9
9
|
/**
|
10
|
-
* The component for rendering
|
10
|
+
* The component for rendering an AIPrompt Custom View.
|
11
11
|
*/
|
12
12
|
export declare class CustomViewComponent extends BaseView {
|
13
13
|
constructor(localization: LocalizationService);
|
@@ -8,7 +8,7 @@ import { PromptOutput } from '../models/prompt-output.interface';
|
|
8
8
|
import { AIPromptService } from '../common/aiprompt.service';
|
9
9
|
import * as i0 from "@angular/core";
|
10
10
|
/**
|
11
|
-
* The component for rendering the
|
11
|
+
* The component for rendering the AIPrompt Output View.
|
12
12
|
*/
|
13
13
|
export declare class OutputViewComponent extends BaseView {
|
14
14
|
private service;
|
@@ -8,7 +8,7 @@ import { BaseView } from './base-view';
|
|
8
8
|
import { AIPromptService } from '../common/aiprompt.service';
|
9
9
|
import * as i0 from "@angular/core";
|
10
10
|
/**
|
11
|
-
* The component for rendering the
|
11
|
+
* The component for rendering the AIPrompt Prompt View.
|
12
12
|
*/
|
13
13
|
export declare class PromptViewComponent extends BaseView {
|
14
14
|
private service;
|
@@ -21,7 +21,7 @@ import * as i5 from "./localization/localized-messages.directive";
|
|
21
21
|
import * as i6 from "@angular/common";
|
22
22
|
import * as i7 from "./common/toolbar-focusable.directive";
|
23
23
|
/**
|
24
|
-
* Represents the Kendo UI AIPrompt component for Angular
|
24
|
+
* Represents the Kendo UI AIPrompt component for Angular.
|
25
25
|
*/
|
26
26
|
export class AIPromptComponent {
|
27
27
|
constructor(localization, service, navigationService, ngZone) {
|
@@ -123,7 +123,7 @@ export class AIPromptComponent {
|
|
123
123
|
this.subs.unsubscribe();
|
124
124
|
}
|
125
125
|
/**
|
126
|
-
* Focuses the first focusable element in the
|
126
|
+
* Focuses the first focusable element in the AIPrompt.
|
127
127
|
*/
|
128
128
|
focus() {
|
129
129
|
this.navigationService.focusFirst();
|
@@ -191,7 +191,7 @@ AIPromptComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
191
191
|
outputView="Output"
|
192
192
|
i18n-generateOutput="kendo.aiprompt.generateOutput|The text for the Generate button in the Prompt view."
|
193
193
|
generateOutput="Generate"
|
194
|
-
i18n-promptPlaceholder="kendo.aiprompt.promptPlaceholder|The placeholder text for the Prompt
|
194
|
+
i18n-promptPlaceholder="kendo.aiprompt.promptPlaceholder|The placeholder text for the Prompt View text area."
|
195
195
|
promptPlaceholder="Ask or generate content with AI"
|
196
196
|
i18n-copyOutput="kendo.aiprompt.copyOutput|The Copy button text in each Output view card."
|
197
197
|
copyOutput="Copy"
|
@@ -267,7 +267,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
267
267
|
outputView="Output"
|
268
268
|
i18n-generateOutput="kendo.aiprompt.generateOutput|The text for the Generate button in the Prompt view."
|
269
269
|
generateOutput="Generate"
|
270
|
-
i18n-promptPlaceholder="kendo.aiprompt.promptPlaceholder|The placeholder text for the Prompt
|
270
|
+
i18n-promptPlaceholder="kendo.aiprompt.promptPlaceholder|The placeholder text for the Prompt View text area."
|
271
271
|
promptPlaceholder="Ask or generate content with AI"
|
272
272
|
i18n-copyOutput="kendo.aiprompt.copyOutput|The Copy button text in each Output view card."
|
273
273
|
copyOutput="Copy"
|
@@ -32,6 +32,16 @@ export class AIPromptOutputCardComponent {
|
|
32
32
|
get ariaDescribedBy() {
|
33
33
|
return this.titleId;
|
34
34
|
}
|
35
|
+
ngOnInit() {
|
36
|
+
if (this.promptOutput?.rating === 'positive') {
|
37
|
+
this.positiveRatingIcon = thumbUpIcon;
|
38
|
+
this.negativeRatingIcon = thumbDownOutlineIcon;
|
39
|
+
}
|
40
|
+
else if (this.promptOutput?.rating === 'negative') {
|
41
|
+
this.negativeRatingIcon = thumbDownIcon;
|
42
|
+
this.positiveRatingIcon = thumbUpOutlineIcon;
|
43
|
+
}
|
44
|
+
}
|
35
45
|
messageFor(text) {
|
36
46
|
return this.localization.get(text);
|
37
47
|
}
|
@@ -8,7 +8,8 @@ import { Messages } from './messages';
|
|
8
8
|
import * as i0 from "@angular/core";
|
9
9
|
import * as i1 from "@progress/kendo-angular-l10n";
|
10
10
|
/**
|
11
|
-
* Custom component messages override default component messages.
|
11
|
+
* Custom component messages override the default component messages.
|
12
|
+
* ([see example]({% slug globalization_chat %}#toc-custom-messages)).
|
12
13
|
*/
|
13
14
|
export class AIPromptCustomMessagesComponent extends Messages {
|
14
15
|
constructor(service) {
|
@@ -11,7 +11,7 @@ import * as i1 from "@progress/kendo-angular-l10n";
|
|
11
11
|
import * as i2 from "../common/aiprompt.service";
|
12
12
|
import * as i3 from "@progress/kendo-angular-layout";
|
13
13
|
/**
|
14
|
-
* The component for rendering the
|
14
|
+
* The component for rendering the AIPrompt Command View.
|
15
15
|
*/
|
16
16
|
export class CommandViewComponent extends BaseView {
|
17
17
|
constructor(localization, service) {
|
@@ -8,7 +8,7 @@ import { BaseView } from './base-view';
|
|
8
8
|
import * as i0 from "@angular/core";
|
9
9
|
import * as i1 from "@progress/kendo-angular-l10n";
|
10
10
|
/**
|
11
|
-
* The component for rendering
|
11
|
+
* The component for rendering an AIPrompt Custom View.
|
12
12
|
*/
|
13
13
|
export class CustomViewComponent extends BaseView {
|
14
14
|
constructor(localization) {
|
@@ -12,7 +12,7 @@ import * as i2 from "../common/aiprompt.service";
|
|
12
12
|
import * as i3 from "../common/output-card.component";
|
13
13
|
import * as i4 from "@angular/common";
|
14
14
|
/**
|
15
|
-
* The component for rendering the
|
15
|
+
* The component for rendering the AIPrompt Output View.
|
16
16
|
*/
|
17
17
|
export class OutputViewComponent extends BaseView {
|
18
18
|
constructor(localization, service) {
|
@@ -15,7 +15,7 @@ import * as i3 from "@progress/kendo-angular-inputs";
|
|
15
15
|
import * as i4 from "@progress/kendo-angular-buttons";
|
16
16
|
import * as i5 from "@angular/common";
|
17
17
|
/**
|
18
|
-
* The component for rendering the
|
18
|
+
* The component for rendering the AIPrompt Prompt View.
|
19
19
|
*/
|
20
20
|
export class PromptViewComponent extends BaseView {
|
21
21
|
constructor(localization, service) {
|
@@ -9,7 +9,7 @@ export const packageMetadata = {
|
|
9
9
|
name: '@progress/kendo-angular-conversational-ui',
|
10
10
|
productName: 'Kendo UI for Angular',
|
11
11
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
12
|
-
publishDate:
|
13
|
-
version: '15.0.2-develop.
|
12
|
+
publishDate: 1708345523,
|
13
|
+
version: '15.0.2-develop.11',
|
14
14
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
15
15
|
};
|
@@ -124,8 +124,8 @@ const packageMetadata = {
|
|
124
124
|
name: '@progress/kendo-angular-conversational-ui',
|
125
125
|
productName: 'Kendo UI for Angular',
|
126
126
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
127
|
-
publishDate:
|
128
|
-
version: '15.0.2-develop.
|
127
|
+
publishDate: 1708345523,
|
128
|
+
version: '15.0.2-develop.11',
|
129
129
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
130
130
|
};
|
131
131
|
|
@@ -1881,7 +1881,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
1881
1881
|
}] });
|
1882
1882
|
|
1883
1883
|
/**
|
1884
|
-
* The component for rendering the
|
1884
|
+
* The component for rendering the AIPrompt Prompt View.
|
1885
1885
|
*/
|
1886
1886
|
class PromptViewComponent extends BaseView {
|
1887
1887
|
constructor(localization, service) {
|
@@ -2033,6 +2033,17 @@ class AIPromptOutputCardComponent {
|
|
2033
2033
|
get ariaDescribedBy() {
|
2034
2034
|
return this.titleId;
|
2035
2035
|
}
|
2036
|
+
ngOnInit() {
|
2037
|
+
var _a, _b;
|
2038
|
+
if (((_a = this.promptOutput) === null || _a === void 0 ? void 0 : _a.rating) === 'positive') {
|
2039
|
+
this.positiveRatingIcon = thumbUpIcon;
|
2040
|
+
this.negativeRatingIcon = thumbDownOutlineIcon;
|
2041
|
+
}
|
2042
|
+
else if (((_b = this.promptOutput) === null || _b === void 0 ? void 0 : _b.rating) === 'negative') {
|
2043
|
+
this.negativeRatingIcon = thumbDownIcon;
|
2044
|
+
this.positiveRatingIcon = thumbUpOutlineIcon;
|
2045
|
+
}
|
2046
|
+
}
|
2036
2047
|
messageFor(text) {
|
2037
2048
|
return this.localization.get(text);
|
2038
2049
|
}
|
@@ -2200,7 +2211,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
2200
2211
|
}] } });
|
2201
2212
|
|
2202
2213
|
/**
|
2203
|
-
* The component for rendering the
|
2214
|
+
* The component for rendering the AIPrompt Output View.
|
2204
2215
|
*/
|
2205
2216
|
class OutputViewComponent extends BaseView {
|
2206
2217
|
constructor(localization, service) {
|
@@ -2443,7 +2454,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
2443
2454
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: ToolbarNavigationService }, { type: i0.Renderer2 }]; } });
|
2444
2455
|
|
2445
2456
|
/**
|
2446
|
-
* Represents the Kendo UI AIPrompt component for Angular
|
2457
|
+
* Represents the Kendo UI AIPrompt component for Angular.
|
2447
2458
|
*/
|
2448
2459
|
class AIPromptComponent {
|
2449
2460
|
constructor(localization, service, navigationService, ngZone) {
|
@@ -2545,7 +2556,7 @@ class AIPromptComponent {
|
|
2545
2556
|
this.subs.unsubscribe();
|
2546
2557
|
}
|
2547
2558
|
/**
|
2548
|
-
* Focuses the first focusable element in the
|
2559
|
+
* Focuses the first focusable element in the AIPrompt.
|
2549
2560
|
*/
|
2550
2561
|
focus() {
|
2551
2562
|
this.navigationService.focusFirst();
|
@@ -2615,7 +2626,7 @@ AIPromptComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
2615
2626
|
outputView="Output"
|
2616
2627
|
i18n-generateOutput="kendo.aiprompt.generateOutput|The text for the Generate button in the Prompt view."
|
2617
2628
|
generateOutput="Generate"
|
2618
|
-
i18n-promptPlaceholder="kendo.aiprompt.promptPlaceholder|The placeholder text for the Prompt
|
2629
|
+
i18n-promptPlaceholder="kendo.aiprompt.promptPlaceholder|The placeholder text for the Prompt View text area."
|
2619
2630
|
promptPlaceholder="Ask or generate content with AI"
|
2620
2631
|
i18n-copyOutput="kendo.aiprompt.copyOutput|The Copy button text in each Output view card."
|
2621
2632
|
copyOutput="Copy"
|
@@ -2691,7 +2702,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
2691
2702
|
outputView="Output"
|
2692
2703
|
i18n-generateOutput="kendo.aiprompt.generateOutput|The text for the Generate button in the Prompt view."
|
2693
2704
|
generateOutput="Generate"
|
2694
|
-
i18n-promptPlaceholder="kendo.aiprompt.promptPlaceholder|The placeholder text for the Prompt
|
2705
|
+
i18n-promptPlaceholder="kendo.aiprompt.promptPlaceholder|The placeholder text for the Prompt View text area."
|
2695
2706
|
promptPlaceholder="Ask or generate content with AI"
|
2696
2707
|
i18n-copyOutput="kendo.aiprompt.copyOutput|The Copy button text in each Output view card."
|
2697
2708
|
copyOutput="Copy"
|
@@ -2781,7 +2792,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
2781
2792
|
}] } });
|
2782
2793
|
|
2783
2794
|
/**
|
2784
|
-
* The component for rendering the
|
2795
|
+
* The component for rendering the AIPrompt Command View.
|
2785
2796
|
*/
|
2786
2797
|
class CommandViewComponent extends BaseView {
|
2787
2798
|
constructor(localization, service) {
|
@@ -2860,7 +2871,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
2860
2871
|
}], ctorParameters: function () { return [{ type: i1$1.LocalizationService }, { type: AIPromptService }]; } });
|
2861
2872
|
|
2862
2873
|
/**
|
2863
|
-
* Custom component messages override default component messages.
|
2874
|
+
* Custom component messages override the default component messages.
|
2875
|
+
* ([see example]({% slug globalization_chat %}#toc-custom-messages)).
|
2864
2876
|
*/
|
2865
2877
|
class AIPromptCustomMessagesComponent extends Messages {
|
2866
2878
|
constructor(service) {
|
@@ -2893,7 +2905,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
2893
2905
|
}], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
|
2894
2906
|
|
2895
2907
|
/**
|
2896
|
-
* The component for rendering
|
2908
|
+
* The component for rendering an AIPrompt Custom View.
|
2897
2909
|
*/
|
2898
2910
|
class CustomViewComponent extends BaseView {
|
2899
2911
|
constructor(localization) {
|
@@ -120,8 +120,8 @@ const packageMetadata = {
|
|
120
120
|
name: '@progress/kendo-angular-conversational-ui',
|
121
121
|
productName: 'Kendo UI for Angular',
|
122
122
|
productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
|
123
|
-
publishDate:
|
124
|
-
version: '15.0.2-develop.
|
123
|
+
publishDate: 1708345523,
|
124
|
+
version: '15.0.2-develop.11',
|
125
125
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
126
126
|
};
|
127
127
|
|
@@ -1876,7 +1876,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
1876
1876
|
}] });
|
1877
1877
|
|
1878
1878
|
/**
|
1879
|
-
* The component for rendering the
|
1879
|
+
* The component for rendering the AIPrompt Prompt View.
|
1880
1880
|
*/
|
1881
1881
|
class PromptViewComponent extends BaseView {
|
1882
1882
|
constructor(localization, service) {
|
@@ -2028,6 +2028,16 @@ class AIPromptOutputCardComponent {
|
|
2028
2028
|
get ariaDescribedBy() {
|
2029
2029
|
return this.titleId;
|
2030
2030
|
}
|
2031
|
+
ngOnInit() {
|
2032
|
+
if (this.promptOutput?.rating === 'positive') {
|
2033
|
+
this.positiveRatingIcon = thumbUpIcon;
|
2034
|
+
this.negativeRatingIcon = thumbDownOutlineIcon;
|
2035
|
+
}
|
2036
|
+
else if (this.promptOutput?.rating === 'negative') {
|
2037
|
+
this.negativeRatingIcon = thumbDownIcon;
|
2038
|
+
this.positiveRatingIcon = thumbUpOutlineIcon;
|
2039
|
+
}
|
2040
|
+
}
|
2031
2041
|
messageFor(text) {
|
2032
2042
|
return this.localization.get(text);
|
2033
2043
|
}
|
@@ -2195,7 +2205,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
2195
2205
|
}] } });
|
2196
2206
|
|
2197
2207
|
/**
|
2198
|
-
* The component for rendering the
|
2208
|
+
* The component for rendering the AIPrompt Output View.
|
2199
2209
|
*/
|
2200
2210
|
class OutputViewComponent extends BaseView {
|
2201
2211
|
constructor(localization, service) {
|
@@ -2436,7 +2446,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
2436
2446
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: ToolbarNavigationService }, { type: i0.Renderer2 }]; } });
|
2437
2447
|
|
2438
2448
|
/**
|
2439
|
-
* Represents the Kendo UI AIPrompt component for Angular
|
2449
|
+
* Represents the Kendo UI AIPrompt component for Angular.
|
2440
2450
|
*/
|
2441
2451
|
class AIPromptComponent {
|
2442
2452
|
constructor(localization, service, navigationService, ngZone) {
|
@@ -2538,7 +2548,7 @@ class AIPromptComponent {
|
|
2538
2548
|
this.subs.unsubscribe();
|
2539
2549
|
}
|
2540
2550
|
/**
|
2541
|
-
* Focuses the first focusable element in the
|
2551
|
+
* Focuses the first focusable element in the AIPrompt.
|
2542
2552
|
*/
|
2543
2553
|
focus() {
|
2544
2554
|
this.navigationService.focusFirst();
|
@@ -2606,7 +2616,7 @@ AIPromptComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
2606
2616
|
outputView="Output"
|
2607
2617
|
i18n-generateOutput="kendo.aiprompt.generateOutput|The text for the Generate button in the Prompt view."
|
2608
2618
|
generateOutput="Generate"
|
2609
|
-
i18n-promptPlaceholder="kendo.aiprompt.promptPlaceholder|The placeholder text for the Prompt
|
2619
|
+
i18n-promptPlaceholder="kendo.aiprompt.promptPlaceholder|The placeholder text for the Prompt View text area."
|
2610
2620
|
promptPlaceholder="Ask or generate content with AI"
|
2611
2621
|
i18n-copyOutput="kendo.aiprompt.copyOutput|The Copy button text in each Output view card."
|
2612
2622
|
copyOutput="Copy"
|
@@ -2682,7 +2692,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
2682
2692
|
outputView="Output"
|
2683
2693
|
i18n-generateOutput="kendo.aiprompt.generateOutput|The text for the Generate button in the Prompt view."
|
2684
2694
|
generateOutput="Generate"
|
2685
|
-
i18n-promptPlaceholder="kendo.aiprompt.promptPlaceholder|The placeholder text for the Prompt
|
2695
|
+
i18n-promptPlaceholder="kendo.aiprompt.promptPlaceholder|The placeholder text for the Prompt View text area."
|
2686
2696
|
promptPlaceholder="Ask or generate content with AI"
|
2687
2697
|
i18n-copyOutput="kendo.aiprompt.copyOutput|The Copy button text in each Output view card."
|
2688
2698
|
copyOutput="Copy"
|
@@ -2772,7 +2782,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
2772
2782
|
}] } });
|
2773
2783
|
|
2774
2784
|
/**
|
2775
|
-
* The component for rendering the
|
2785
|
+
* The component for rendering the AIPrompt Command View.
|
2776
2786
|
*/
|
2777
2787
|
class CommandViewComponent extends BaseView {
|
2778
2788
|
constructor(localization, service) {
|
@@ -2851,7 +2861,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
2851
2861
|
}], ctorParameters: function () { return [{ type: i1$1.LocalizationService }, { type: AIPromptService }]; } });
|
2852
2862
|
|
2853
2863
|
/**
|
2854
|
-
* Custom component messages override default component messages.
|
2864
|
+
* Custom component messages override the default component messages.
|
2865
|
+
* ([see example]({% slug globalization_chat %}#toc-custom-messages)).
|
2855
2866
|
*/
|
2856
2867
|
class AIPromptCustomMessagesComponent extends Messages {
|
2857
2868
|
constructor(service) {
|
@@ -2884,7 +2895,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
2884
2895
|
}], ctorParameters: function () { return [{ type: i1$1.LocalizationService }]; } });
|
2885
2896
|
|
2886
2897
|
/**
|
2887
|
-
* The component for rendering
|
2898
|
+
* The component for rendering an AIPrompt Custom View.
|
2888
2899
|
*/
|
2889
2900
|
class CustomViewComponent extends BaseView {
|
2890
2901
|
constructor(localization) {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@progress/kendo-angular-conversational-ui",
|
3
|
-
"version": "15.0.2-develop.
|
3
|
+
"version": "15.0.2-develop.11",
|
4
4
|
"description": "Kendo UI for Angular Conversational UI components",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
6
6
|
"author": "Progress",
|
@@ -24,19 +24,19 @@
|
|
24
24
|
"@angular/core": "13 - 17",
|
25
25
|
"@angular/platform-browser": "13 - 17",
|
26
26
|
"@progress/kendo-licensing": "^1.0.2",
|
27
|
-
"@progress/kendo-angular-buttons": "15.0.2-develop.
|
28
|
-
"@progress/kendo-angular-inputs": "15.0.2-develop.
|
29
|
-
"@progress/kendo-angular-layout": "15.0.2-develop.
|
30
|
-
"@progress/kendo-angular-icons": "15.0.2-develop.
|
31
|
-
"@progress/kendo-angular-common": "15.0.2-develop.
|
32
|
-
"@progress/kendo-angular-intl": "15.0.2-develop.
|
33
|
-
"@progress/kendo-angular-l10n": "15.0.2-develop.
|
34
|
-
"@progress/kendo-angular-popup": "15.0.2-develop.
|
27
|
+
"@progress/kendo-angular-buttons": "15.0.2-develop.11",
|
28
|
+
"@progress/kendo-angular-inputs": "15.0.2-develop.11",
|
29
|
+
"@progress/kendo-angular-layout": "15.0.2-develop.11",
|
30
|
+
"@progress/kendo-angular-icons": "15.0.2-develop.11",
|
31
|
+
"@progress/kendo-angular-common": "15.0.2-develop.11",
|
32
|
+
"@progress/kendo-angular-intl": "15.0.2-develop.11",
|
33
|
+
"@progress/kendo-angular-l10n": "15.0.2-develop.11",
|
34
|
+
"@progress/kendo-angular-popup": "15.0.2-develop.11",
|
35
35
|
"rxjs": "^6.5.3 || ^7.0.0"
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
38
|
"tslib": "^2.3.1",
|
39
|
-
"@progress/kendo-angular-schematics": "15.0.2-develop.
|
39
|
+
"@progress/kendo-angular-schematics": "15.0.2-develop.11"
|
40
40
|
},
|
41
41
|
"schematics": "./schematics/collection.json",
|
42
42
|
"module": "fesm2015/progress-kendo-angular-conversational-ui.mjs",
|