@progress/kendo-angular-conversational-ui 25.0.0-develop.12 → 25.0.0-develop.14
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/fesm2022/progress-kendo-angular-conversational-ui.mjs +2890 -301
- package/index.d.ts +965 -4
- package/package-metadata.mjs +2 -2
- package/package.json +16 -14
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
4
|
*-------------------------------------------------------------------------------------------*/
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { InjectionToken, Input, ViewChild, HostBinding, Inject, Directive, Injectable, Optional, forwardRef, EventEmitter, Output, ContentChild, ContentChildren, Component, isDevMode, ElementRef, ViewChildren, HostListener, ViewContainerRef, inject, SkipSelf, NgModule } from '@angular/core';
|
|
6
|
+
import { InjectionToken, Input, ViewChild, HostBinding, Inject, Directive, Injectable, Optional, forwardRef, EventEmitter, Output, ContentChild, ContentChildren, Component, isDevMode, ElementRef, ViewChildren, HostListener, ViewContainerRef, inject, SkipSelf, signal, ChangeDetectionStrategy, computed, effect, RendererStyleFlags2, NgModule } from '@angular/core';
|
|
7
7
|
import { IconWrapperComponent, IconsService } from '@progress/kendo-angular-icons';
|
|
8
8
|
import * as i1$2 from '@progress/kendo-angular-popup';
|
|
9
9
|
import { PopupComponent, KENDO_POPUP, PopupService } from '@progress/kendo-angular-popup';
|
|
10
10
|
import { isPresent, normalizeKeys, Keys, focusableSelector, KENDO_WEBMCP_HOST, guid, getter, isDocumentAvailable, hasObservers, EventsOutsideAngularDirective, closest as closest$1, ResizeSensorComponent, getLicenseMessage, shouldShowValidationUI, isChanged, processCssValue, WatermarkOverlayComponent, ResizeBatchService } from '@progress/kendo-angular-common';
|
|
11
11
|
import { DialogContainerService, DialogService, WindowService, WindowContainerService } from '@progress/kendo-angular-dialog';
|
|
12
|
-
import { NgTemplateOutlet, NgClass } from '@angular/common';
|
|
12
|
+
import { NgTemplateOutlet, NgClass, JsonPipe } from '@angular/common';
|
|
13
13
|
import { Subject, Subscription, fromEvent } from 'rxjs';
|
|
14
|
-
import { moreHorizontalIcon, commentIcon, sparklesIcon, stopIcon, thumbUpIcon, thumbDownIcon, copyIcon, arrowRotateCwIcon, chevronUpIcon, chevronDownIcon, arrowUpIcon, paperclipIcon, undoIcon, downloadIcon, xCircleIcon, moreVerticalIcon, xIcon, chevronLeftIcon, chevronRightIcon, warningTriangleIcon, pinIcon, arrowDownIcon, cancelIcon, menuIcon, paperPlaneIcon } from '@progress/kendo-svg-icons';
|
|
14
|
+
import { moreHorizontalIcon, commentIcon, sparklesIcon, stopIcon, thumbUpIcon, thumbDownIcon, copyIcon, arrowRotateCwIcon, chevronUpIcon, chevronDownIcon, arrowUpIcon, paperclipIcon, undoIcon, downloadIcon, xCircleIcon, moreVerticalIcon, xIcon, chevronLeftIcon, chevronRightIcon, warningTriangleIcon, pinIcon, arrowDownIcon, cancelIcon, menuIcon, paperPlaneIcon, exclamationCircleIcon, clockIcon, checkCircleIcon, wrenchIcon, arrowLeftIcon, arrowRightIcon, globeIcon } from '@progress/kendo-svg-icons';
|
|
15
15
|
import * as i1 from '@progress/kendo-angular-l10n';
|
|
16
16
|
import { ComponentMessages, LocalizationService, L10N_PREFIX } from '@progress/kendo-angular-l10n';
|
|
17
17
|
import { validatePackage } from '@progress/kendo-licensing';
|
|
18
18
|
import * as i2 from '@progress/kendo-angular-buttons';
|
|
19
|
-
import { ButtonComponent, FloatingActionButtonComponent, SpeechToTextButtonComponent, DropDownButtonComponent, KENDO_BUTTONS, ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
19
|
+
import { ButtonComponent, FloatingActionButtonComponent, SpeechToTextButtonComponent, DropDownButtonComponent, KENDO_BUTTONS, ButtonsModule, ChipComponent, ButtonGroupComponent } from '@progress/kendo-angular-buttons';
|
|
20
20
|
import { take, debounceTime } from 'rxjs/operators';
|
|
21
21
|
import * as i5 from '@progress/kendo-angular-layout';
|
|
22
|
-
import { PanelBarComponent, KENDO_CARD } from '@progress/kendo-angular-layout';
|
|
22
|
+
import { PanelBarComponent, KENDO_CARD, CardComponent, CardBodyComponent, CardActionsComponent } from '@progress/kendo-angular-layout';
|
|
23
23
|
import * as i3 from '@progress/kendo-angular-inputs';
|
|
24
24
|
import { TextAreaComponent, TextAreaSuffixComponent, KENDO_TEXTAREA } from '@progress/kendo-angular-inputs';
|
|
25
25
|
import * as i4 from '@progress/kendo-angular-menu';
|
|
@@ -28,6 +28,8 @@ import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
|
28
28
|
import { FileSelectComponent, fileSVGGroupIcon, fileGroupClass, getTotalFilesSizeMessage } from '@progress/kendo-angular-upload';
|
|
29
29
|
import * as i1$1 from '@progress/kendo-angular-intl';
|
|
30
30
|
import { ToolBarComponent, ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
31
|
+
import { BadgeComponent } from '@progress/kendo-angular-indicators';
|
|
32
|
+
import { PopoverComponent, PopoverAnchorDirective, PopoverTitleTemplateDirective, PopoverBodyTemplateDirective } from '@progress/kendo-angular-tooltip';
|
|
31
33
|
|
|
32
34
|
/**
|
|
33
35
|
* @hidden
|
|
@@ -185,10 +187,10 @@ class BaseView {
|
|
|
185
187
|
_buttonText;
|
|
186
188
|
_icon;
|
|
187
189
|
_svgIcon;
|
|
188
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
189
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
190
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: BaseView, deps: [{ token: MY_TOKEN }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
191
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: BaseView, isStandalone: true, 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 });
|
|
190
192
|
}
|
|
191
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: BaseView, decorators: [{
|
|
192
194
|
type: Directive
|
|
193
195
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
194
196
|
type: Inject,
|
|
@@ -215,8 +217,8 @@ const packageMetadata = {
|
|
|
215
217
|
productName: 'Kendo UI for Angular',
|
|
216
218
|
productCode: 'KENDOUIANGULAR',
|
|
217
219
|
productCodes: ['KENDOUIANGULAR'],
|
|
218
|
-
publishDate:
|
|
219
|
-
version: '25.0.0-develop.
|
|
220
|
+
publishDate: 1785432725,
|
|
221
|
+
version: '25.0.0-develop.14',
|
|
220
222
|
licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/'
|
|
221
223
|
};
|
|
222
224
|
|
|
@@ -279,10 +281,10 @@ class AIPromptService {
|
|
|
279
281
|
});
|
|
280
282
|
return newArr.concat(this.promptCommands);
|
|
281
283
|
}
|
|
282
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
283
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
284
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AIPromptService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
285
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AIPromptService });
|
|
284
286
|
}
|
|
285
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
287
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AIPromptService, decorators: [{
|
|
286
288
|
type: Injectable
|
|
287
289
|
}] });
|
|
288
290
|
|
|
@@ -307,10 +309,10 @@ class AIPromptToolbarActionsDirective {
|
|
|
307
309
|
constructor(templateRef) {
|
|
308
310
|
this.templateRef = templateRef;
|
|
309
311
|
}
|
|
310
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
311
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
312
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AIPromptToolbarActionsDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
313
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: AIPromptToolbarActionsDirective, isStandalone: true, selector: "[kendoAIPromptToolbarActionsTemplate]", ngImport: i0 });
|
|
312
314
|
}
|
|
313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
315
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AIPromptToolbarActionsDirective, decorators: [{
|
|
314
316
|
type: Directive,
|
|
315
317
|
args: [{
|
|
316
318
|
selector: '[kendoAIPromptToolbarActionsTemplate]',
|
|
@@ -362,10 +364,10 @@ class ToolbarNavigationService {
|
|
|
362
364
|
focusFirst() {
|
|
363
365
|
this.focusableElements[this.currentFocusedIndex].activate();
|
|
364
366
|
}
|
|
365
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
366
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
367
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ToolbarNavigationService, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
368
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ToolbarNavigationService });
|
|
367
369
|
}
|
|
368
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
370
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ToolbarNavigationService, decorators: [{
|
|
369
371
|
type: Injectable
|
|
370
372
|
}], ctorParameters: () => [{ type: i1.LocalizationService }] });
|
|
371
373
|
|
|
@@ -422,10 +424,10 @@ class AIPromptToolbarFocusableDirective {
|
|
|
422
424
|
clickHandler = () => {
|
|
423
425
|
this.navigationService.setActiveIndex(this);
|
|
424
426
|
};
|
|
425
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
426
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
427
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AIPromptToolbarFocusableDirective, deps: [{ token: i0.ElementRef }, { token: ToolbarNavigationService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
428
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: AIPromptToolbarFocusableDirective, isStandalone: true, selector: "[kendoAIPromptToolbarFocusable]", ngImport: i0 });
|
|
427
429
|
}
|
|
428
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
430
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AIPromptToolbarFocusableDirective, decorators: [{
|
|
429
431
|
type: Directive,
|
|
430
432
|
args: [{
|
|
431
433
|
selector: '[kendoAIPromptToolbarFocusable]',
|
|
@@ -481,10 +483,10 @@ let Messages$3 = class Messages extends ComponentMessages {
|
|
|
481
483
|
* Sets the aria-label for the **Toolbar** element.
|
|
482
484
|
*/
|
|
483
485
|
toolbarLabel;
|
|
484
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
485
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
486
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
487
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: Messages, isStandalone: true, inputs: { promptView: "promptView", outputView: "outputView", generateOutput: "generateOutput", promptPlaceholder: "promptPlaceholder", copyOutput: "copyOutput", retryGeneration: "retryGeneration", outputTitle: "outputTitle", outputRetryTitle: "outputRetryTitle", promptSuggestions: "promptSuggestions", speechToTextButton: "speechToTextButton", toolbarLabel: "toolbarLabel" }, usesInheritance: true, ngImport: i0 });
|
|
486
488
|
};
|
|
487
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: Messages$3, decorators: [{
|
|
488
490
|
type: Directive
|
|
489
491
|
}], propDecorators: { promptView: [{
|
|
490
492
|
type: Input
|
|
@@ -513,27 +515,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
513
515
|
/**
|
|
514
516
|
* @hidden
|
|
515
517
|
*/
|
|
516
|
-
let LocalizedMessagesDirective$
|
|
518
|
+
let LocalizedMessagesDirective$4 = class LocalizedMessagesDirective extends Messages$3 {
|
|
517
519
|
service;
|
|
518
520
|
constructor(service) {
|
|
519
521
|
super();
|
|
520
522
|
this.service = service;
|
|
521
523
|
}
|
|
522
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
523
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
524
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
525
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoAIPromptLocalizedMessages]", providers: [
|
|
524
526
|
{
|
|
525
527
|
provide: Messages$3,
|
|
526
528
|
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
527
529
|
}
|
|
528
530
|
], usesInheritance: true, ngImport: i0 });
|
|
529
531
|
};
|
|
530
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
532
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: LocalizedMessagesDirective$4, decorators: [{
|
|
531
533
|
type: Directive,
|
|
532
534
|
args: [{
|
|
533
535
|
providers: [
|
|
534
536
|
{
|
|
535
537
|
provide: Messages$3,
|
|
536
|
-
useExisting: forwardRef(() => LocalizedMessagesDirective$
|
|
538
|
+
useExisting: forwardRef(() => LocalizedMessagesDirective$4)
|
|
537
539
|
}
|
|
538
540
|
],
|
|
539
541
|
selector: '[kendoAIPromptLocalizedMessages]',
|
|
@@ -558,10 +560,10 @@ class AIPromptOutputTemplateDirective {
|
|
|
558
560
|
constructor(templateRef) {
|
|
559
561
|
this.templateRef = templateRef;
|
|
560
562
|
}
|
|
561
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
562
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
563
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AIPromptOutputTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
564
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: AIPromptOutputTemplateDirective, isStandalone: true, selector: "[kendoAIPromptOutputTemplate]", ngImport: i0 });
|
|
563
565
|
}
|
|
564
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
566
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AIPromptOutputTemplateDirective, decorators: [{
|
|
565
567
|
type: Directive,
|
|
566
568
|
args: [{
|
|
567
569
|
selector: '[kendoAIPromptOutputTemplate]',
|
|
@@ -586,10 +588,10 @@ class AIPromptOutputBodyTemplateDirective {
|
|
|
586
588
|
constructor(templateRef) {
|
|
587
589
|
this.templateRef = templateRef;
|
|
588
590
|
}
|
|
589
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
590
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
591
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AIPromptOutputBodyTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
592
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: AIPromptOutputBodyTemplateDirective, isStandalone: true, selector: "[kendoAIPromptOutputBodyTemplate]", ngImport: i0 });
|
|
591
593
|
}
|
|
592
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
594
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AIPromptOutputBodyTemplateDirective, decorators: [{
|
|
593
595
|
type: Directive,
|
|
594
596
|
args: [{
|
|
595
597
|
selector: '[kendoAIPromptOutputBodyTemplate]',
|
|
@@ -873,8 +875,8 @@ class AIPromptComponent {
|
|
|
873
875
|
};
|
|
874
876
|
this.promptRequest.emit(eventArgs);
|
|
875
877
|
}
|
|
876
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
877
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
878
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AIPromptComponent, deps: [{ token: i1.LocalizationService }, { token: AIPromptService }, { token: ToolbarNavigationService }, { token: i0.NgZone }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
879
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: AIPromptComponent, isStandalone: true, selector: "kendo-aiprompt", inputs: { activeView: "activeView", promptCommands: "promptCommands", promptSuggestions: "promptSuggestions", promptOutputs: "promptOutputs", showOutputRating: "showOutputRating", streaming: "streaming", speechToTextButton: "speechToTextButton", textAreaSettings: "textAreaSettings", generateButtonSVGIcon: "generateButtonSVGIcon", generateButtonIcon: "generateButtonIcon", disabledGenerateButton: "disabledGenerateButton" }, outputs: { activeViewChange: "activeViewChange", promptRequest: "promptRequest", commandExecute: "commandExecute", outputCopy: "outputCopy", outputRatingChange: "outputRatingChange", promptRequestCancel: "promptRequestCancel" }, host: { properties: { "class.k-prompt": "this.hostClasses", "attr.dir": "this.dirAttr" } }, providers: [
|
|
878
880
|
LocalizationService,
|
|
879
881
|
AIPromptService,
|
|
880
882
|
ToolbarNavigationService,
|
|
@@ -971,9 +973,9 @@ class AIPromptComponent {
|
|
|
971
973
|
</div>
|
|
972
974
|
</div>
|
|
973
975
|
}
|
|
974
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective$
|
|
976
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective$4, selector: "[kendoAIPromptLocalizedMessages]" }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: AIPromptToolbarFocusableDirective, selector: "[kendoAIPromptToolbarFocusable]" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: FloatingActionButtonComponent, selector: "kendo-floatingactionbutton", inputs: ["themeColor", "size", "rounded", "disabled", "align", "offset", "positionMode", "icon", "svgIcon", "iconClass", "buttonClass", "dialClass", "text", "dialItemAnimation", "tabIndex", "dialItems"], outputs: ["blur", "focus", "dialItemClick", "open", "close"] }] });
|
|
975
977
|
}
|
|
976
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
978
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AIPromptComponent, decorators: [{
|
|
977
979
|
type: Component,
|
|
978
980
|
args: [{
|
|
979
981
|
exportAs: 'kendoAIPrompt',
|
|
@@ -1078,7 +1080,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
1078
1080
|
}
|
|
1079
1081
|
`,
|
|
1080
1082
|
standalone: true,
|
|
1081
|
-
imports: [LocalizedMessagesDirective$
|
|
1083
|
+
imports: [LocalizedMessagesDirective$4, ButtonComponent, AIPromptToolbarFocusableDirective, NgTemplateOutlet, FloatingActionButtonComponent]
|
|
1082
1084
|
}]
|
|
1083
1085
|
}], ctorParameters: () => [{ type: i1.LocalizationService }, { type: AIPromptService }, { type: ToolbarNavigationService }, { type: i0.NgZone }, { type: i0.ElementRef }, { type: i0.Renderer2 }], propDecorators: { hostClasses: [{
|
|
1084
1086
|
type: HostBinding,
|
|
@@ -1188,8 +1190,8 @@ class CommandViewComponent extends BaseView {
|
|
|
1188
1190
|
children: c.children ? this.getPanelBarItems(c.children) : null
|
|
1189
1191
|
}));
|
|
1190
1192
|
}
|
|
1191
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1192
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
1193
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: CommandViewComponent, deps: [{ token: i1.LocalizationService }, { token: AIPromptService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1194
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: CommandViewComponent, isStandalone: true, selector: "kendo-aiprompt-command-view", providers: [{
|
|
1193
1195
|
provide: BaseView,
|
|
1194
1196
|
useExisting: forwardRef(() => CommandViewComponent)
|
|
1195
1197
|
}], usesInheritance: true, ngImport: i0, template: `
|
|
@@ -1203,7 +1205,7 @@ class CommandViewComponent extends BaseView {
|
|
|
1203
1205
|
</ng-template>
|
|
1204
1206
|
`, 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"] }] });
|
|
1205
1207
|
}
|
|
1206
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: CommandViewComponent, decorators: [{
|
|
1207
1209
|
type: Component,
|
|
1208
1210
|
args: [{
|
|
1209
1211
|
selector: 'kendo-aiprompt-command-view',
|
|
@@ -1249,15 +1251,15 @@ class AIPromptCustomMessagesComponent extends Messages$3 {
|
|
|
1249
1251
|
get override() {
|
|
1250
1252
|
return true;
|
|
1251
1253
|
}
|
|
1252
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1253
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
1254
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AIPromptCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1255
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: AIPromptCustomMessagesComponent, isStandalone: true, selector: "kendo-aiprompt-messages", providers: [
|
|
1254
1256
|
{
|
|
1255
1257
|
provide: Messages$3,
|
|
1256
1258
|
useExisting: forwardRef(() => AIPromptCustomMessagesComponent)
|
|
1257
1259
|
}
|
|
1258
1260
|
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
1259
1261
|
}
|
|
1260
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1262
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AIPromptCustomMessagesComponent, decorators: [{
|
|
1261
1263
|
type: Component,
|
|
1262
1264
|
args: [{
|
|
1263
1265
|
providers: [
|
|
@@ -1293,13 +1295,13 @@ class CustomViewComponent extends BaseView {
|
|
|
1293
1295
|
* Sets the content of the Custom view as a template reference.
|
|
1294
1296
|
*/
|
|
1295
1297
|
viewTemplate;
|
|
1296
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1297
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
1298
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: CustomViewComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1299
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: CustomViewComponent, isStandalone: true, selector: "kendo-aiprompt-custom-view", inputs: { viewTemplate: "viewTemplate" }, providers: [{
|
|
1298
1300
|
provide: BaseView,
|
|
1299
1301
|
useExisting: forwardRef(() => CustomViewComponent)
|
|
1300
1302
|
}], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
1301
1303
|
}
|
|
1302
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: CustomViewComponent, decorators: [{
|
|
1303
1305
|
type: Component,
|
|
1304
1306
|
args: [{
|
|
1305
1307
|
selector: 'kendo-aiprompt-custom-view',
|
|
@@ -1405,8 +1407,8 @@ class AIPromptOutputCardComponent {
|
|
|
1405
1407
|
get customBodyTemplate() {
|
|
1406
1408
|
return this.service.outputBodyTemplate?.templateRef;
|
|
1407
1409
|
}
|
|
1408
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1409
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
1410
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AIPromptOutputCardComponent, deps: [{ token: i1.LocalizationService }, { token: AIPromptService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1411
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: AIPromptOutputCardComponent, isStandalone: true, selector: "[kendoAIPromptOutputCard]", inputs: { promptOutput: "promptOutput" }, host: { properties: { "class.k-card": "this.hostClass", "attr.role": "this.listItemRole", "attr.tabindex": "this.tabIndex", "attr.aria-describedby": "this.ariaDescribedBy", "attr.aria-keyshortcuts": "this.ariaKeyShortcuts" } }, ngImport: i0, template: `
|
|
1410
1412
|
<div class="k-card-header">
|
|
1411
1413
|
<div
|
|
1412
1414
|
class="k-card-title"
|
|
@@ -1454,7 +1456,7 @@ class AIPromptOutputCardComponent {
|
|
|
1454
1456
|
</div>
|
|
1455
1457
|
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
1456
1458
|
}
|
|
1457
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1459
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AIPromptOutputCardComponent, decorators: [{
|
|
1458
1460
|
type: Component,
|
|
1459
1461
|
args: [{
|
|
1460
1462
|
selector: '[kendoAIPromptOutputCard]',
|
|
@@ -1555,8 +1557,8 @@ class OutputViewComponent extends BaseView {
|
|
|
1555
1557
|
get customTemplate() {
|
|
1556
1558
|
return this.service.outputTemplate?.templateRef;
|
|
1557
1559
|
}
|
|
1558
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1559
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
1560
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: OutputViewComponent, deps: [{ token: i1.LocalizationService }, { token: AIPromptService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1561
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: OutputViewComponent, isStandalone: true, selector: "kendo-aiprompt-output-view", providers: [{
|
|
1560
1562
|
provide: BaseView,
|
|
1561
1563
|
useExisting: forwardRef(() => OutputViewComponent)
|
|
1562
1564
|
}], usesInheritance: true, ngImport: i0, template: `
|
|
@@ -1576,7 +1578,7 @@ class OutputViewComponent extends BaseView {
|
|
|
1576
1578
|
</ng-template>
|
|
1577
1579
|
`, isInline: true, dependencies: [{ kind: "component", type: AIPromptOutputCardComponent, selector: "[kendoAIPromptOutputCard]", inputs: ["promptOutput"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
1578
1580
|
}
|
|
1579
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1581
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: OutputViewComponent, decorators: [{
|
|
1580
1582
|
type: Component,
|
|
1581
1583
|
args: [{
|
|
1582
1584
|
selector: 'kendo-aiprompt-output-view',
|
|
@@ -1695,8 +1697,8 @@ class PromptViewComponent extends BaseView {
|
|
|
1695
1697
|
console.error('Speech to Text error:', event.errorMessage);
|
|
1696
1698
|
}
|
|
1697
1699
|
}
|
|
1698
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1699
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
1700
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptViewComponent, deps: [{ token: i1.LocalizationService }, { token: AIPromptService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1701
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: PromptViewComponent, isStandalone: true, selector: "kendo-aiprompt-prompt-view", providers: [
|
|
1700
1702
|
{
|
|
1701
1703
|
provide: BaseView,
|
|
1702
1704
|
useExisting: forwardRef(() => PromptViewComponent)
|
|
@@ -1783,7 +1785,7 @@ class PromptViewComponent extends BaseView {
|
|
|
1783
1785
|
</ng-template>
|
|
1784
1786
|
`, isInline: true, dependencies: [{ kind: "component", type: TextAreaComponent, selector: "kendo-textarea", inputs: ["focusableId", "flow", "inputAttributes", "adornmentsOrientation", "rows", "cols", "maxlength", "maxResizableRows", "tabindex", "tabIndex", "resizable", "size", "rounded", "fillMode", "showPrefixSeparator", "showSuffixSeparator"], outputs: ["focus", "blur", "valueChange"], exportAs: ["kendoTextArea"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: TextAreaSuffixComponent, selector: "kendo-textarea-suffix", inputs: ["flow", "orientation"], exportAs: ["kendoTextAreaSuffix"] }, { kind: "component", type: SpeechToTextButtonComponent, selector: "button[kendoSpeechToTextButton]", inputs: ["disabled", "size", "rounded", "fillMode", "themeColor", "integrationMode", "lang", "continuous", "interimResults", "maxAlternatives"], outputs: ["start", "end", "result", "error", "click"], exportAs: ["kendoSpeechToTextButton"] }] });
|
|
1785
1787
|
}
|
|
1786
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1788
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptViewComponent, decorators: [{
|
|
1787
1789
|
type: Component,
|
|
1788
1790
|
args: [{
|
|
1789
1791
|
selector: 'kendo-aiprompt-prompt-view',
|
|
@@ -1926,10 +1928,10 @@ class AttachmentTemplateDirective {
|
|
|
1926
1928
|
constructor(templateRef) {
|
|
1927
1929
|
this.templateRef = templateRef;
|
|
1928
1930
|
}
|
|
1929
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1930
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
1931
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AttachmentTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1932
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: AttachmentTemplateDirective, isStandalone: true, selector: "[kendoChatAttachmentTemplate]", ngImport: i0 });
|
|
1931
1933
|
}
|
|
1932
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1934
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AttachmentTemplateDirective, decorators: [{
|
|
1933
1935
|
type: Directive,
|
|
1934
1936
|
args: [{
|
|
1935
1937
|
selector: '[kendoChatAttachmentTemplate]',
|
|
@@ -1960,10 +1962,10 @@ class MessageContentTemplateDirective {
|
|
|
1960
1962
|
constructor(templateRef) {
|
|
1961
1963
|
this.templateRef = templateRef;
|
|
1962
1964
|
}
|
|
1963
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1964
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
1965
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: MessageContentTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1966
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: MessageContentTemplateDirective, isStandalone: true, selector: "[kendoChatMessageContentTemplate]", ngImport: i0 });
|
|
1965
1967
|
}
|
|
1966
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
1968
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: MessageContentTemplateDirective, decorators: [{
|
|
1967
1969
|
type: Directive,
|
|
1968
1970
|
args: [{
|
|
1969
1971
|
selector: '[kendoChatMessageContentTemplate]',
|
|
@@ -1994,10 +1996,10 @@ class MessageTemplateDirective {
|
|
|
1994
1996
|
constructor(templateRef) {
|
|
1995
1997
|
this.templateRef = templateRef;
|
|
1996
1998
|
}
|
|
1997
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
1998
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
1999
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: MessageTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2000
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: MessageTemplateDirective, isStandalone: true, selector: "[kendoChatMessageTemplate]", ngImport: i0 });
|
|
1999
2001
|
}
|
|
2000
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2002
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: MessageTemplateDirective, decorators: [{
|
|
2001
2003
|
type: Directive,
|
|
2002
2004
|
args: [{
|
|
2003
2005
|
selector: '[kendoChatMessageTemplate]',
|
|
@@ -2027,10 +2029,10 @@ class ChatUserStatusTemplateDirective {
|
|
|
2027
2029
|
constructor(templateRef) {
|
|
2028
2030
|
this.templateRef = templateRef;
|
|
2029
2031
|
}
|
|
2030
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2031
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
2032
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatUserStatusTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2033
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: ChatUserStatusTemplateDirective, isStandalone: true, selector: "[kendoChatUserStatusTemplate]", ngImport: i0 });
|
|
2032
2034
|
}
|
|
2033
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2035
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatUserStatusTemplateDirective, decorators: [{
|
|
2034
2036
|
type: Directive,
|
|
2035
2037
|
args: [{
|
|
2036
2038
|
selector: '[kendoChatUserStatusTemplate]',
|
|
@@ -2060,10 +2062,10 @@ class ChatMessageBoxTemplateDirective {
|
|
|
2060
2062
|
constructor(templateRef) {
|
|
2061
2063
|
this.templateRef = templateRef;
|
|
2062
2064
|
}
|
|
2063
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2064
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
2065
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatMessageBoxTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2066
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: ChatMessageBoxTemplateDirective, isStandalone: true, selector: "[kendoChatMessageBoxTemplate]", ngImport: i0 });
|
|
2065
2067
|
}
|
|
2066
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2068
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatMessageBoxTemplateDirective, decorators: [{
|
|
2067
2069
|
type: Directive,
|
|
2068
2070
|
args: [{
|
|
2069
2071
|
selector: '[kendoChatMessageBoxTemplate]',
|
|
@@ -2088,10 +2090,10 @@ class ChatHeaderTemplateDirective {
|
|
|
2088
2090
|
constructor(templateRef) {
|
|
2089
2091
|
this.templateRef = templateRef;
|
|
2090
2092
|
}
|
|
2091
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2092
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
2093
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatHeaderTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2094
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: ChatHeaderTemplateDirective, isStandalone: true, selector: "[kendoChatHeaderTemplate]", ngImport: i0 });
|
|
2093
2095
|
}
|
|
2094
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2096
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatHeaderTemplateDirective, decorators: [{
|
|
2095
2097
|
type: Directive,
|
|
2096
2098
|
args: [{
|
|
2097
2099
|
selector: '[kendoChatHeaderTemplate]',
|
|
@@ -2119,10 +2121,10 @@ class NoDataTemplateDirective {
|
|
|
2119
2121
|
constructor(templateRef) {
|
|
2120
2122
|
this.templateRef = templateRef;
|
|
2121
2123
|
}
|
|
2122
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2123
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
2124
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: NoDataTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2125
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: NoDataTemplateDirective, isStandalone: true, selector: "[kendoChatNoDataTemplate]", ngImport: i0 });
|
|
2124
2126
|
}
|
|
2125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: NoDataTemplateDirective, decorators: [{
|
|
2126
2128
|
type: Directive,
|
|
2127
2129
|
args: [{
|
|
2128
2130
|
selector: '[kendoChatNoDataTemplate]',
|
|
@@ -2156,10 +2158,10 @@ class ChatTimestampTemplateDirective {
|
|
|
2156
2158
|
constructor(templateRef) {
|
|
2157
2159
|
this.templateRef = templateRef;
|
|
2158
2160
|
}
|
|
2159
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2160
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
2161
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatTimestampTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2162
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: ChatTimestampTemplateDirective, isStandalone: true, selector: "[kendoChatTimestampTemplate]", ngImport: i0 });
|
|
2161
2163
|
}
|
|
2162
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatTimestampTemplateDirective, decorators: [{
|
|
2163
2165
|
type: Directive,
|
|
2164
2166
|
args: [{
|
|
2165
2167
|
selector: '[kendoChatTimestampTemplate]',
|
|
@@ -2186,10 +2188,10 @@ class ChatStatusTemplateDirective {
|
|
|
2186
2188
|
constructor(templateRef) {
|
|
2187
2189
|
this.templateRef = templateRef;
|
|
2188
2190
|
}
|
|
2189
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2190
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
2191
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatStatusTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2192
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: ChatStatusTemplateDirective, isStandalone: true, selector: "[kendoChatStatusTemplate]", ngImport: i0 });
|
|
2191
2193
|
}
|
|
2192
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatStatusTemplateDirective, decorators: [{
|
|
2193
2195
|
type: Directive,
|
|
2194
2196
|
args: [{
|
|
2195
2197
|
selector: '[kendoChatStatusTemplate]',
|
|
@@ -2218,10 +2220,10 @@ class AuthorMessageContentTemplateDirective {
|
|
|
2218
2220
|
constructor(templateRef) {
|
|
2219
2221
|
this.templateRef = templateRef;
|
|
2220
2222
|
}
|
|
2221
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2222
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
2223
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AuthorMessageContentTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2224
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: AuthorMessageContentTemplateDirective, isStandalone: true, selector: "[kendoChatAuthorMessageContentTemplate]", ngImport: i0 });
|
|
2223
2225
|
}
|
|
2224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2226
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AuthorMessageContentTemplateDirective, decorators: [{
|
|
2225
2227
|
type: Directive,
|
|
2226
2228
|
args: [{
|
|
2227
2229
|
selector: '[kendoChatAuthorMessageContentTemplate]',
|
|
@@ -2252,10 +2254,10 @@ class ReceiverMessageContentTemplateDirective {
|
|
|
2252
2254
|
constructor(templateRef) {
|
|
2253
2255
|
this.templateRef = templateRef;
|
|
2254
2256
|
}
|
|
2255
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2256
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
2257
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ReceiverMessageContentTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2258
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: ReceiverMessageContentTemplateDirective, isStandalone: true, selector: "[kendoChatReceiverMessageContentTemplate]", ngImport: i0 });
|
|
2257
2259
|
}
|
|
2258
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2260
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ReceiverMessageContentTemplateDirective, decorators: [{
|
|
2259
2261
|
type: Directive,
|
|
2260
2262
|
args: [{
|
|
2261
2263
|
selector: '[kendoChatReceiverMessageContentTemplate]',
|
|
@@ -2286,10 +2288,10 @@ class ReceiverMessageTemplateDirective {
|
|
|
2286
2288
|
constructor(templateRef) {
|
|
2287
2289
|
this.templateRef = templateRef;
|
|
2288
2290
|
}
|
|
2289
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2290
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
2291
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ReceiverMessageTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2292
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: ReceiverMessageTemplateDirective, isStandalone: true, selector: "[kendoChatReceiverMessageTemplate]", ngImport: i0 });
|
|
2291
2293
|
}
|
|
2292
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2294
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ReceiverMessageTemplateDirective, decorators: [{
|
|
2293
2295
|
type: Directive,
|
|
2294
2296
|
args: [{
|
|
2295
2297
|
selector: '[kendoChatReceiverMessageTemplate]',
|
|
@@ -2320,10 +2322,10 @@ class AuthorMessageTemplateDirective {
|
|
|
2320
2322
|
constructor(templateRef) {
|
|
2321
2323
|
this.templateRef = templateRef;
|
|
2322
2324
|
}
|
|
2323
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2324
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
2325
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AuthorMessageTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2326
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: AuthorMessageTemplateDirective, isStandalone: true, selector: "[kendoChatAuthorMessageTemplate]", ngImport: i0 });
|
|
2325
2327
|
}
|
|
2326
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2328
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AuthorMessageTemplateDirective, decorators: [{
|
|
2327
2329
|
type: Directive,
|
|
2328
2330
|
args: [{
|
|
2329
2331
|
selector: '[kendoChatAuthorMessageTemplate]',
|
|
@@ -2823,10 +2825,10 @@ class ChatService {
|
|
|
2823
2825
|
this[property] = { ...defaultSettings, ...settings };
|
|
2824
2826
|
}
|
|
2825
2827
|
}
|
|
2826
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
2827
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
2828
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatService, deps: [{ token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2829
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatService });
|
|
2828
2830
|
}
|
|
2829
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
2831
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatService, decorators: [{
|
|
2830
2832
|
type: Injectable
|
|
2831
2833
|
}], ctorParameters: () => [{ type: i0.NgZone }] });
|
|
2832
2834
|
|
|
@@ -3206,10 +3208,10 @@ class ScrollAnchorDirective {
|
|
|
3206
3208
|
el.scrollTo({ top: target, behavior });
|
|
3207
3209
|
this.scrolling = true;
|
|
3208
3210
|
}
|
|
3209
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3210
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
3211
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ScrollAnchorDirective, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3212
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: ScrollAnchorDirective, isStandalone: true, selector: "[kendoChatScrollAnchor]", inputs: { autoScroll: "autoScroll", autoScrollThreshold: "autoScrollThreshold", endlessMode: "endlessMode", rangeIsAtEnd: "rangeIsAtEnd" }, outputs: { autoScrollChange: "autoScrollChange", nearTop: "nearTop", nearBottom: "nearBottom" }, host: { properties: { "style.overflow-anchor": "this.overflowAnchor", "style.scroll-behavior": "this.scrollBehaviorStyle" } }, exportAs: ["scrollAnchor"], ngImport: i0 });
|
|
3211
3213
|
}
|
|
3212
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3214
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ScrollAnchorDirective, decorators: [{
|
|
3213
3215
|
type: Directive,
|
|
3214
3216
|
args: [{
|
|
3215
3217
|
selector: '[kendoChatScrollAnchor]',
|
|
@@ -3332,10 +3334,10 @@ class SuggestionsScrollService {
|
|
|
3332
3334
|
this.scrollButtonActiveStateChange.next({ buttonType, active });
|
|
3333
3335
|
}
|
|
3334
3336
|
isDisabled = (buttonType) => this.owner[`${buttonType}ScrollButton`]?.nativeElement.classList.contains('k-disabled');
|
|
3335
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3336
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
3337
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SuggestionsScrollService, deps: [{ token: i0.NgZone }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3338
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SuggestionsScrollService });
|
|
3337
3339
|
}
|
|
3338
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SuggestionsScrollService, decorators: [{
|
|
3339
3341
|
type: Injectable
|
|
3340
3342
|
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i1.LocalizationService }] });
|
|
3341
3343
|
|
|
@@ -3523,10 +3525,10 @@ let Messages$2 = class Messages extends ComponentMessages {
|
|
|
3523
3525
|
* Sets the aria-label for the attached files list.
|
|
3524
3526
|
*/
|
|
3525
3527
|
attachedFilesLabel;
|
|
3526
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3527
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
3528
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3529
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: Messages, isStandalone: true, selector: "kendoConversationalUIMessages", inputs: { deletedMessageSenderText: "deletedMessageSenderText", deletedMessageReceiverText: "deletedMessageReceiverText", messageFailedText: "messageFailedText", downloadAllFilesText: "downloadAllFilesText", messagePlaceholder: "messagePlaceholder", messageBoxTitle: "messageBoxTitle", actionButtonTitle: "actionButtonTitle", messageListLabel: "messageListLabel", messageBoxInputLabel: "messageBoxInputLabel", messageAttachmentLeftArrow: "messageAttachmentLeftArrow", messageAttachmentRightArrow: "messageAttachmentRightArrow", speechToTextButtonTitle: "speechToTextButtonTitle", fileSelectButtonTitle: "fileSelectButtonTitle", removeReplyTitle: "removeReplyTitle", removeFileTitle: "removeFileTitle", expandTitle: "expandTitle", collapseTitle: "collapseTitle", fileActionsTitle: "fileActionsTitle", nextSuggestionsButtonTitle: "nextSuggestionsButtonTitle", previousSuggestionsButtonTitle: "previousSuggestionsButtonTitle", unpinMessageTitle: "unpinMessageTitle", resendButtonTitle: "resendButtonTitle", attachedFilesLabel: "attachedFilesLabel" }, usesInheritance: true, ngImport: i0 });
|
|
3528
3530
|
};
|
|
3529
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3531
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: Messages$2, decorators: [{
|
|
3530
3532
|
type: Directive,
|
|
3531
3533
|
args: [{
|
|
3532
3534
|
selector: 'kendoConversationalUIMessages'
|
|
@@ -3583,27 +3585,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
3583
3585
|
/**
|
|
3584
3586
|
* @hidden
|
|
3585
3587
|
*/
|
|
3586
|
-
let LocalizedMessagesDirective$
|
|
3588
|
+
let LocalizedMessagesDirective$3 = class LocalizedMessagesDirective extends Messages$2 {
|
|
3587
3589
|
service;
|
|
3588
3590
|
constructor(service) {
|
|
3589
3591
|
super();
|
|
3590
3592
|
this.service = service;
|
|
3591
3593
|
}
|
|
3592
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3593
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
3594
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3595
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoChatLocalizedMessages]", providers: [
|
|
3594
3596
|
{
|
|
3595
3597
|
provide: Messages$2,
|
|
3596
3598
|
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
3597
3599
|
}
|
|
3598
3600
|
], usesInheritance: true, ngImport: i0 });
|
|
3599
3601
|
};
|
|
3600
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3602
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: LocalizedMessagesDirective$3, decorators: [{
|
|
3601
3603
|
type: Directive,
|
|
3602
3604
|
args: [{
|
|
3603
3605
|
providers: [
|
|
3604
3606
|
{
|
|
3605
3607
|
provide: Messages$2,
|
|
3606
|
-
useExisting: forwardRef(() => LocalizedMessagesDirective$
|
|
3608
|
+
useExisting: forwardRef(() => LocalizedMessagesDirective$3)
|
|
3607
3609
|
}
|
|
3608
3610
|
],
|
|
3609
3611
|
selector: '[kendoChatLocalizedMessages]',
|
|
@@ -3628,10 +3630,10 @@ class PromptBoxEndAffixComponent {
|
|
|
3628
3630
|
* @hidden
|
|
3629
3631
|
*/
|
|
3630
3632
|
templateRef;
|
|
3631
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3632
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
3633
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxEndAffixComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3634
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: PromptBoxEndAffixComponent, isStandalone: true, selector: "kendo-promptbox-end-affix", viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["template"], descendants: true, static: true }], exportAs: ["kendoPromptBoxEndAffix"], ngImport: i0, template: `<ng-template #template><ng-content></ng-content></ng-template>`, isInline: true });
|
|
3633
3635
|
}
|
|
3634
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3636
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxEndAffixComponent, decorators: [{
|
|
3635
3637
|
type: Component,
|
|
3636
3638
|
args: [{
|
|
3637
3639
|
exportAs: 'kendoPromptBoxEndAffix',
|
|
@@ -3661,10 +3663,10 @@ class PromptBoxStartAffixComponent {
|
|
|
3661
3663
|
* @hidden
|
|
3662
3664
|
*/
|
|
3663
3665
|
templateRef;
|
|
3664
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3665
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
3666
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxStartAffixComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3667
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: PromptBoxStartAffixComponent, isStandalone: true, selector: "kendo-promptbox-start-affix", viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["template"], descendants: true, static: true }], exportAs: ["kendoPromptBoxStartAffix"], ngImport: i0, template: `<ng-template #template><ng-content></ng-content></ng-template>`, isInline: true });
|
|
3666
3668
|
}
|
|
3667
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3669
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxStartAffixComponent, decorators: [{
|
|
3668
3670
|
type: Component,
|
|
3669
3671
|
args: [{
|
|
3670
3672
|
exportAs: 'kendoPromptBoxStartAffix',
|
|
@@ -3694,10 +3696,10 @@ class PromptBoxTopAffixComponent {
|
|
|
3694
3696
|
* @hidden
|
|
3695
3697
|
*/
|
|
3696
3698
|
templateRef;
|
|
3697
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3698
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
3699
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxTopAffixComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3700
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: PromptBoxTopAffixComponent, isStandalone: true, selector: "kendo-promptbox-top-affix", viewQueries: [{ propertyName: "templateRef", first: true, predicate: ["template"], descendants: true, static: true }], exportAs: ["kendoPromptBoxTopAffix"], ngImport: i0, template: `<ng-template #template><ng-content></ng-content></ng-template>`, isInline: true });
|
|
3699
3701
|
}
|
|
3700
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3702
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxTopAffixComponent, decorators: [{
|
|
3701
3703
|
type: Component,
|
|
3702
3704
|
args: [{
|
|
3703
3705
|
exportAs: 'kendoPromptBoxTopAffix',
|
|
@@ -3720,10 +3722,10 @@ class PromptBoxHeaderTemplateDirective {
|
|
|
3720
3722
|
constructor(templateRef) {
|
|
3721
3723
|
this.templateRef = templateRef;
|
|
3722
3724
|
}
|
|
3723
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3724
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
3725
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxHeaderTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3726
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: PromptBoxHeaderTemplateDirective, isStandalone: true, selector: "[kendoPromptBoxHeaderTemplate]", ngImport: i0 });
|
|
3725
3727
|
}
|
|
3726
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3728
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxHeaderTemplateDirective, decorators: [{
|
|
3727
3729
|
type: Directive,
|
|
3728
3730
|
args: [{
|
|
3729
3731
|
selector: '[kendoPromptBoxHeaderTemplate]',
|
|
@@ -3765,10 +3767,10 @@ let Messages$1 = class Messages extends ComponentMessages {
|
|
|
3765
3767
|
* Sets the aria-label for the attached files list.
|
|
3766
3768
|
*/
|
|
3767
3769
|
attachedFilesLabel;
|
|
3768
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3769
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
3770
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3771
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: Messages, isStandalone: true, inputs: { fileSelectButtonTitle: "fileSelectButtonTitle", actionButtonTitle: "actionButtonTitle", stopGeneratingTitle: "stopGeneratingTitle", speechToTextButtonTitle: "speechToTextButtonTitle", removeFileTitle: "removeFileTitle", messageBoxTitle: "messageBoxTitle", attachedFilesLabel: "attachedFilesLabel" }, usesInheritance: true, ngImport: i0 });
|
|
3770
3772
|
};
|
|
3771
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3773
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: Messages$1, decorators: [{
|
|
3772
3774
|
type: Directive
|
|
3773
3775
|
}], propDecorators: { fileSelectButtonTitle: [{
|
|
3774
3776
|
type: Input
|
|
@@ -3807,15 +3809,15 @@ class PromptBoxCustomMessagesComponent extends Messages$1 {
|
|
|
3807
3809
|
get override() {
|
|
3808
3810
|
return true;
|
|
3809
3811
|
}
|
|
3810
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3811
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
3812
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3813
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: PromptBoxCustomMessagesComponent, isStandalone: true, selector: "kendo-promptbox-messages", providers: [
|
|
3812
3814
|
{
|
|
3813
3815
|
provide: Messages$1,
|
|
3814
3816
|
useExisting: forwardRef(() => PromptBoxCustomMessagesComponent)
|
|
3815
3817
|
}
|
|
3816
3818
|
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
3817
3819
|
}
|
|
3818
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3820
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxCustomMessagesComponent, decorators: [{
|
|
3819
3821
|
type: Component,
|
|
3820
3822
|
args: [{
|
|
3821
3823
|
providers: [
|
|
@@ -3873,27 +3875,27 @@ const FILESELECT_BUTTON_DEFAULT_SETTINGS = {
|
|
|
3873
3875
|
/**
|
|
3874
3876
|
* @hidden
|
|
3875
3877
|
*/
|
|
3876
|
-
let LocalizedMessagesDirective$
|
|
3878
|
+
let LocalizedMessagesDirective$2 = class LocalizedMessagesDirective extends Messages$1 {
|
|
3877
3879
|
service;
|
|
3878
3880
|
constructor(service) {
|
|
3879
3881
|
super();
|
|
3880
3882
|
this.service = service;
|
|
3881
3883
|
}
|
|
3882
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3883
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
3884
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3885
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoPromptBoxLocalizedMessages]", providers: [
|
|
3884
3886
|
{
|
|
3885
3887
|
provide: Messages$1,
|
|
3886
3888
|
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
3887
3889
|
}
|
|
3888
3890
|
], usesInheritance: true, ngImport: i0 });
|
|
3889
3891
|
};
|
|
3890
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3892
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: LocalizedMessagesDirective$2, decorators: [{
|
|
3891
3893
|
type: Directive,
|
|
3892
3894
|
args: [{
|
|
3893
3895
|
providers: [
|
|
3894
3896
|
{
|
|
3895
3897
|
provide: Messages$1,
|
|
3896
|
-
useExisting: forwardRef(() => LocalizedMessagesDirective$
|
|
3898
|
+
useExisting: forwardRef(() => LocalizedMessagesDirective$2)
|
|
3897
3899
|
}
|
|
3898
3900
|
],
|
|
3899
3901
|
selector: '[kendoPromptBoxLocalizedMessages]',
|
|
@@ -3962,10 +3964,10 @@ class PromptBoxBaseTool {
|
|
|
3962
3964
|
*/
|
|
3963
3965
|
sizeChange = new EventEmitter();
|
|
3964
3966
|
_size;
|
|
3965
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
3966
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
3967
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxBaseTool, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3968
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: PromptBoxBaseTool, isStandalone: true, inputs: { disabled: "disabled", fillMode: "fillMode", icon: "icon", iconClass: "iconClass", imageUrl: "imageUrl", svgIcon: "svgIcon", rounded: "rounded", size: "size", themeColor: "themeColor", title: "title" }, outputs: { sizeChange: "sizeChange" }, ngImport: i0 });
|
|
3967
3969
|
}
|
|
3968
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
3970
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxBaseTool, decorators: [{
|
|
3969
3971
|
type: Directive
|
|
3970
3972
|
}], propDecorators: { disabled: [{
|
|
3971
3973
|
type: Input
|
|
@@ -4054,8 +4056,8 @@ class PromptBoxActionButtonComponent extends PromptBoxBaseTool {
|
|
|
4054
4056
|
textFor(key) {
|
|
4055
4057
|
return this.localization.get(key);
|
|
4056
4058
|
}
|
|
4057
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4058
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
4059
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxActionButtonComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4060
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: PromptBoxActionButtonComponent, isStandalone: true, selector: "kendo-promptbox-action-button", inputs: { buttonClass: "buttonClass", loading: "loading", loadingIcon: "loadingIcon", loadingSVGIcon: "loadingSVGIcon" }, outputs: { promptAction: "promptAction" }, providers: [
|
|
4059
4061
|
{
|
|
4060
4062
|
provide: PromptBoxBaseTool,
|
|
4061
4063
|
useExisting: forwardRef(() => PromptBoxActionButtonComponent),
|
|
@@ -4080,7 +4082,7 @@ class PromptBoxActionButtonComponent extends PromptBoxBaseTool {
|
|
|
4080
4082
|
></button>
|
|
4081
4083
|
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
4082
4084
|
}
|
|
4083
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4085
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxActionButtonComponent, decorators: [{
|
|
4084
4086
|
type: Component,
|
|
4085
4087
|
args: [{
|
|
4086
4088
|
exportAs: 'kendoPromptBoxActionButton',
|
|
@@ -4194,8 +4196,8 @@ class PromptBoxFileSelectButtonComponent extends PromptBoxBaseTool {
|
|
|
4194
4196
|
event.files = allowedFiles;
|
|
4195
4197
|
this.selectAttachments.emit(event);
|
|
4196
4198
|
}
|
|
4197
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4198
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
4199
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxFileSelectButtonComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4200
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: PromptBoxFileSelectButtonComponent, isStandalone: true, selector: "kendo-promptbox-fileselect-button", inputs: { restrictions: "restrictions", multiple: "multiple", accept: "accept" }, outputs: { selectAttachments: "selectAttachments" }, providers: [
|
|
4199
4201
|
{
|
|
4200
4202
|
provide: PromptBoxBaseTool,
|
|
4201
4203
|
useExisting: forwardRef(() => PromptBoxFileSelectButtonComponent),
|
|
@@ -4227,7 +4229,7 @@ class PromptBoxFileSelectButtonComponent extends PromptBoxBaseTool {
|
|
|
4227
4229
|
></kendo-fileselect>
|
|
4228
4230
|
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: FileSelectComponent, selector: "kendo-fileselect", inputs: ["name"], outputs: ["valueChange"], exportAs: ["kendoFileSelect"] }] });
|
|
4229
4231
|
}
|
|
4230
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxFileSelectButtonComponent, decorators: [{
|
|
4231
4233
|
type: Component,
|
|
4232
4234
|
args: [{
|
|
4233
4235
|
exportAs: 'kendoPromptBoxFileSelectButton',
|
|
@@ -4312,8 +4314,8 @@ class PromptBoxFileComponent {
|
|
|
4312
4314
|
return this.localization.get(key);
|
|
4313
4315
|
}
|
|
4314
4316
|
focus() { }
|
|
4315
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4316
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
4317
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxFileComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4318
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: PromptBoxFileComponent, isStandalone: true, selector: "li[promptBoxFile]", inputs: { promptBoxFile: "promptBoxFile", removable: "removable", fileActions: "fileActions", disabled: "disabled" }, outputs: { remove: "remove" }, host: { properties: { "attr.role": "this.role", "attr.aria-label": "this.ariaLabel" } }, ngImport: i0, template: `
|
|
4317
4319
|
<kendo-icon-wrapper
|
|
4318
4320
|
size="xlarge"
|
|
4319
4321
|
[name]="fileGroupClass(promptBoxFile.extension)"
|
|
@@ -4338,7 +4340,7 @@ class PromptBoxFileComponent {
|
|
|
4338
4340
|
}
|
|
4339
4341
|
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
4340
4342
|
}
|
|
4341
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxFileComponent, decorators: [{
|
|
4342
4344
|
type: Component,
|
|
4343
4345
|
args: [{
|
|
4344
4346
|
selector: 'li[promptBoxFile]',
|
|
@@ -4469,8 +4471,8 @@ class PromptBoxSpeechToTextButtonComponent extends PromptBoxBaseTool {
|
|
|
4469
4471
|
textFor(key) {
|
|
4470
4472
|
return this.localization.get(key);
|
|
4471
4473
|
}
|
|
4472
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
4473
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
4474
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxSpeechToTextButtonComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
4475
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: PromptBoxSpeechToTextButtonComponent, isStandalone: true, selector: "kendo-promptbox-speech-to-text-button", inputs: { continuous: "continuous", integrationMode: "integrationMode", interimResults: "interimResults", lang: "lang", maxAlternatives: "maxAlternatives" }, outputs: { stbClick: "stbClick", stbStart: "stbStart", stbEnd: "stbEnd", stbError: "stbError", stbResult: "stbResult" }, providers: [
|
|
4474
4476
|
{
|
|
4475
4477
|
provide: PromptBoxBaseTool,
|
|
4476
4478
|
useExisting: forwardRef(() => PromptBoxSpeechToTextButtonComponent),
|
|
@@ -4498,7 +4500,7 @@ class PromptBoxSpeechToTextButtonComponent extends PromptBoxBaseTool {
|
|
|
4498
4500
|
></button>
|
|
4499
4501
|
`, isInline: true, dependencies: [{ kind: "component", type: SpeechToTextButtonComponent, selector: "button[kendoSpeechToTextButton]", inputs: ["disabled", "size", "rounded", "fillMode", "themeColor", "integrationMode", "lang", "continuous", "interimResults", "maxAlternatives"], outputs: ["start", "end", "result", "error", "click"], exportAs: ["kendoSpeechToTextButton"] }] });
|
|
4500
4502
|
}
|
|
4501
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
4503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxSpeechToTextButtonComponent, decorators: [{
|
|
4502
4504
|
type: Component,
|
|
4503
4505
|
args: [{
|
|
4504
4506
|
exportAs: 'kendoPromptBoxSpeechToTextButton',
|
|
@@ -5377,8 +5379,8 @@ class PromptBoxComponent {
|
|
|
5377
5379
|
this.fileSelectSubscription.add(this.fileSelectButtonComponent.selectAttachments.subscribe((event) => this.handleFileSelectAttachments(event)));
|
|
5378
5380
|
this.fileSelectSubscription.add(this.fileSelectButtonComponent.sizeChange.subscribe(() => this.update()));
|
|
5379
5381
|
}
|
|
5380
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5381
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
5382
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i1.LocalizationService }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
5383
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: PromptBoxComponent, isStandalone: true, selector: "kendo-promptbox", inputs: { disabled: "disabled", focusableId: "focusableId", loading: "loading", placeholder: "placeholder", readonly: "readonly", title: "title", mode: "mode", rows: "rows", maxTextAreaHeight: "maxTextAreaHeight", value: "value", actionButton: "actionButton", fileSelectButton: "fileSelectButton", speechToTextButton: "speechToTextButton" }, outputs: { valueChange: "valueChange", onFocus: "focus", onBlur: "blur", inputFocus: "inputFocus", inputBlur: "inputBlur", promptAction: "promptAction", selectAttachments: "selectAttachments", fileRemove: "fileRemove", speechToTextClick: "speechToTextClick", speechToTextStart: "speechToTextStart", speechToTextEnd: "speechToTextEnd", speechToTextError: "speechToTextError", speechToTextResult: "speechToTextResult" }, host: { properties: { "class.k-prompt-box-singleline": "this.hostSinglelineClass", "class.k-prompt-box-multiline": "this.hostMultilineClass", "class.k-disabled": "this.hostDisabledClass" } }, providers: [
|
|
5382
5384
|
LocalizationService,
|
|
5383
5385
|
{
|
|
5384
5386
|
provide: L10N_PREFIX,
|
|
@@ -5574,9 +5576,9 @@ class PromptBoxComponent {
|
|
|
5574
5576
|
}
|
|
5575
5577
|
</div>
|
|
5576
5578
|
}
|
|
5577
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective$
|
|
5579
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective$2, selector: "[kendoPromptBoxLocalizedMessages]" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: EventsOutsideAngularDirective, selector: "[kendoEventsOutsideAngular]", inputs: ["kendoEventsOutsideAngular", "scope"] }, { kind: "component", type: PromptBoxActionButtonComponent, selector: "kendo-promptbox-action-button", inputs: ["buttonClass", "loading", "loadingIcon", "loadingSVGIcon"], outputs: ["promptAction"], exportAs: ["kendoPromptBoxActionButton"] }, { kind: "component", type: PromptBoxFileSelectButtonComponent, selector: "kendo-promptbox-fileselect-button", inputs: ["restrictions", "multiple", "accept"], outputs: ["selectAttachments"], exportAs: ["kendoPromptBoxFileSelectButton"] }, { kind: "component", type: PromptBoxSpeechToTextButtonComponent, selector: "kendo-promptbox-speech-to-text-button", inputs: ["continuous", "integrationMode", "interimResults", "lang", "maxAlternatives"], outputs: ["stbClick", "stbStart", "stbEnd", "stbError", "stbResult"], exportAs: ["kendoPromptBoxSpeechToTextButton"] }, { kind: "component", type: PromptBoxFileComponent, selector: "li[promptBoxFile]", inputs: ["promptBoxFile", "removable", "fileActions", "disabled"], outputs: ["remove"] }] });
|
|
5578
5580
|
}
|
|
5579
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5581
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: PromptBoxComponent, decorators: [{
|
|
5580
5582
|
type: Component,
|
|
5581
5583
|
args: [{
|
|
5582
5584
|
exportAs: 'kendoPromptBox',
|
|
@@ -5781,7 +5783,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
5781
5783
|
`,
|
|
5782
5784
|
standalone: true,
|
|
5783
5785
|
imports: [
|
|
5784
|
-
LocalizedMessagesDirective$
|
|
5786
|
+
LocalizedMessagesDirective$2,
|
|
5785
5787
|
NgTemplateOutlet,
|
|
5786
5788
|
EventsOutsideAngularDirective,
|
|
5787
5789
|
PromptBoxActionButtonComponent,
|
|
@@ -5927,8 +5929,8 @@ class ChatFileComponent extends ChatItem {
|
|
|
5927
5929
|
return this.localization.get(key);
|
|
5928
5930
|
}
|
|
5929
5931
|
focus() { }
|
|
5930
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
5931
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
5932
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatFileComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
5933
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: ChatFileComponent, isStandalone: true, selector: "li[chatFile]", inputs: { chatFile: "chatFile", removable: "removable", fileActions: "fileActions" }, outputs: { remove: "remove", actionClick: "actionClick", actionsToggle: "actionsToggle", actionButtonClick: "actionButtonClick" }, host: { properties: { "attr.role": "this.role", "attr.aria-label": "this.ariaLabel" } }, providers: [{
|
|
5932
5934
|
provide: ChatItem,
|
|
5933
5935
|
useExisting: forwardRef(() => ChatFileComponent)
|
|
5934
5936
|
}], usesInheritance: true, ngImport: i0, template: `
|
|
@@ -5969,7 +5971,7 @@ class ChatFileComponent extends ChatItem {
|
|
|
5969
5971
|
}
|
|
5970
5972
|
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: DropDownButtonComponent, selector: "kendo-dropdownbutton", inputs: ["arrowIcon", "icon", "svgIcon", "iconClass", "imageUrl", "textField", "data", "size", "rounded", "fillMode", "themeColor", "buttonAttributes"], outputs: ["itemClick", "focus", "blur"], exportAs: ["kendoDropDownButton"] }] });
|
|
5971
5973
|
}
|
|
5972
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
5974
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatFileComponent, decorators: [{
|
|
5973
5975
|
type: Component,
|
|
5974
5976
|
args: [{
|
|
5975
5977
|
selector: 'li[chatFile]',
|
|
@@ -6135,8 +6137,8 @@ class MessageReferenceComponent extends ChatItem {
|
|
|
6135
6137
|
return this.localization.get(key);
|
|
6136
6138
|
}
|
|
6137
6139
|
focus() { }
|
|
6138
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6139
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
6140
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: MessageReferenceComponent, deps: [{ token: i1.LocalizationService }, { token: ChatService }], target: i0.ɵɵFactoryTarget.Component });
|
|
6141
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: MessageReferenceComponent, isStandalone: true, selector: "chat-message-reference-content", inputs: { message: "message" }, host: { properties: { "class.k-message-reference-content": "this.hostClass" } }, providers: [{
|
|
6140
6142
|
provide: ChatItem,
|
|
6141
6143
|
useExisting: forwardRef(() => MessageReferenceComponent)
|
|
6142
6144
|
}], usesInheritance: true, ngImport: i0, template: `
|
|
@@ -6155,7 +6157,7 @@ class MessageReferenceComponent extends ChatItem {
|
|
|
6155
6157
|
}
|
|
6156
6158
|
`, isInline: true, dependencies: [{ kind: "component", type: ChatFileComponent, selector: "li[chatFile]", inputs: ["chatFile", "removable", "fileActions"], outputs: ["remove", "actionClick", "actionsToggle", "actionButtonClick"] }] });
|
|
6157
6159
|
}
|
|
6158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: MessageReferenceComponent, decorators: [{
|
|
6159
6161
|
type: Component,
|
|
6160
6162
|
args: [{
|
|
6161
6163
|
selector: 'chat-message-reference-content',
|
|
@@ -6208,10 +6210,10 @@ class ChatSuggestionTemplateDirective {
|
|
|
6208
6210
|
constructor(templateRef) {
|
|
6209
6211
|
this.templateRef = templateRef;
|
|
6210
6212
|
}
|
|
6211
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6212
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
6213
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatSuggestionTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6214
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: ChatSuggestionTemplateDirective, isStandalone: true, selector: "[kendoChatSuggestionTemplate]", ngImport: i0 });
|
|
6213
6215
|
}
|
|
6214
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6216
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatSuggestionTemplateDirective, decorators: [{
|
|
6215
6217
|
type: Directive,
|
|
6216
6218
|
args: [{
|
|
6217
6219
|
selector: '[kendoChatSuggestionTemplate]',
|
|
@@ -6265,12 +6267,12 @@ class ChatScrollableButtonComponent {
|
|
|
6265
6267
|
const buttonType = this.prev ? 'prev' : 'next';
|
|
6266
6268
|
this.onClick.emit(buttonType);
|
|
6267
6269
|
}
|
|
6268
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6269
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
6270
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatScrollableButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
6271
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: ChatScrollableButtonComponent, isStandalone: true, selector: "[kendoChatScrollableButton]", inputs: { prev: "prev" }, outputs: { onClick: "onClick" }, host: { properties: { "attr.role": "this.role" } }, ngImport: i0, template: `
|
|
6270
6272
|
<kendo-icon-wrapper [name]="scrollButtonIconClass" [svgIcon]="scrollButtonSVGIcon" innerCssClass="k-button-icon"> </kendo-icon-wrapper>
|
|
6271
6273
|
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }] });
|
|
6272
6274
|
}
|
|
6273
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6275
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatScrollableButtonComponent, decorators: [{
|
|
6274
6276
|
type: Component,
|
|
6275
6277
|
args: [{
|
|
6276
6278
|
template: `
|
|
@@ -6508,8 +6510,8 @@ class SuggestedActionsComponent extends ChatItem {
|
|
|
6508
6510
|
const prevIndex = this.selectedIndex;
|
|
6509
6511
|
this.selectedIndex = Math.max(0, Math.min(prevIndex + offset, this.items.length - 1));
|
|
6510
6512
|
}
|
|
6511
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6512
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
6513
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SuggestedActionsComponent, deps: [{ token: ChatService }, { token: i1.LocalizationService }, { token: SuggestionsScrollService }, { token: i0.NgZone }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
6514
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: SuggestedActionsComponent, isStandalone: true, selector: "kendo-chat-suggested-actions", inputs: { actions: "actions", suggestions: "suggestions", tabbable: "tabbable", type: "type", suggestionTemplate: "suggestionTemplate" }, outputs: { dispatchAction: "dispatchAction", dispatchSuggestion: "dispatchSuggestion" }, host: { properties: { "class.k-suggestion-group": "this.defaultClass", "class.k-suggestion-group-scrollable": "this.scrollableClass", "class.k-suggestion-scrollwrap": "this.scrollButtonsClass", "class.k-suggestion-group-scrollable-start": "this.scrollStartClass", "class.k-suggestion-group-scrollable-end": "this.scrollEndClass", "attr.role": "this.role" } }, providers: [
|
|
6513
6515
|
{
|
|
6514
6516
|
provide: ChatItem,
|
|
6515
6517
|
useExisting: forwardRef(() => SuggestedActionsComponent),
|
|
@@ -6600,7 +6602,7 @@ class SuggestedActionsComponent extends ChatItem {
|
|
|
6600
6602
|
}
|
|
6601
6603
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ChatScrollableButtonComponent, selector: "[kendoChatScrollableButton]", inputs: ["prev"], outputs: ["onClick"] }] });
|
|
6602
6604
|
}
|
|
6603
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6605
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: SuggestedActionsComponent, decorators: [{
|
|
6604
6606
|
type: Component,
|
|
6605
6607
|
args: [{
|
|
6606
6608
|
selector: 'kendo-chat-suggested-actions',
|
|
@@ -6766,10 +6768,10 @@ class ChatMessageBoxEndAffixTemplateDirective {
|
|
|
6766
6768
|
constructor(templateRef) {
|
|
6767
6769
|
this.templateRef = templateRef;
|
|
6768
6770
|
}
|
|
6769
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6770
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
6771
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatMessageBoxEndAffixTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6772
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: ChatMessageBoxEndAffixTemplateDirective, isStandalone: true, selector: "[kendoChatMessageBoxEndAffixTemplate]", ngImport: i0 });
|
|
6771
6773
|
}
|
|
6772
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6774
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatMessageBoxEndAffixTemplateDirective, decorators: [{
|
|
6773
6775
|
type: Directive,
|
|
6774
6776
|
args: [{
|
|
6775
6777
|
selector: '[kendoChatMessageBoxEndAffixTemplate]',
|
|
@@ -6796,10 +6798,10 @@ class ChatMessageBoxStartAffixTemplateDirective {
|
|
|
6796
6798
|
constructor(templateRef) {
|
|
6797
6799
|
this.templateRef = templateRef;
|
|
6798
6800
|
}
|
|
6799
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6800
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
6801
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatMessageBoxStartAffixTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6802
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: ChatMessageBoxStartAffixTemplateDirective, isStandalone: true, selector: "[kendoChatMessageBoxStartAffixTemplate]", ngImport: i0 });
|
|
6801
6803
|
}
|
|
6802
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6804
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatMessageBoxStartAffixTemplateDirective, decorators: [{
|
|
6803
6805
|
type: Directive,
|
|
6804
6806
|
args: [{
|
|
6805
6807
|
selector: '[kendoChatMessageBoxStartAffixTemplate]',
|
|
@@ -6826,10 +6828,10 @@ class ChatMessageBoxTopAffixTemplateDirective {
|
|
|
6826
6828
|
constructor(templateRef) {
|
|
6827
6829
|
this.templateRef = templateRef;
|
|
6828
6830
|
}
|
|
6829
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
6830
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
6831
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatMessageBoxTopAffixTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
6832
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: ChatMessageBoxTopAffixTemplateDirective, isStandalone: true, selector: "[kendoChatMessageBoxTopAffixTemplate]", ngImport: i0 });
|
|
6831
6833
|
}
|
|
6832
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
6834
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatMessageBoxTopAffixTemplateDirective, decorators: [{
|
|
6833
6835
|
type: Directive,
|
|
6834
6836
|
args: [{
|
|
6835
6837
|
selector: '[kendoChatMessageBoxTopAffixTemplate]',
|
|
@@ -7049,8 +7051,8 @@ class MessageBoxComponent {
|
|
|
7049
7051
|
dispatchSuggestion(suggestion) {
|
|
7050
7052
|
this.executeSuggestion.emit(suggestion);
|
|
7051
7053
|
}
|
|
7052
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7053
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
7054
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: MessageBoxComponent, deps: [{ token: ChatService }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
7055
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: MessageBoxComponent, isStandalone: true, selector: "kendo-message-box", inputs: { authorId: "authorId", autoScroll: "autoScroll", suggestions: "suggestions", placeholder: "placeholder", inputValue: "inputValue", localization: "localization", messageBoxTemplate: "messageBoxTemplate", messageBoxStartAffixTemplate: "messageBoxStartAffixTemplate", messageBoxEndAffixTemplate: "messageBoxEndAffixTemplate", messageBoxTopAffixTemplate: "messageBoxTopAffixTemplate", suggestionTemplate: "suggestionTemplate", loading: "loading" }, outputs: { sendMessage: "sendMessage", executeSuggestion: "executeSuggestion", fileSelect: "fileSelect", fileRemove: "fileRemove" }, host: { properties: { "style.border-color": "this.borderColor", "class.k-message-box-wrapper": "this.messageBoxWrapperClass" } }, viewQueries: [{ propertyName: "messageBoxInput", first: true, predicate: ["messageBoxInput"], descendants: true }, { propertyName: "suggestedActionsComponent", first: true, predicate: SuggestedActionsComponent, descendants: true }], ngImport: i0, template: `
|
|
7054
7056
|
@if (suggestions?.length > 0) {
|
|
7055
7057
|
<kendo-chat-suggested-actions
|
|
7056
7058
|
#suggestedActions
|
|
@@ -7143,7 +7145,7 @@ class MessageBoxComponent {
|
|
|
7143
7145
|
}
|
|
7144
7146
|
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: PromptBoxComponent, selector: "kendo-promptbox", inputs: ["disabled", "focusableId", "loading", "placeholder", "readonly", "title", "mode", "rows", "maxTextAreaHeight", "value", "actionButton", "fileSelectButton", "speechToTextButton"], outputs: ["valueChange", "focus", "blur", "inputFocus", "inputBlur", "promptAction", "selectAttachments", "fileRemove", "speechToTextClick", "speechToTextStart", "speechToTextEnd", "speechToTextError", "speechToTextResult"], exportAs: ["kendoPromptBox"] }, { kind: "component", type: PromptBoxCustomMessagesComponent, selector: "kendo-promptbox-messages" }, { kind: "directive", type: PromptBoxHeaderTemplateDirective, selector: "[kendoPromptBoxHeaderTemplate]" }, { kind: "component", type: PromptBoxStartAffixComponent, selector: "kendo-promptbox-start-affix", exportAs: ["kendoPromptBoxStartAffix"] }, { kind: "component", type: PromptBoxTopAffixComponent, selector: "kendo-promptbox-top-affix", exportAs: ["kendoPromptBoxTopAffix"] }, { kind: "component", type: PromptBoxEndAffixComponent, selector: "kendo-promptbox-end-affix", exportAs: ["kendoPromptBoxEndAffix"] }, { kind: "component", type: PromptBoxFileSelectButtonComponent, selector: "kendo-promptbox-fileselect-button", inputs: ["restrictions", "multiple", "accept"], outputs: ["selectAttachments"], exportAs: ["kendoPromptBoxFileSelectButton"] }, { kind: "component", type: MessageReferenceComponent, selector: "chat-message-reference-content", inputs: ["message"] }, { kind: "component", type: SuggestedActionsComponent, selector: "kendo-chat-suggested-actions", inputs: ["actions", "suggestions", "tabbable", "type", "suggestionTemplate"], outputs: ["dispatchAction", "dispatchSuggestion"] }] });
|
|
7145
7147
|
}
|
|
7146
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: MessageBoxComponent, decorators: [{
|
|
7147
7149
|
type: Component,
|
|
7148
7150
|
args: [{
|
|
7149
7151
|
selector: 'kendo-message-box',
|
|
@@ -7644,8 +7646,8 @@ class MessageComponent extends ChatItem {
|
|
|
7644
7646
|
this.cdr.detectChanges();
|
|
7645
7647
|
}));
|
|
7646
7648
|
}
|
|
7647
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
7648
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
7649
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: MessageComponent, deps: [{ token: i0.ElementRef }, { token: i1$1.IntlService }, { token: ChatService }, { token: i1.LocalizationService }, { token: i0.ChangeDetectorRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
7650
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: MessageComponent, isStandalone: true, selector: "kendo-chat-message", inputs: { message: "message", tabbable: "tabbable", authorMessageContentTemplate: "authorMessageContentTemplate", receiverMessageContentTemplate: "receiverMessageContentTemplate", messageContentTemplate: "messageContentTemplate", authorMessageTemplate: "authorMessageTemplate", receiverMessageTemplate: "receiverMessageTemplate", messageTemplate: "messageTemplate", statusTemplate: "statusTemplate", showMessageTime: "showMessageTime", authorId: "authorId" }, host: { listeners: { "keydown": "onKeyDown($event)" }, properties: { "class.k-message": "this.cssClass", "class.k-message-failed": "this.failedClass", "class.k-message-removed": "this.removedClass", "attr.tabIndex": "this.tabIndex" } }, providers: [
|
|
7649
7651
|
{
|
|
7650
7652
|
provide: ChatItem,
|
|
7651
7653
|
useExisting: forwardRef(() => MessageComponent),
|
|
@@ -7861,7 +7863,7 @@ class MessageComponent extends ChatItem {
|
|
|
7861
7863
|
}
|
|
7862
7864
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: i2.ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: ChatFileComponent, selector: "li[chatFile]", inputs: ["chatFile", "removable", "fileActions"], outputs: ["remove", "actionClick", "actionsToggle", "actionButtonClick"] }, { kind: "component", type: ToolBarComponent, selector: "kendo-toolbar", inputs: ["overflow", "resizable", "popupSettings", "fillMode", "tabindex", "size", "tabIndex", "showIcon", "showText"], outputs: ["open", "close"], exportAs: ["kendoToolBar"] }, { kind: "component", type: ToolBarButtonComponent, selector: "kendo-toolbar-button", inputs: ["showText", "showIcon", "text", "style", "className", "title", "disabled", "toggleable", "look", "togglable", "selected", "fillMode", "rounded", "themeColor", "icon", "iconClass", "svgIcon", "imageUrl"], outputs: ["click", "pointerdown", "selectedChange"], exportAs: ["kendoToolBarButton"] }, { kind: "component", type: MessageReferenceComponent, selector: "chat-message-reference-content", inputs: ["message"] }] });
|
|
7863
7865
|
}
|
|
7864
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
7866
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: MessageComponent, decorators: [{
|
|
7865
7867
|
type: Component,
|
|
7866
7868
|
args: [{
|
|
7867
7869
|
selector: 'kendo-chat-message',
|
|
@@ -8158,8 +8160,8 @@ class AttachmentComponent {
|
|
|
8158
8160
|
return this.attachment.contentType || '';
|
|
8159
8161
|
}
|
|
8160
8162
|
_attachment;
|
|
8161
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8162
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
8163
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AttachmentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
8164
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: AttachmentComponent, isStandalone: true, selector: "kendo-chat-attachment", inputs: { attachment: "attachment", template: "template" }, ngImport: i0, template: `
|
|
8163
8165
|
@if (template) {
|
|
8164
8166
|
<ng-container *ngTemplateOutlet="template.templateRef; context: context;">
|
|
8165
8167
|
</ng-container>
|
|
@@ -8189,7 +8191,7 @@ class AttachmentComponent {
|
|
|
8189
8191
|
}
|
|
8190
8192
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
8191
8193
|
}
|
|
8192
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
8194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AttachmentComponent, decorators: [{
|
|
8193
8195
|
type: Component,
|
|
8194
8196
|
args: [{
|
|
8195
8197
|
selector: 'kendo-chat-attachment',
|
|
@@ -8346,8 +8348,8 @@ class MessageAttachmentsComponent extends ChatItem {
|
|
|
8346
8348
|
textFor(key) {
|
|
8347
8349
|
return this.localization.get(key);
|
|
8348
8350
|
}
|
|
8349
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8350
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
8351
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: MessageAttachmentsComponent, deps: [{ token: i0.NgZone }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
8352
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: MessageAttachmentsComponent, isStandalone: true, selector: "kendo-chat-message-attachments", inputs: { attachments: "attachments", layout: "layout", tabbable: "tabbable", template: "template", localization: "localization" }, host: { properties: { "class.k-card-deck-scrollwrap": "this.carousel" } }, providers: [{
|
|
8351
8353
|
provide: ChatItem,
|
|
8352
8354
|
useExisting: forwardRef(() => MessageAttachmentsComponent)
|
|
8353
8355
|
}], viewQueries: [{ propertyName: "deck", first: true, predicate: ["deck"], descendants: true, read: ElementRef, static: true }, { propertyName: "items", predicate: ["item"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: `
|
|
@@ -8396,7 +8398,7 @@ class MessageAttachmentsComponent extends ChatItem {
|
|
|
8396
8398
|
}
|
|
8397
8399
|
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: AttachmentComponent, selector: "kendo-chat-attachment", inputs: ["attachment", "template"] }] });
|
|
8398
8400
|
}
|
|
8399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
8401
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: MessageAttachmentsComponent, decorators: [{
|
|
8400
8402
|
type: Component,
|
|
8401
8403
|
args: [{
|
|
8402
8404
|
providers: [{
|
|
@@ -8767,8 +8769,8 @@ class MessageListComponent {
|
|
|
8767
8769
|
return componentElement && (componentElement === clickedElement || componentElement.contains(clickedElement));
|
|
8768
8770
|
});
|
|
8769
8771
|
}
|
|
8770
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
8771
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
8772
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: MessageListComponent, deps: [{ token: i0.ElementRef }, { token: i1$1.IntlService }, { token: i0.Renderer2 }, { token: ChatService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
8773
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: MessageListComponent, isStandalone: true, selector: "kendo-chat-message-list", inputs: { messages: "messages", attachmentTemplate: "attachmentTemplate", authorMessageContentTemplate: "authorMessageContentTemplate", receiverMessageContentTemplate: "receiverMessageContentTemplate", messageContentTemplate: "messageContentTemplate", authorMessageTemplate: "authorMessageTemplate", receiverMessageTemplate: "receiverMessageTemplate", messageTemplate: "messageTemplate", timestampTemplate: "timestampTemplate", statusTemplate: "statusTemplate", userStatusTemplate: "userStatusTemplate", localization: "localization", authorId: "authorId" }, outputs: { executeAction: "executeAction", navigate: "navigate", resize: "resize" }, host: { properties: { "class.k-message-list-content": "this.cssClass" } }, viewQueries: [{ propertyName: "items", predicate: ChatItem, descendants: true }], ngImport: i0, template: `
|
|
8772
8774
|
@for (group of view; track trackGroup($index, group); let lastGroup = $last) { @switch (group.type) { @case
|
|
8773
8775
|
('date-marker') {
|
|
8774
8776
|
<div class="k-timestamp">
|
|
@@ -8872,7 +8874,7 @@ class MessageListComponent {
|
|
|
8872
8874
|
<kendo-resize-sensor (resize)="onResize()"> </kendo-resize-sensor>
|
|
8873
8875
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: MessageComponent, selector: "kendo-chat-message", inputs: ["message", "tabbable", "authorMessageContentTemplate", "receiverMessageContentTemplate", "messageContentTemplate", "authorMessageTemplate", "receiverMessageTemplate", "messageTemplate", "statusTemplate", "showMessageTime", "authorId"] }, { kind: "component", type: AttachmentComponent, selector: "kendo-chat-attachment", inputs: ["attachment", "template"] }, { kind: "component", type: MessageAttachmentsComponent, selector: "kendo-chat-message-attachments", inputs: ["attachments", "layout", "tabbable", "template", "localization"] }, { kind: "component", type: SuggestedActionsComponent, selector: "kendo-chat-suggested-actions", inputs: ["actions", "suggestions", "tabbable", "type", "suggestionTemplate"], outputs: ["dispatchAction", "dispatchSuggestion"] }, { kind: "component", type: ResizeSensorComponent, selector: "kendo-resize-sensor", inputs: ["rateLimit"], outputs: ["resize"] }, { kind: "ngmodule", type: ButtonsModule }] });
|
|
8874
8876
|
}
|
|
8875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
8877
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: MessageListComponent, decorators: [{
|
|
8876
8878
|
type: Component,
|
|
8877
8879
|
args: [{
|
|
8878
8880
|
selector: 'kendo-chat-message-list',
|
|
@@ -10147,8 +10149,8 @@ class ChatComponent {
|
|
|
10147
10149
|
return userAction;
|
|
10148
10150
|
});
|
|
10149
10151
|
}
|
|
10150
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
10151
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
10152
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatComponent, deps: [{ token: i1.LocalizationService }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: ChatService }], target: i0.ɵɵFactoryTarget.Component });
|
|
10153
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: ChatComponent, isStandalone: true, selector: "kendo-chat", inputs: { messages: "messages", authorId: "authorId", messageBoxType: "messageBoxType", height: "height", width: "width", placeholder: "placeholder", messageWidthMode: "messageWidthMode", timestampVisibility: "timestampVisibility", showUsername: "showUsername", showAvatar: "showAvatar", allowMessageCollapse: "allowMessageCollapse", speechToTextButton: "speechToTextButton", fileSelectButton: "fileSelectButton", messageBoxSettings: "messageBoxSettings", messageToolbarActions: "messageToolbarActions", inputValue: "inputValue", authorMessageSettings: "authorMessageSettings", receiverMessageSettings: "receiverMessageSettings", messageContextMenuActions: "messageContextMenuActions", fileActions: "fileActions", messageFilesLayout: "messageFilesLayout", suggestionsLayout: "suggestionsLayout", quickActionsLayout: "quickActionsLayout", suggestions: "suggestions", sendButton: "sendButton", sendButtonSettings: "sendButtonSettings", scrollMode: "scrollMode", pageSize: "pageSize", autoScrollThreshold: "autoScrollThreshold", total: "total", startIndex: "startIndex", endIndex: "endIndex", pinnedMessages: "pinnedMessages", repliedToMessages: "repliedToMessages", modelFields: "modelFields", scrollToBottomButton: "scrollToBottomButton", loading: "loading" }, outputs: { sendMessage: "sendMessage", resendMessage: "resendMessage", toolbarActionClick: "toolbarActionClick", contextMenuActionClick: "contextMenuActionClick", fileActionClick: "fileActionClick", download: "download", executeAction: "executeAction", suggestionExecute: "suggestionExecute", fileSelect: "fileSelect", fileRemove: "fileRemove", unpin: "unpin", inputValueChange: "inputValueChange", loadMore: "loadMore", referencedMessageClick: "referencedMessageClick" }, host: { properties: { "class": "this.className", "attr.dir": "this.dirAttr" } }, providers: [
|
|
10152
10154
|
LocalizationService,
|
|
10153
10155
|
ChatService,
|
|
10154
10156
|
SuggestionsScrollService,
|
|
@@ -10351,9 +10353,9 @@ class ChatComponent {
|
|
|
10351
10353
|
@if (showLicenseWatermark) {
|
|
10352
10354
|
<div kendoWatermarkOverlay [licenseMessage]="licenseMessage"></div>
|
|
10353
10355
|
}
|
|
10354
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective$
|
|
10356
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: LocalizedMessagesDirective$3, selector: "[kendoChatLocalizedMessages]" }, { kind: "directive", type: ScrollAnchorDirective, selector: "[kendoChatScrollAnchor]", inputs: ["autoScroll", "autoScrollThreshold", "endlessMode", "rangeIsAtEnd"], outputs: ["autoScrollChange", "nearTop", "nearBottom"], exportAs: ["scrollAnchor"] }, { kind: "component", type: MessageListComponent, selector: "kendo-chat-message-list", inputs: ["messages", "attachmentTemplate", "authorMessageContentTemplate", "receiverMessageContentTemplate", "messageContentTemplate", "authorMessageTemplate", "receiverMessageTemplate", "messageTemplate", "timestampTemplate", "statusTemplate", "userStatusTemplate", "localization", "authorId"], outputs: ["executeAction", "navigate", "resize"] }, { kind: "component", type: MessageBoxComponent, selector: "kendo-message-box", inputs: ["authorId", "autoScroll", "suggestions", "placeholder", "inputValue", "localization", "messageBoxTemplate", "messageBoxStartAffixTemplate", "messageBoxEndAffixTemplate", "messageBoxTopAffixTemplate", "suggestionTemplate", "loading"], outputs: ["sendMessage", "executeSuggestion", "fileSelect", "fileRemove"] }, { kind: "component", type: MessageReferenceComponent, selector: "chat-message-reference-content", inputs: ["message"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: ContextMenuComponent, selector: "kendo-contextmenu", inputs: ["showOn", "target", "filter", "alignToAnchor", "vertical", "popupAnimate", "popupAlign", "anchorAlign", "collision", "appendTo", "ariaLabel"], outputs: ["popupOpen", "popupClose", "select", "open", "close"], exportAs: ["kendoContextMenu"] }, { kind: "component", type: FloatingActionButtonComponent, selector: "kendo-floatingactionbutton", inputs: ["themeColor", "size", "rounded", "disabled", "align", "offset", "positionMode", "icon", "svgIcon", "iconClass", "buttonClass", "dialClass", "text", "dialItemAnimation", "tabIndex", "dialItems"], outputs: ["blur", "focus", "dialItemClick", "open", "close"] }, { kind: "component", type: WatermarkOverlayComponent, selector: "div[kendoWatermarkOverlay], kendo-watermark-overlay", inputs: ["licenseMessage"] }] });
|
|
10355
10357
|
}
|
|
10356
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
10358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatComponent, decorators: [{
|
|
10357
10359
|
type: Component,
|
|
10358
10360
|
args: [{
|
|
10359
10361
|
providers: [
|
|
@@ -10564,7 +10566,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
10564
10566
|
`,
|
|
10565
10567
|
standalone: true,
|
|
10566
10568
|
imports: [
|
|
10567
|
-
LocalizedMessagesDirective$
|
|
10569
|
+
LocalizedMessagesDirective$3,
|
|
10568
10570
|
ScrollAnchorDirective,
|
|
10569
10571
|
MessageListComponent,
|
|
10570
10572
|
MessageBoxComponent,
|
|
@@ -10774,15 +10776,15 @@ class CustomMessagesComponent extends Messages$2 {
|
|
|
10774
10776
|
get override() {
|
|
10775
10777
|
return true;
|
|
10776
10778
|
}
|
|
10777
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
10778
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
10779
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: CustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
10780
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: CustomMessagesComponent, isStandalone: true, selector: "kendo-chat-messages", providers: [
|
|
10779
10781
|
{
|
|
10780
10782
|
provide: Messages$2,
|
|
10781
10783
|
useExisting: forwardRef(() => CustomMessagesComponent)
|
|
10782
10784
|
}
|
|
10783
10785
|
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
10784
10786
|
}
|
|
10785
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
10787
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: CustomMessagesComponent, decorators: [{
|
|
10786
10788
|
type: Component,
|
|
10787
10789
|
args: [{
|
|
10788
10790
|
providers: [
|
|
@@ -10838,8 +10840,8 @@ class HeroCardComponent {
|
|
|
10838
10840
|
onClick(action) {
|
|
10839
10841
|
this.executeAction.next(action);
|
|
10840
10842
|
}
|
|
10841
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
10842
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
10843
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: HeroCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10844
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: HeroCardComponent, isStandalone: true, selector: "kendo-chat-hero-card", inputs: { imageUrl: "imageUrl", title: "title", subtitle: "subtitle", actions: "actions" }, outputs: { executeAction: "executeAction" }, host: { properties: { "class.k-card": "this.cssClass" } }, ngImport: i0, template: `
|
|
10843
10845
|
@if (imageUrl) {
|
|
10844
10846
|
<img class="k-card-image" [src]="imageUrl" />
|
|
10845
10847
|
}
|
|
@@ -10870,7 +10872,7 @@ class HeroCardComponent {
|
|
|
10870
10872
|
</div>
|
|
10871
10873
|
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }] });
|
|
10872
10874
|
}
|
|
10873
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
10875
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: HeroCardComponent, decorators: [{
|
|
10874
10876
|
type: Component,
|
|
10875
10877
|
args: [{
|
|
10876
10878
|
selector: 'kendo-chat-hero-card',
|
|
@@ -10938,10 +10940,10 @@ class Messages extends ComponentMessages {
|
|
|
10938
10940
|
* The title for the Speech to Text button.
|
|
10939
10941
|
*/
|
|
10940
10942
|
speechToTextButtonTitle;
|
|
10941
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
10942
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
10943
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: Messages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
10944
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: Messages, isStandalone: true, inputs: { commandsButtonTitle: "commandsButtonTitle", generateButtonTitle: "generateButtonTitle", speechToTextButtonTitle: "speechToTextButtonTitle" }, usesInheritance: true, ngImport: i0 });
|
|
10943
10945
|
}
|
|
10944
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
10946
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: Messages, decorators: [{
|
|
10945
10947
|
type: Directive
|
|
10946
10948
|
}], propDecorators: { commandsButtonTitle: [{
|
|
10947
10949
|
type: Input
|
|
@@ -10954,27 +10956,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
10954
10956
|
/**
|
|
10955
10957
|
* @hidden
|
|
10956
10958
|
*/
|
|
10957
|
-
class LocalizedMessagesDirective extends Messages {
|
|
10959
|
+
let LocalizedMessagesDirective$1 = class LocalizedMessagesDirective extends Messages {
|
|
10958
10960
|
service;
|
|
10959
10961
|
constructor(service) {
|
|
10960
10962
|
super();
|
|
10961
10963
|
this.service = service;
|
|
10962
10964
|
}
|
|
10963
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
10964
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
10965
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
10966
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoInlineAIPromptLocalizedMessages]", providers: [
|
|
10965
10967
|
{
|
|
10966
10968
|
provide: Messages,
|
|
10967
10969
|
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
10968
10970
|
}
|
|
10969
10971
|
], usesInheritance: true, ngImport: i0 });
|
|
10970
|
-
}
|
|
10971
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
10972
|
+
};
|
|
10973
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: LocalizedMessagesDirective$1, decorators: [{
|
|
10972
10974
|
type: Directive,
|
|
10973
10975
|
args: [{
|
|
10974
10976
|
providers: [
|
|
10975
10977
|
{
|
|
10976
10978
|
provide: Messages,
|
|
10977
|
-
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
10979
|
+
useExisting: forwardRef(() => LocalizedMessagesDirective$1)
|
|
10978
10980
|
}
|
|
10979
10981
|
],
|
|
10980
10982
|
selector: '[kendoInlineAIPromptLocalizedMessages]',
|
|
@@ -11257,8 +11259,8 @@ class InlineAIPromptContentComponent {
|
|
|
11257
11259
|
});
|
|
11258
11260
|
}
|
|
11259
11261
|
}
|
|
11260
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
11261
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.
|
|
11262
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: InlineAIPromptContentComponent, deps: [{ token: i0.NgZone }, { token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i1.LocalizationService, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
11263
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: InlineAIPromptContentComponent, isStandalone: true, selector: "kendo-inlineaiprompt-content", inputs: { popupElement: "popupElement", promptValue: "promptValue", placeholder: "placeholder", promptOutput: "promptOutput", enableSpeechToText: "enableSpeechToText", streaming: "streaming", width: "width", maxHeight: "maxHeight", appendTo: "appendTo", outputActions: "outputActions", promptCommands: "promptCommands", outputTemplate: "outputTemplate" }, outputs: { promptRequest: "promptRequest", commandExecute: "commandExecute", outputActionClick: "outputActionClick", promptRequestCancel: "promptRequestCancel", close: "close", promptValueChange: "promptValueChange" }, host: { listeners: { "keydown": "onEscapeKey($event)" }, properties: { "class.k-prompt": "this.className", "attr.dir": "this.dirAttr", "style.max-height": "this.maxHeightStyle", "style.width": "this.widthStyle" } }, providers: [
|
|
11262
11264
|
LocalizationService,
|
|
11263
11265
|
{
|
|
11264
11266
|
provide: L10N_PREFIX,
|
|
@@ -11375,9 +11377,9 @@ class InlineAIPromptContentComponent {
|
|
|
11375
11377
|
class="k-hidden"
|
|
11376
11378
|
(select)="onCommandClick($event)">
|
|
11377
11379
|
</kendo-contextmenu>
|
|
11378
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoInlineAIPromptLocalizedMessages]" }, { kind: "component", type: i2.ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: i2.SpeechToTextButtonComponent, selector: "button[kendoSpeechToTextButton]", inputs: ["disabled", "size", "rounded", "fillMode", "themeColor", "integrationMode", "lang", "continuous", "interimResults", "maxAlternatives"], outputs: ["start", "end", "result", "error", "click"], exportAs: ["kendoSpeechToTextButton"] }, { kind: "component", type: i3.TextAreaComponent, selector: "kendo-textarea", inputs: ["focusableId", "flow", "inputAttributes", "adornmentsOrientation", "rows", "cols", "maxlength", "maxResizableRows", "tabindex", "tabIndex", "resizable", "size", "rounded", "fillMode", "showPrefixSeparator", "showSuffixSeparator"], outputs: ["focus", "blur", "valueChange"], exportAs: ["kendoTextArea"] }, { kind: "component", type: i3.TextAreaPrefixComponent, selector: "kendo-textarea-prefix", inputs: ["flow", "orientation"], exportAs: ["kendoTextAreaPrefix"] }, { kind: "component", type: i3.TextAreaSuffixComponent, selector: "kendo-textarea-suffix", inputs: ["flow", "orientation"], exportAs: ["kendoTextAreaSuffix"] }, { kind: "component", type: i4.ContextMenuComponent, selector: "kendo-contextmenu", inputs: ["showOn", "target", "filter", "alignToAnchor", "vertical", "popupAnimate", "popupAlign", "anchorAlign", "collision", "appendTo", "ariaLabel"], outputs: ["popupOpen", "popupClose", "select", "open", "close"], exportAs: ["kendoContextMenu"] }, { kind: "component", type: i5.CardComponent, selector: "kendo-card", inputs: ["orientation", "width"] }, { kind: "component", type: i5.CardActionsComponent, selector: "kendo-card-actions", inputs: ["orientation", "layout", "actions"], outputs: ["action"] }, { kind: "component", type: i5.CardBodyComponent, selector: "kendo-card-body" }] });
|
|
11380
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: LocalizedMessagesDirective$1, selector: "[kendoInlineAIPromptLocalizedMessages]" }, { kind: "component", type: i2.ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: i2.SpeechToTextButtonComponent, selector: "button[kendoSpeechToTextButton]", inputs: ["disabled", "size", "rounded", "fillMode", "themeColor", "integrationMode", "lang", "continuous", "interimResults", "maxAlternatives"], outputs: ["start", "end", "result", "error", "click"], exportAs: ["kendoSpeechToTextButton"] }, { kind: "component", type: i3.TextAreaComponent, selector: "kendo-textarea", inputs: ["focusableId", "flow", "inputAttributes", "adornmentsOrientation", "rows", "cols", "maxlength", "maxResizableRows", "tabindex", "tabIndex", "resizable", "size", "rounded", "fillMode", "showPrefixSeparator", "showSuffixSeparator"], outputs: ["focus", "blur", "valueChange"], exportAs: ["kendoTextArea"] }, { kind: "component", type: i3.TextAreaPrefixComponent, selector: "kendo-textarea-prefix", inputs: ["flow", "orientation"], exportAs: ["kendoTextAreaPrefix"] }, { kind: "component", type: i3.TextAreaSuffixComponent, selector: "kendo-textarea-suffix", inputs: ["flow", "orientation"], exportAs: ["kendoTextAreaSuffix"] }, { kind: "component", type: i4.ContextMenuComponent, selector: "kendo-contextmenu", inputs: ["showOn", "target", "filter", "alignToAnchor", "vertical", "popupAnimate", "popupAlign", "anchorAlign", "collision", "appendTo", "ariaLabel"], outputs: ["popupOpen", "popupClose", "select", "open", "close"], exportAs: ["kendoContextMenu"] }, { kind: "component", type: i5.CardComponent, selector: "kendo-card", inputs: ["orientation", "width"] }, { kind: "component", type: i5.CardActionsComponent, selector: "kendo-card-actions", inputs: ["orientation", "layout", "actions"], outputs: ["action"] }, { kind: "component", type: i5.CardBodyComponent, selector: "kendo-card-body" }] });
|
|
11379
11381
|
}
|
|
11380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
11382
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: InlineAIPromptContentComponent, decorators: [{
|
|
11381
11383
|
type: Component,
|
|
11382
11384
|
args: [{
|
|
11383
11385
|
exportAs: 'kendoInlineAIPromptContent',
|
|
@@ -11502,7 +11504,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
11502
11504
|
</kendo-contextmenu>
|
|
11503
11505
|
`,
|
|
11504
11506
|
standalone: true,
|
|
11505
|
-
imports: [NgClass, NgTemplateOutlet, LocalizedMessagesDirective, KENDO_BUTTONS, KENDO_TEXTAREA, KENDO_CONTEXTMENU, KENDO_CARD],
|
|
11507
|
+
imports: [NgClass, NgTemplateOutlet, LocalizedMessagesDirective$1, KENDO_BUTTONS, KENDO_TEXTAREA, KENDO_CONTEXTMENU, KENDO_CARD],
|
|
11506
11508
|
}]
|
|
11507
11509
|
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i1.LocalizationService, decorators: [{
|
|
11508
11510
|
type: Optional
|
|
@@ -11587,10 +11589,10 @@ class InlineAIPromptOutputTemplateDirective {
|
|
|
11587
11589
|
constructor(templateRef) {
|
|
11588
11590
|
this.templateRef = templateRef;
|
|
11589
11591
|
}
|
|
11590
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
11591
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.
|
|
11592
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: InlineAIPromptOutputTemplateDirective, deps: [{ token: i0.TemplateRef, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
11593
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: InlineAIPromptOutputTemplateDirective, isStandalone: true, selector: "[kendoInlineAIPromptOutputTemplate]", ngImport: i0 });
|
|
11592
11594
|
}
|
|
11593
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
11595
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: InlineAIPromptOutputTemplateDirective, decorators: [{
|
|
11594
11596
|
type: Directive,
|
|
11595
11597
|
args: [{
|
|
11596
11598
|
selector: '[kendoInlineAIPromptOutputTemplate]',
|
|
@@ -11780,8 +11782,8 @@ class InlineAIPromptComponent {
|
|
|
11780
11782
|
onPromptValueChange(value) {
|
|
11781
11783
|
this.promptValueChange.emit(value);
|
|
11782
11784
|
}
|
|
11783
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
11784
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
11785
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: InlineAIPromptComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
11786
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", 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: [
|
|
11785
11787
|
LocalizationService,
|
|
11786
11788
|
{
|
|
11787
11789
|
provide: L10N_PREFIX,
|
|
@@ -11829,9 +11831,9 @@ class InlineAIPromptComponent {
|
|
|
11829
11831
|
>
|
|
11830
11832
|
</kendo-inlineaiprompt-content>
|
|
11831
11833
|
</kendo-popup>
|
|
11832
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$2.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]" }] });
|
|
11834
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$2.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$1, selector: "[kendoInlineAIPromptLocalizedMessages]" }] });
|
|
11833
11835
|
}
|
|
11834
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
11836
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: InlineAIPromptComponent, decorators: [{
|
|
11835
11837
|
type: Component,
|
|
11836
11838
|
args: [{
|
|
11837
11839
|
exportAs: 'kendoInlineAIPrompt',
|
|
@@ -11887,7 +11889,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
11887
11889
|
</kendo-popup>
|
|
11888
11890
|
`,
|
|
11889
11891
|
standalone: true,
|
|
11890
|
-
imports: [KENDO_POPUP, InlineAIPromptContentComponent, LocalizedMessagesDirective],
|
|
11892
|
+
imports: [KENDO_POPUP, InlineAIPromptContentComponent, LocalizedMessagesDirective$1],
|
|
11891
11893
|
}]
|
|
11892
11894
|
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i0.ElementRef }], propDecorators: { promptValue: [{
|
|
11893
11895
|
type: Input
|
|
@@ -11955,15 +11957,15 @@ class InlineAIPromptCustomMessagesComponent extends Messages {
|
|
|
11955
11957
|
get override() {
|
|
11956
11958
|
return true;
|
|
11957
11959
|
}
|
|
11958
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
11959
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.
|
|
11960
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: InlineAIPromptCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
11961
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: InlineAIPromptCustomMessagesComponent, isStandalone: true, selector: "kendo-inlineaiprompt-messages", providers: [
|
|
11960
11962
|
{
|
|
11961
11963
|
provide: Messages,
|
|
11962
11964
|
useExisting: forwardRef(() => InlineAIPromptCustomMessagesComponent)
|
|
11963
11965
|
}
|
|
11964
11966
|
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
11965
11967
|
}
|
|
11966
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
11968
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: InlineAIPromptCustomMessagesComponent, decorators: [{
|
|
11967
11969
|
type: Component,
|
|
11968
11970
|
args: [{
|
|
11969
11971
|
providers: [
|
|
@@ -11979,62 +11981,2615 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
11979
11981
|
}], ctorParameters: () => [{ type: i1.LocalizationService }] });
|
|
11980
11982
|
|
|
11981
11983
|
/**
|
|
11982
|
-
*
|
|
11984
|
+
* @hidden
|
|
11985
|
+
*/
|
|
11986
|
+
class LlmKitMessages extends ComponentMessages {
|
|
11987
|
+
/**
|
|
11988
|
+
* Sets the aria-label for a disclosure head when it has no visible label/secondaryLabel and is currently collapsed.
|
|
11989
|
+
*/
|
|
11990
|
+
expandLabel;
|
|
11991
|
+
/**
|
|
11992
|
+
* Sets the aria-label for a disclosure head when it has no visible label/secondaryLabel and is currently expanded.
|
|
11993
|
+
*/
|
|
11994
|
+
collapseLabel;
|
|
11995
|
+
/**
|
|
11996
|
+
* Sets the text for the ToolCall's default Approve action.
|
|
11997
|
+
*/
|
|
11998
|
+
approveAction;
|
|
11999
|
+
/**
|
|
12000
|
+
* Sets the text for the ToolCall's default Reject action.
|
|
12001
|
+
*/
|
|
12002
|
+
rejectAction;
|
|
12003
|
+
/**
|
|
12004
|
+
* Sets the text for the Checkpoint's default action in the startOver state.
|
|
12005
|
+
*/
|
|
12006
|
+
startOverAction;
|
|
12007
|
+
/**
|
|
12008
|
+
* Sets the text for the Checkpoint's default action in the restore state.
|
|
12009
|
+
*/
|
|
12010
|
+
restoreAction;
|
|
12011
|
+
/**
|
|
12012
|
+
* Sets the text for the Checkpoint's default action in the redo state.
|
|
12013
|
+
*/
|
|
12014
|
+
redoAction;
|
|
12015
|
+
/**
|
|
12016
|
+
* Sets the text for the Checkpoint's default stamp shown in the redo state.
|
|
12017
|
+
*/
|
|
12018
|
+
checkpointRestoredText;
|
|
12019
|
+
/**
|
|
12020
|
+
* Sets the aria-label for the Citation popover's Previous-source action.
|
|
12021
|
+
*/
|
|
12022
|
+
previousSourceAction;
|
|
12023
|
+
/**
|
|
12024
|
+
* Sets the aria-label for the Citation popover's Next-source action.
|
|
12025
|
+
*/
|
|
12026
|
+
nextSourceAction;
|
|
12027
|
+
/**
|
|
12028
|
+
* Sets the label shown above the ToolCall's default formatted-JSON `parameters` block.
|
|
12029
|
+
*/
|
|
12030
|
+
parametersLabel;
|
|
12031
|
+
/**
|
|
12032
|
+
* Sets the label shown above the ToolCall's default formatted-JSON `result` block.
|
|
12033
|
+
*/
|
|
12034
|
+
resultLabel;
|
|
12035
|
+
/**
|
|
12036
|
+
* Sets the default ToolCall badge text for the awaiting approval state.
|
|
12037
|
+
*/
|
|
12038
|
+
awaitingApprovalStatus;
|
|
12039
|
+
/**
|
|
12040
|
+
* Sets the default ToolCall badge text for the completed state.
|
|
12041
|
+
*/
|
|
12042
|
+
completedStatus;
|
|
12043
|
+
/**
|
|
12044
|
+
* Sets the default ToolCall badge text for the error state.
|
|
12045
|
+
*/
|
|
12046
|
+
errorStatus;
|
|
12047
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: LlmKitMessages, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
12048
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: LlmKitMessages, isStandalone: true, inputs: { expandLabel: "expandLabel", collapseLabel: "collapseLabel", approveAction: "approveAction", rejectAction: "rejectAction", startOverAction: "startOverAction", restoreAction: "restoreAction", redoAction: "redoAction", checkpointRestoredText: "checkpointRestoredText", previousSourceAction: "previousSourceAction", nextSourceAction: "nextSourceAction", parametersLabel: "parametersLabel", resultLabel: "resultLabel", awaitingApprovalStatus: "awaitingApprovalStatus", completedStatus: "completedStatus", errorStatus: "errorStatus" }, usesInheritance: true, ngImport: i0 });
|
|
12049
|
+
}
|
|
12050
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: LlmKitMessages, decorators: [{
|
|
12051
|
+
type: Directive
|
|
12052
|
+
}], propDecorators: { expandLabel: [{
|
|
12053
|
+
type: Input
|
|
12054
|
+
}], collapseLabel: [{
|
|
12055
|
+
type: Input
|
|
12056
|
+
}], approveAction: [{
|
|
12057
|
+
type: Input
|
|
12058
|
+
}], rejectAction: [{
|
|
12059
|
+
type: Input
|
|
12060
|
+
}], startOverAction: [{
|
|
12061
|
+
type: Input
|
|
12062
|
+
}], restoreAction: [{
|
|
12063
|
+
type: Input
|
|
12064
|
+
}], redoAction: [{
|
|
12065
|
+
type: Input
|
|
12066
|
+
}], checkpointRestoredText: [{
|
|
12067
|
+
type: Input
|
|
12068
|
+
}], previousSourceAction: [{
|
|
12069
|
+
type: Input
|
|
12070
|
+
}], nextSourceAction: [{
|
|
12071
|
+
type: Input
|
|
12072
|
+
}], parametersLabel: [{
|
|
12073
|
+
type: Input
|
|
12074
|
+
}], resultLabel: [{
|
|
12075
|
+
type: Input
|
|
12076
|
+
}], awaitingApprovalStatus: [{
|
|
12077
|
+
type: Input
|
|
12078
|
+
}], completedStatus: [{
|
|
12079
|
+
type: Input
|
|
12080
|
+
}], errorStatus: [{
|
|
12081
|
+
type: Input
|
|
12082
|
+
}] } });
|
|
12083
|
+
|
|
12084
|
+
/**
|
|
12085
|
+
* @hidden
|
|
12086
|
+
*/
|
|
12087
|
+
class LocalizedMessagesDirective extends LlmKitMessages {
|
|
12088
|
+
service;
|
|
12089
|
+
constructor(service) {
|
|
12090
|
+
super();
|
|
12091
|
+
this.service = service;
|
|
12092
|
+
}
|
|
12093
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: LocalizedMessagesDirective, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
12094
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: LocalizedMessagesDirective, isStandalone: true, selector: "[kendoLlmKitLocalizedMessages]", providers: [
|
|
12095
|
+
{
|
|
12096
|
+
provide: LlmKitMessages,
|
|
12097
|
+
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
12098
|
+
}
|
|
12099
|
+
], usesInheritance: true, ngImport: i0 });
|
|
12100
|
+
}
|
|
12101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: LocalizedMessagesDirective, decorators: [{
|
|
12102
|
+
type: Directive,
|
|
12103
|
+
args: [{
|
|
12104
|
+
providers: [
|
|
12105
|
+
{
|
|
12106
|
+
provide: LlmKitMessages,
|
|
12107
|
+
useExisting: forwardRef(() => LocalizedMessagesDirective)
|
|
12108
|
+
}
|
|
12109
|
+
],
|
|
12110
|
+
selector: '[kendoLlmKitLocalizedMessages]',
|
|
12111
|
+
standalone: true
|
|
12112
|
+
}]
|
|
12113
|
+
}], ctorParameters: () => [{ type: i1.LocalizationService }] });
|
|
12114
|
+
|
|
12115
|
+
/**
|
|
12116
|
+
* @hidden
|
|
11983
12117
|
*
|
|
11984
|
-
*
|
|
11985
|
-
|
|
11986
|
-
|
|
11987
|
-
|
|
12118
|
+
* Shared internal component used by `Reasoning`, `ChainOfThought`, and `ToolCall`.
|
|
12119
|
+
*/
|
|
12120
|
+
class AgentStepBase {
|
|
12121
|
+
renderer;
|
|
12122
|
+
ngZone;
|
|
12123
|
+
localization;
|
|
12124
|
+
head;
|
|
12125
|
+
set label(value) {
|
|
12126
|
+
this._label.set(value);
|
|
12127
|
+
}
|
|
12128
|
+
get label() {
|
|
12129
|
+
return this._label();
|
|
12130
|
+
}
|
|
12131
|
+
set secondaryLabel(value) {
|
|
12132
|
+
this._secondaryLabel.set(value);
|
|
12133
|
+
}
|
|
12134
|
+
get secondaryLabel() {
|
|
12135
|
+
return this._secondaryLabel();
|
|
12136
|
+
}
|
|
12137
|
+
set icon(value) {
|
|
12138
|
+
this._icon.set(value);
|
|
12139
|
+
}
|
|
12140
|
+
get icon() {
|
|
12141
|
+
return this._icon();
|
|
12142
|
+
}
|
|
12143
|
+
set svgIcon(value) {
|
|
12144
|
+
this._svgIcon.set(value);
|
|
12145
|
+
}
|
|
12146
|
+
get svgIcon() {
|
|
12147
|
+
return this._svgIcon();
|
|
12148
|
+
}
|
|
12149
|
+
set completed(value) {
|
|
12150
|
+
this._completed.set(value);
|
|
12151
|
+
}
|
|
12152
|
+
get completed() {
|
|
12153
|
+
return this._completed();
|
|
12154
|
+
}
|
|
12155
|
+
set expandable(value) {
|
|
12156
|
+
this._expandable.set(value);
|
|
12157
|
+
}
|
|
12158
|
+
get expandable() {
|
|
12159
|
+
return this._expandable();
|
|
12160
|
+
}
|
|
12161
|
+
set expanded(value) {
|
|
12162
|
+
this._expanded.set(value);
|
|
12163
|
+
}
|
|
12164
|
+
get expanded() {
|
|
12165
|
+
return this._expanded();
|
|
12166
|
+
}
|
|
12167
|
+
set linesAdded(value) {
|
|
12168
|
+
this._linesAdded.set(value);
|
|
12169
|
+
}
|
|
12170
|
+
get linesAdded() {
|
|
12171
|
+
return this._linesAdded();
|
|
12172
|
+
}
|
|
12173
|
+
set linesRemoved(value) {
|
|
12174
|
+
this._linesRemoved.set(value);
|
|
12175
|
+
}
|
|
12176
|
+
get linesRemoved() {
|
|
12177
|
+
return this._linesRemoved();
|
|
12178
|
+
}
|
|
12179
|
+
expandedChange = new EventEmitter();
|
|
12180
|
+
hostClass = true;
|
|
12181
|
+
get completedClass() {
|
|
12182
|
+
return this.completed;
|
|
12183
|
+
}
|
|
12184
|
+
expandSvgIcon = chevronRightIcon;
|
|
12185
|
+
collapseSvgIcon = chevronUpIcon;
|
|
12186
|
+
expandIcon = 'chevron-right';
|
|
12187
|
+
collapseIcon = 'chevron-up';
|
|
12188
|
+
_label = signal(undefined, ...(ngDevMode ? [{ debugName: "_label" }] : []));
|
|
12189
|
+
_secondaryLabel = signal(undefined, ...(ngDevMode ? [{ debugName: "_secondaryLabel" }] : []));
|
|
12190
|
+
_icon = signal(undefined, ...(ngDevMode ? [{ debugName: "_icon" }] : []));
|
|
12191
|
+
_svgIcon = signal(undefined, ...(ngDevMode ? [{ debugName: "_svgIcon" }] : []));
|
|
12192
|
+
_completed = signal(false, ...(ngDevMode ? [{ debugName: "_completed" }] : []));
|
|
12193
|
+
_expandable = signal(false, ...(ngDevMode ? [{ debugName: "_expandable" }] : []));
|
|
12194
|
+
_expanded = signal(false, ...(ngDevMode ? [{ debugName: "_expanded" }] : []));
|
|
12195
|
+
_linesAdded = signal(undefined, ...(ngDevMode ? [{ debugName: "_linesAdded" }] : []));
|
|
12196
|
+
_linesRemoved = signal(undefined, ...(ngDevMode ? [{ debugName: "_linesRemoved" }] : []));
|
|
12197
|
+
subs = new Subscription();
|
|
12198
|
+
constructor(renderer, ngZone, localization) {
|
|
12199
|
+
this.renderer = renderer;
|
|
12200
|
+
this.ngZone = ngZone;
|
|
12201
|
+
this.localization = localization;
|
|
12202
|
+
}
|
|
12203
|
+
/**
|
|
12204
|
+
* A middle-dot separator precedes `secondaryLabel` only when `label` is also shown—otherwise
|
|
12205
|
+
* `secondaryLabel` would be the first segment in the content region.
|
|
12206
|
+
*/
|
|
12207
|
+
get showSepBeforeSecondary() {
|
|
12208
|
+
return !!this.label && !!this.secondaryLabel;
|
|
12209
|
+
}
|
|
12210
|
+
get accessibleLabel() {
|
|
12211
|
+
if (this.label || this.secondaryLabel) {
|
|
12212
|
+
return null;
|
|
12213
|
+
}
|
|
12214
|
+
return this.expandable && this.expanded
|
|
12215
|
+
? this.localization.get('collapseLabel')
|
|
12216
|
+
: this.localization.get('expandLabel');
|
|
12217
|
+
}
|
|
12218
|
+
ngOnInit() {
|
|
12219
|
+
this.ngZone.runOutsideAngular(() => {
|
|
12220
|
+
this.subs.add(this.renderer.listen(this.head.nativeElement, 'click', () => this.toggle()));
|
|
12221
|
+
});
|
|
12222
|
+
}
|
|
12223
|
+
ngOnDestroy() {
|
|
12224
|
+
this.subs.unsubscribe();
|
|
12225
|
+
}
|
|
12226
|
+
toggle() {
|
|
12227
|
+
if (!this.expandable) {
|
|
12228
|
+
return;
|
|
12229
|
+
}
|
|
12230
|
+
this.ngZone.run(() => {
|
|
12231
|
+
const expanded = !this.expanded;
|
|
12232
|
+
this._expanded.set(expanded);
|
|
12233
|
+
this.expandedChange.emit(expanded);
|
|
12234
|
+
});
|
|
12235
|
+
}
|
|
12236
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AgentStepBase, deps: [{ token: i0.Renderer2 }, { token: i0.NgZone }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12237
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: AgentStepBase, isStandalone: true, selector: "[kendoLlmKitAgentStep]", inputs: { label: "label", secondaryLabel: "secondaryLabel", icon: "icon", svgIcon: "svgIcon", completed: "completed", expandable: "expandable", expanded: "expanded", linesAdded: "linesAdded", linesRemoved: "linesRemoved" }, outputs: { expandedChange: "expandedChange" }, host: { properties: { "class.k-agent-step": "this.hostClass", "class.k-agent-completed": "this.completedClass" } }, viewQueries: [{ propertyName: "head", first: true, predicate: ["head"], descendants: true, static: true }], ngImport: i0, template: `
|
|
12238
|
+
<ng-container
|
|
12239
|
+
kendoLlmKitLocalizedMessages
|
|
12240
|
+
i18n-expandLabel="kendo.llmkit.expandLabel|The aria-label for a collapsed disclosure head without visible text."
|
|
12241
|
+
expandLabel="Expand"
|
|
12242
|
+
i18n-collapseLabel="kendo.llmkit.collapseLabel|The aria-label for an expanded disclosure head without visible text."
|
|
12243
|
+
collapseLabel="Collapse">
|
|
12244
|
+
</ng-container>
|
|
12245
|
+
<button
|
|
12246
|
+
#head
|
|
12247
|
+
type="button"
|
|
12248
|
+
class="k-agent-step-head"
|
|
12249
|
+
[attr.aria-expanded]="expandable ? (expanded ? 'true' : 'false') : null"
|
|
12250
|
+
[attr.aria-label]="accessibleLabel"
|
|
12251
|
+
>
|
|
12252
|
+
@if (icon || svgIcon) {
|
|
12253
|
+
<kendo-icon-wrapper
|
|
12254
|
+
innerCssClass="k-agent-step-icon"
|
|
12255
|
+
size="small"
|
|
12256
|
+
[name]="icon"
|
|
12257
|
+
[svgIcon]="svgIcon">
|
|
12258
|
+
</kendo-icon-wrapper>
|
|
12259
|
+
}
|
|
12260
|
+
<span class="k-agent-step-content">
|
|
12261
|
+
@if (label) {
|
|
12262
|
+
<span class="k-agent-step-label">{{ label }}</span>
|
|
12263
|
+
}
|
|
12264
|
+
@if (secondaryLabel) {
|
|
12265
|
+
@if (showSepBeforeSecondary) {
|
|
12266
|
+
<span class="k-agent-step-sep">·</span>
|
|
12267
|
+
}
|
|
12268
|
+
<span class="k-agent-step-secondary">{{ secondaryLabel }}</span>
|
|
12269
|
+
}
|
|
12270
|
+
@if (linesAdded !== undefined && linesAdded !== null) {
|
|
12271
|
+
<span class="k-agent-step-added">+{{ linesAdded }}</span>
|
|
12272
|
+
}
|
|
12273
|
+
@if (linesRemoved !== undefined && linesRemoved !== null) {
|
|
12274
|
+
<span class="k-agent-step-removed">-{{ linesRemoved }}</span>
|
|
12275
|
+
}
|
|
12276
|
+
<ng-content select="[kendoLlmKitAgentStepBadge]"></ng-content>
|
|
12277
|
+
@if (expandable) {
|
|
12278
|
+
<kendo-icon-wrapper
|
|
12279
|
+
innerCssClass="k-agent-step-expand"
|
|
12280
|
+
size="small"
|
|
12281
|
+
[name]="expanded ? collapseIcon : expandIcon"
|
|
12282
|
+
[svgIcon]="expanded ? collapseSvgIcon : expandSvgIcon">
|
|
12283
|
+
</kendo-icon-wrapper>
|
|
12284
|
+
}
|
|
12285
|
+
</span>
|
|
12286
|
+
</button>
|
|
12287
|
+
@if (expandable && expanded) {
|
|
12288
|
+
<div class="k-agent-step-body">
|
|
12289
|
+
<ng-content></ng-content>
|
|
12290
|
+
</div>
|
|
12291
|
+
}
|
|
12292
|
+
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoLlmKitLocalizedMessages]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12293
|
+
}
|
|
12294
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AgentStepBase, decorators: [{
|
|
12295
|
+
type: Component,
|
|
12296
|
+
args: [{
|
|
12297
|
+
selector: '[kendoLlmKitAgentStep]',
|
|
12298
|
+
standalone: true,
|
|
12299
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12300
|
+
imports: [IconWrapperComponent, LocalizedMessagesDirective],
|
|
12301
|
+
template: `
|
|
12302
|
+
<ng-container
|
|
12303
|
+
kendoLlmKitLocalizedMessages
|
|
12304
|
+
i18n-expandLabel="kendo.llmkit.expandLabel|The aria-label for a collapsed disclosure head without visible text."
|
|
12305
|
+
expandLabel="Expand"
|
|
12306
|
+
i18n-collapseLabel="kendo.llmkit.collapseLabel|The aria-label for an expanded disclosure head without visible text."
|
|
12307
|
+
collapseLabel="Collapse">
|
|
12308
|
+
</ng-container>
|
|
12309
|
+
<button
|
|
12310
|
+
#head
|
|
12311
|
+
type="button"
|
|
12312
|
+
class="k-agent-step-head"
|
|
12313
|
+
[attr.aria-expanded]="expandable ? (expanded ? 'true' : 'false') : null"
|
|
12314
|
+
[attr.aria-label]="accessibleLabel"
|
|
12315
|
+
>
|
|
12316
|
+
@if (icon || svgIcon) {
|
|
12317
|
+
<kendo-icon-wrapper
|
|
12318
|
+
innerCssClass="k-agent-step-icon"
|
|
12319
|
+
size="small"
|
|
12320
|
+
[name]="icon"
|
|
12321
|
+
[svgIcon]="svgIcon">
|
|
12322
|
+
</kendo-icon-wrapper>
|
|
12323
|
+
}
|
|
12324
|
+
<span class="k-agent-step-content">
|
|
12325
|
+
@if (label) {
|
|
12326
|
+
<span class="k-agent-step-label">{{ label }}</span>
|
|
12327
|
+
}
|
|
12328
|
+
@if (secondaryLabel) {
|
|
12329
|
+
@if (showSepBeforeSecondary) {
|
|
12330
|
+
<span class="k-agent-step-sep">·</span>
|
|
12331
|
+
}
|
|
12332
|
+
<span class="k-agent-step-secondary">{{ secondaryLabel }}</span>
|
|
12333
|
+
}
|
|
12334
|
+
@if (linesAdded !== undefined && linesAdded !== null) {
|
|
12335
|
+
<span class="k-agent-step-added">+{{ linesAdded }}</span>
|
|
12336
|
+
}
|
|
12337
|
+
@if (linesRemoved !== undefined && linesRemoved !== null) {
|
|
12338
|
+
<span class="k-agent-step-removed">-{{ linesRemoved }}</span>
|
|
12339
|
+
}
|
|
12340
|
+
<ng-content select="[kendoLlmKitAgentStepBadge]"></ng-content>
|
|
12341
|
+
@if (expandable) {
|
|
12342
|
+
<kendo-icon-wrapper
|
|
12343
|
+
innerCssClass="k-agent-step-expand"
|
|
12344
|
+
size="small"
|
|
12345
|
+
[name]="expanded ? collapseIcon : expandIcon"
|
|
12346
|
+
[svgIcon]="expanded ? collapseSvgIcon : expandSvgIcon">
|
|
12347
|
+
</kendo-icon-wrapper>
|
|
12348
|
+
}
|
|
12349
|
+
</span>
|
|
12350
|
+
</button>
|
|
12351
|
+
@if (expandable && expanded) {
|
|
12352
|
+
<div class="k-agent-step-body">
|
|
12353
|
+
<ng-content></ng-content>
|
|
12354
|
+
</div>
|
|
12355
|
+
}
|
|
12356
|
+
`
|
|
12357
|
+
}]
|
|
12358
|
+
}], ctorParameters: () => [{ type: i0.Renderer2 }, { type: i0.NgZone }, { type: i1.LocalizationService }], propDecorators: { head: [{
|
|
12359
|
+
type: ViewChild,
|
|
12360
|
+
args: ['head', { static: true }]
|
|
12361
|
+
}], label: [{
|
|
12362
|
+
type: Input
|
|
12363
|
+
}], secondaryLabel: [{
|
|
12364
|
+
type: Input
|
|
12365
|
+
}], icon: [{
|
|
12366
|
+
type: Input
|
|
12367
|
+
}], svgIcon: [{
|
|
12368
|
+
type: Input
|
|
12369
|
+
}], completed: [{
|
|
12370
|
+
type: Input
|
|
12371
|
+
}], expandable: [{
|
|
12372
|
+
type: Input
|
|
12373
|
+
}], expanded: [{
|
|
12374
|
+
type: Input
|
|
12375
|
+
}], linesAdded: [{
|
|
12376
|
+
type: Input
|
|
12377
|
+
}], linesRemoved: [{
|
|
12378
|
+
type: Input
|
|
12379
|
+
}], expandedChange: [{
|
|
12380
|
+
type: Output
|
|
12381
|
+
}], hostClass: [{
|
|
12382
|
+
type: HostBinding,
|
|
12383
|
+
args: ['class.k-agent-step']
|
|
12384
|
+
}], completedClass: [{
|
|
12385
|
+
type: HostBinding,
|
|
12386
|
+
args: ['class.k-agent-completed']
|
|
12387
|
+
}] } });
|
|
12388
|
+
|
|
12389
|
+
/**
|
|
12390
|
+
* Represents the template for the Reasoning body. Replaces the `content` input when supplied.
|
|
11988
12391
|
*
|
|
11989
|
-
* @
|
|
11990
|
-
*
|
|
11991
|
-
*
|
|
11992
|
-
*
|
|
11993
|
-
*
|
|
11994
|
-
*
|
|
11995
|
-
*
|
|
12392
|
+
* @example
|
|
12393
|
+
* ```html
|
|
12394
|
+
* <kendo-reasoning>
|
|
12395
|
+
* <ng-template kendoReasoningContentTemplate>
|
|
12396
|
+
* <p>Custom reasoning content.</p>
|
|
12397
|
+
* </ng-template>
|
|
12398
|
+
* </kendo-reasoning>
|
|
11996
12399
|
* ```
|
|
11997
12400
|
*/
|
|
11998
|
-
|
|
11999
|
-
|
|
12000
|
-
|
|
12001
|
-
|
|
12002
|
-
|
|
12003
|
-
|
|
12004
|
-
|
|
12005
|
-
|
|
12006
|
-
|
|
12007
|
-
|
|
12008
|
-
|
|
12009
|
-
]
|
|
12401
|
+
class ReasoningContentTemplateDirective {
|
|
12402
|
+
templateRef;
|
|
12403
|
+
constructor(templateRef) {
|
|
12404
|
+
this.templateRef = templateRef;
|
|
12405
|
+
}
|
|
12406
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ReasoningContentTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
12407
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: ReasoningContentTemplateDirective, isStandalone: true, selector: "[kendoReasoningContentTemplate]", ngImport: i0 });
|
|
12408
|
+
}
|
|
12409
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ReasoningContentTemplateDirective, decorators: [{
|
|
12410
|
+
type: Directive,
|
|
12411
|
+
args: [{
|
|
12412
|
+
selector: '[kendoReasoningContentTemplate]',
|
|
12413
|
+
standalone: true
|
|
12414
|
+
}]
|
|
12415
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
12416
|
+
|
|
12010
12417
|
/**
|
|
12011
|
-
*
|
|
12418
|
+
* Represents the [Kendo UI Reasoning component for Angular](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/llm-kit/reasoning).
|
|
12419
|
+
* Displays a model's reasoning trace as a single disclosure block, separately from the final answer.
|
|
12012
12420
|
*
|
|
12013
12421
|
* @example
|
|
12014
|
-
* ```
|
|
12015
|
-
*
|
|
12016
|
-
*
|
|
12017
|
-
*
|
|
12018
|
-
*
|
|
12019
|
-
* standalone: true,
|
|
12020
|
-
* imports: [KENDO_CHAT],
|
|
12021
|
-
* selector: 'my-app',
|
|
12022
|
-
* template: `<kendo-chat></kendo-chat>`
|
|
12023
|
-
* })
|
|
12024
|
-
* export class AppComponent {}
|
|
12422
|
+
* ```html
|
|
12423
|
+
* <kendo-reasoning
|
|
12424
|
+
* [expandable]="true"
|
|
12425
|
+
* content="Analyzing the request and forming a plan of action."
|
|
12426
|
+
* ></kendo-reasoning>
|
|
12025
12427
|
* ```
|
|
12026
12428
|
*/
|
|
12027
|
-
|
|
12028
|
-
|
|
12029
|
-
|
|
12030
|
-
|
|
12031
|
-
|
|
12032
|
-
|
|
12033
|
-
|
|
12034
|
-
|
|
12035
|
-
|
|
12036
|
-
|
|
12037
|
-
|
|
12429
|
+
class ReasoningComponent {
|
|
12430
|
+
localization;
|
|
12431
|
+
/**
|
|
12432
|
+
* Renders the supplied template instead of the `content` input.
|
|
12433
|
+
*
|
|
12434
|
+
* @hidden
|
|
12435
|
+
*/
|
|
12436
|
+
contentTemplate;
|
|
12437
|
+
/**
|
|
12438
|
+
* Sets the main label shown in the expandable header.
|
|
12439
|
+
*
|
|
12440
|
+
* @default 'Reasoning'
|
|
12441
|
+
*/
|
|
12442
|
+
set label(value) {
|
|
12443
|
+
this._label.set(value);
|
|
12444
|
+
}
|
|
12445
|
+
get label() {
|
|
12446
|
+
return this._label();
|
|
12447
|
+
}
|
|
12448
|
+
/**
|
|
12449
|
+
* Sets the secondary descriptive text shown next to the label.
|
|
12450
|
+
*/
|
|
12451
|
+
set secondaryLabel(value) {
|
|
12452
|
+
this._secondaryLabel.set(value);
|
|
12453
|
+
}
|
|
12454
|
+
get secondaryLabel() {
|
|
12455
|
+
return this._secondaryLabel();
|
|
12456
|
+
}
|
|
12457
|
+
/**
|
|
12458
|
+
* Sets the text content displayed in the reasoning body.
|
|
12459
|
+
*/
|
|
12460
|
+
set content(value) {
|
|
12461
|
+
this._content.set(value);
|
|
12462
|
+
}
|
|
12463
|
+
get content() {
|
|
12464
|
+
return this._content();
|
|
12465
|
+
}
|
|
12466
|
+
/**
|
|
12467
|
+
* Sets the name of a font icon shown in the expandable header.
|
|
12468
|
+
*
|
|
12469
|
+
* @default 'sparkles'
|
|
12470
|
+
*/
|
|
12471
|
+
set icon(value) {
|
|
12472
|
+
this._icon.set(value);
|
|
12473
|
+
}
|
|
12474
|
+
get icon() {
|
|
12475
|
+
return this._icon();
|
|
12476
|
+
}
|
|
12477
|
+
/**
|
|
12478
|
+
* Sets the SVG icon shown in the expandable header.
|
|
12479
|
+
*
|
|
12480
|
+
* @default sparklesIcon
|
|
12481
|
+
*/
|
|
12482
|
+
set svgIcon(value) {
|
|
12483
|
+
this._svgIcon.set(value);
|
|
12484
|
+
}
|
|
12485
|
+
get svgIcon() {
|
|
12486
|
+
return this._svgIcon();
|
|
12487
|
+
}
|
|
12488
|
+
/**
|
|
12489
|
+
* Sets whether the reasoning block has completed its thinking phase.
|
|
12490
|
+
*
|
|
12491
|
+
* @default false
|
|
12492
|
+
*/
|
|
12493
|
+
set completed(value) {
|
|
12494
|
+
this._completed.set(value);
|
|
12495
|
+
}
|
|
12496
|
+
get completed() {
|
|
12497
|
+
return this._completed();
|
|
12498
|
+
}
|
|
12499
|
+
/**
|
|
12500
|
+
* Sets whether the expandable header supports expanding and collapsing the reasoning body.
|
|
12501
|
+
*
|
|
12502
|
+
* @default false
|
|
12503
|
+
*/
|
|
12504
|
+
set expandable(value) {
|
|
12505
|
+
this._expandable.set(value);
|
|
12506
|
+
}
|
|
12507
|
+
get expandable() {
|
|
12508
|
+
return this._expandable();
|
|
12509
|
+
}
|
|
12510
|
+
/**
|
|
12511
|
+
* Sets whether the reasoning body is visible. Ignored when `expandable` is `false`.
|
|
12512
|
+
*
|
|
12513
|
+
* @default false
|
|
12514
|
+
*/
|
|
12515
|
+
set expanded(value) {
|
|
12516
|
+
this._expanded.set(value);
|
|
12517
|
+
}
|
|
12518
|
+
get expanded() {
|
|
12519
|
+
return this._expanded();
|
|
12520
|
+
}
|
|
12521
|
+
/**
|
|
12522
|
+
* Fires when the user expands or collapses the reasoning body through the expandable header.
|
|
12523
|
+
*/
|
|
12524
|
+
expandedChange = new EventEmitter();
|
|
12525
|
+
get direction() {
|
|
12526
|
+
return this._direction();
|
|
12527
|
+
}
|
|
12528
|
+
set direction(value) {
|
|
12529
|
+
this._direction.set(value);
|
|
12530
|
+
}
|
|
12531
|
+
_label = signal('Reasoning', ...(ngDevMode ? [{ debugName: "_label" }] : []));
|
|
12532
|
+
_secondaryLabel = signal(undefined, ...(ngDevMode ? [{ debugName: "_secondaryLabel" }] : []));
|
|
12533
|
+
_content = signal(undefined, ...(ngDevMode ? [{ debugName: "_content" }] : []));
|
|
12534
|
+
_icon = signal('sparkles', ...(ngDevMode ? [{ debugName: "_icon" }] : []));
|
|
12535
|
+
_svgIcon = signal(sparklesIcon, ...(ngDevMode ? [{ debugName: "_svgIcon" }] : []));
|
|
12536
|
+
_completed = signal(false, ...(ngDevMode ? [{ debugName: "_completed" }] : []));
|
|
12537
|
+
_expandable = signal(false, ...(ngDevMode ? [{ debugName: "_expandable" }] : []));
|
|
12538
|
+
_expanded = signal(false, ...(ngDevMode ? [{ debugName: "_expanded" }] : []));
|
|
12539
|
+
_direction = signal(undefined, ...(ngDevMode ? [{ debugName: "_direction" }] : []));
|
|
12540
|
+
subscription;
|
|
12541
|
+
constructor(localization) {
|
|
12542
|
+
this.localization = localization;
|
|
12543
|
+
validatePackage(packageMetadata);
|
|
12544
|
+
this.direction = this.localization.rtl ? 'rtl' : 'ltr';
|
|
12545
|
+
this.subscription = this.localization.changes.subscribe(({ rtl }) => {
|
|
12546
|
+
this.direction = rtl ? 'rtl' : 'ltr';
|
|
12547
|
+
});
|
|
12548
|
+
}
|
|
12549
|
+
ngOnDestroy() {
|
|
12550
|
+
this.subscription.unsubscribe();
|
|
12551
|
+
}
|
|
12552
|
+
/**
|
|
12553
|
+
* @hidden
|
|
12554
|
+
*/
|
|
12555
|
+
handleExpandedChange(expanded) {
|
|
12556
|
+
this.expanded = expanded;
|
|
12557
|
+
this.expandedChange.emit(expanded);
|
|
12558
|
+
}
|
|
12559
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ReasoningComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12560
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: ReasoningComponent, isStandalone: true, selector: "kendo-reasoning", inputs: { label: "label", secondaryLabel: "secondaryLabel", content: "content", icon: "icon", svgIcon: "svgIcon", completed: "completed", expandable: "expandable", expanded: "expanded" }, outputs: { expandedChange: "expandedChange" }, host: { properties: { "attr.dir": "this.direction" } }, providers: [
|
|
12561
|
+
LocalizationService,
|
|
12562
|
+
{ provide: L10N_PREFIX, useValue: 'kendo.llmkit' }
|
|
12563
|
+
], queries: [{ propertyName: "contentTemplate", first: true, predicate: ReasoningContentTemplateDirective, descendants: true }], exportAs: ["kendoReasoning"], ngImport: i0, template: `
|
|
12564
|
+
<div
|
|
12565
|
+
class="k-reasoning"
|
|
12566
|
+
kendoLlmKitAgentStep
|
|
12567
|
+
[label]="label"
|
|
12568
|
+
[secondaryLabel]="secondaryLabel"
|
|
12569
|
+
[icon]="icon"
|
|
12570
|
+
[svgIcon]="svgIcon"
|
|
12571
|
+
[completed]="completed"
|
|
12572
|
+
[expandable]="expandable"
|
|
12573
|
+
[expanded]="expanded"
|
|
12574
|
+
(expandedChange)="handleExpandedChange($event)"
|
|
12575
|
+
>
|
|
12576
|
+
@if (contentTemplate) {
|
|
12577
|
+
<ng-container [ngTemplateOutlet]="contentTemplate.templateRef"></ng-container>
|
|
12578
|
+
} @else if (content) {
|
|
12579
|
+
<span>{{ content }}</span>
|
|
12580
|
+
}
|
|
12581
|
+
</div>
|
|
12582
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AgentStepBase, selector: "[kendoLlmKitAgentStep]", inputs: ["label", "secondaryLabel", "icon", "svgIcon", "completed", "expandable", "expanded", "linesAdded", "linesRemoved"], outputs: ["expandedChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12583
|
+
}
|
|
12584
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ReasoningComponent, decorators: [{
|
|
12585
|
+
type: Component,
|
|
12586
|
+
args: [{
|
|
12587
|
+
exportAs: 'kendoReasoning',
|
|
12588
|
+
selector: 'kendo-reasoning',
|
|
12589
|
+
standalone: true,
|
|
12590
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12591
|
+
providers: [
|
|
12592
|
+
LocalizationService,
|
|
12593
|
+
{ provide: L10N_PREFIX, useValue: 'kendo.llmkit' }
|
|
12594
|
+
],
|
|
12595
|
+
imports: [AgentStepBase, NgTemplateOutlet],
|
|
12596
|
+
template: `
|
|
12597
|
+
<div
|
|
12598
|
+
class="k-reasoning"
|
|
12599
|
+
kendoLlmKitAgentStep
|
|
12600
|
+
[label]="label"
|
|
12601
|
+
[secondaryLabel]="secondaryLabel"
|
|
12602
|
+
[icon]="icon"
|
|
12603
|
+
[svgIcon]="svgIcon"
|
|
12604
|
+
[completed]="completed"
|
|
12605
|
+
[expandable]="expandable"
|
|
12606
|
+
[expanded]="expanded"
|
|
12607
|
+
(expandedChange)="handleExpandedChange($event)"
|
|
12608
|
+
>
|
|
12609
|
+
@if (contentTemplate) {
|
|
12610
|
+
<ng-container [ngTemplateOutlet]="contentTemplate.templateRef"></ng-container>
|
|
12611
|
+
} @else if (content) {
|
|
12612
|
+
<span>{{ content }}</span>
|
|
12613
|
+
}
|
|
12614
|
+
</div>
|
|
12615
|
+
`
|
|
12616
|
+
}]
|
|
12617
|
+
}], ctorParameters: () => [{ type: i1.LocalizationService }], propDecorators: { contentTemplate: [{
|
|
12618
|
+
type: ContentChild,
|
|
12619
|
+
args: [ReasoningContentTemplateDirective]
|
|
12620
|
+
}], label: [{
|
|
12621
|
+
type: Input
|
|
12622
|
+
}], secondaryLabel: [{
|
|
12623
|
+
type: Input
|
|
12624
|
+
}], content: [{
|
|
12625
|
+
type: Input
|
|
12626
|
+
}], icon: [{
|
|
12627
|
+
type: Input
|
|
12628
|
+
}], svgIcon: [{
|
|
12629
|
+
type: Input
|
|
12630
|
+
}], completed: [{
|
|
12631
|
+
type: Input
|
|
12632
|
+
}], expandable: [{
|
|
12633
|
+
type: Input
|
|
12634
|
+
}], expanded: [{
|
|
12635
|
+
type: Input
|
|
12636
|
+
}], expandedChange: [{
|
|
12637
|
+
type: Output
|
|
12638
|
+
}], direction: [{
|
|
12639
|
+
type: HostBinding,
|
|
12640
|
+
args: ['attr.dir']
|
|
12641
|
+
}] } });
|
|
12642
|
+
|
|
12643
|
+
/**
|
|
12644
|
+
* Represents the template that replaces each thought row in the `ChainOfThought` component.
|
|
12645
|
+
* The current `Thought` item is available as the `$implicit` template value.
|
|
12646
|
+
*
|
|
12647
|
+
* @example
|
|
12648
|
+
* ```html
|
|
12649
|
+
* <kendo-chainofthought [thoughts]="thoughts">
|
|
12650
|
+
* <ng-template kendoThoughtTemplate let-thought>
|
|
12651
|
+
* <div>{{ thought.label }}</div>
|
|
12652
|
+
* </ng-template>
|
|
12653
|
+
* </kendo-chainofthought>
|
|
12654
|
+
* ```
|
|
12655
|
+
*/
|
|
12656
|
+
class ThoughtTemplateDirective {
|
|
12657
|
+
templateRef;
|
|
12658
|
+
constructor(templateRef) {
|
|
12659
|
+
this.templateRef = templateRef;
|
|
12660
|
+
}
|
|
12661
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ThoughtTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
12662
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: ThoughtTemplateDirective, isStandalone: true, selector: "[kendoThoughtTemplate]", ngImport: i0 });
|
|
12663
|
+
}
|
|
12664
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ThoughtTemplateDirective, decorators: [{
|
|
12665
|
+
type: Directive,
|
|
12666
|
+
args: [{
|
|
12667
|
+
selector: '[kendoThoughtTemplate]',
|
|
12668
|
+
standalone: true
|
|
12669
|
+
}]
|
|
12670
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
12671
|
+
|
|
12672
|
+
/**
|
|
12673
|
+
* @hidden
|
|
12674
|
+
*
|
|
12675
|
+
* Internal component that renders one `Thought` row inside `ChainOfThought`.
|
|
12676
|
+
*/
|
|
12677
|
+
class ThoughtRowComponent {
|
|
12678
|
+
thoughtTemplate;
|
|
12679
|
+
set thought(value) {
|
|
12680
|
+
this._thought.set(value);
|
|
12681
|
+
}
|
|
12682
|
+
get thought() {
|
|
12683
|
+
return this._thought();
|
|
12684
|
+
}
|
|
12685
|
+
hostClass = true;
|
|
12686
|
+
get completedClass() {
|
|
12687
|
+
return this.thought?.completed === true;
|
|
12688
|
+
}
|
|
12689
|
+
_thought = signal(undefined, ...(ngDevMode ? [{ debugName: "_thought" }] : []));
|
|
12690
|
+
/**
|
|
12691
|
+
* A middle-dot separator precedes `secondaryLabel` only when `label` is also shown—otherwise
|
|
12692
|
+
* `secondaryLabel` would be the first segment in the content region.
|
|
12693
|
+
*/
|
|
12694
|
+
get showSepBeforeSecondary() {
|
|
12695
|
+
return !!this.thought?.label && !!this.thought?.secondaryLabel;
|
|
12696
|
+
}
|
|
12697
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ThoughtRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12698
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: ThoughtRowComponent, isStandalone: true, selector: "[kendoLlmKitThoughtRow]", inputs: { thoughtTemplate: "thoughtTemplate", thought: "thought" }, host: { properties: { "class.k-thought": "this.hostClass", "class.k-thought-completed": "this.completedClass" } }, ngImport: i0, template: `
|
|
12699
|
+
<span class="k-agent-step-icon-col">
|
|
12700
|
+
@if (thought?.icon || thought?.svgIcon) {
|
|
12701
|
+
<kendo-icon-wrapper
|
|
12702
|
+
innerCssClass="k-agent-step-icon"
|
|
12703
|
+
size="small"
|
|
12704
|
+
[name]="thought.icon"
|
|
12705
|
+
[svgIcon]="thought.svgIcon">
|
|
12706
|
+
</kendo-icon-wrapper>
|
|
12707
|
+
}
|
|
12708
|
+
</span>
|
|
12709
|
+
<span class="k-agent-step-content">
|
|
12710
|
+
@if (thoughtTemplate) {
|
|
12711
|
+
<ng-container
|
|
12712
|
+
[ngTemplateOutlet]="thoughtTemplate.templateRef"
|
|
12713
|
+
[ngTemplateOutletContext]="{ $implicit: thought }"
|
|
12714
|
+
></ng-container>
|
|
12715
|
+
} @else {
|
|
12716
|
+
@if (thought?.label) {
|
|
12717
|
+
<span class="k-agent-step-label">{{ thought.label }}</span>
|
|
12718
|
+
}
|
|
12719
|
+
@if (thought?.secondaryLabel) {
|
|
12720
|
+
@if (showSepBeforeSecondary) {
|
|
12721
|
+
<span class="k-agent-step-sep">·</span>
|
|
12722
|
+
}
|
|
12723
|
+
<span class="k-agent-step-secondary">{{ thought.secondaryLabel }}</span>
|
|
12724
|
+
}
|
|
12725
|
+
@if (thought?.linesAdded !== undefined && thought?.linesAdded !== null) {
|
|
12726
|
+
<span class="k-agent-step-added">+{{ thought.linesAdded }}</span>
|
|
12727
|
+
}
|
|
12728
|
+
@if (thought?.linesRemoved !== undefined && thought?.linesRemoved !== null) {
|
|
12729
|
+
<span class="k-agent-step-removed">-{{ thought.linesRemoved }}</span>
|
|
12730
|
+
}
|
|
12731
|
+
@if (thought?.content) {
|
|
12732
|
+
<span class="k-agent-step-body">{{ thought.content }}</span>
|
|
12733
|
+
}
|
|
12734
|
+
}
|
|
12735
|
+
</span>
|
|
12736
|
+
`, isInline: true, dependencies: [{ kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12737
|
+
}
|
|
12738
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ThoughtRowComponent, decorators: [{
|
|
12739
|
+
type: Component,
|
|
12740
|
+
args: [{
|
|
12741
|
+
selector: '[kendoLlmKitThoughtRow]',
|
|
12742
|
+
standalone: true,
|
|
12743
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12744
|
+
imports: [IconWrapperComponent, NgTemplateOutlet],
|
|
12745
|
+
template: `
|
|
12746
|
+
<span class="k-agent-step-icon-col">
|
|
12747
|
+
@if (thought?.icon || thought?.svgIcon) {
|
|
12748
|
+
<kendo-icon-wrapper
|
|
12749
|
+
innerCssClass="k-agent-step-icon"
|
|
12750
|
+
size="small"
|
|
12751
|
+
[name]="thought.icon"
|
|
12752
|
+
[svgIcon]="thought.svgIcon">
|
|
12753
|
+
</kendo-icon-wrapper>
|
|
12754
|
+
}
|
|
12755
|
+
</span>
|
|
12756
|
+
<span class="k-agent-step-content">
|
|
12757
|
+
@if (thoughtTemplate) {
|
|
12758
|
+
<ng-container
|
|
12759
|
+
[ngTemplateOutlet]="thoughtTemplate.templateRef"
|
|
12760
|
+
[ngTemplateOutletContext]="{ $implicit: thought }"
|
|
12761
|
+
></ng-container>
|
|
12762
|
+
} @else {
|
|
12763
|
+
@if (thought?.label) {
|
|
12764
|
+
<span class="k-agent-step-label">{{ thought.label }}</span>
|
|
12765
|
+
}
|
|
12766
|
+
@if (thought?.secondaryLabel) {
|
|
12767
|
+
@if (showSepBeforeSecondary) {
|
|
12768
|
+
<span class="k-agent-step-sep">·</span>
|
|
12769
|
+
}
|
|
12770
|
+
<span class="k-agent-step-secondary">{{ thought.secondaryLabel }}</span>
|
|
12771
|
+
}
|
|
12772
|
+
@if (thought?.linesAdded !== undefined && thought?.linesAdded !== null) {
|
|
12773
|
+
<span class="k-agent-step-added">+{{ thought.linesAdded }}</span>
|
|
12774
|
+
}
|
|
12775
|
+
@if (thought?.linesRemoved !== undefined && thought?.linesRemoved !== null) {
|
|
12776
|
+
<span class="k-agent-step-removed">-{{ thought.linesRemoved }}</span>
|
|
12777
|
+
}
|
|
12778
|
+
@if (thought?.content) {
|
|
12779
|
+
<span class="k-agent-step-body">{{ thought.content }}</span>
|
|
12780
|
+
}
|
|
12781
|
+
}
|
|
12782
|
+
</span>
|
|
12783
|
+
`
|
|
12784
|
+
}]
|
|
12785
|
+
}], propDecorators: { thoughtTemplate: [{
|
|
12786
|
+
type: Input
|
|
12787
|
+
}], thought: [{
|
|
12788
|
+
type: Input
|
|
12789
|
+
}], hostClass: [{
|
|
12790
|
+
type: HostBinding,
|
|
12791
|
+
args: ['class.k-thought']
|
|
12792
|
+
}], completedClass: [{
|
|
12793
|
+
type: HostBinding,
|
|
12794
|
+
args: ['class.k-thought-completed']
|
|
12795
|
+
}] } });
|
|
12796
|
+
|
|
12797
|
+
/**
|
|
12798
|
+
* Represents the [Kendo UI ChainOfThought component for Angular](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/llm-kit/chain-of-thought).
|
|
12799
|
+
* Groups an ordered sequence of thought rows under a single collapsible summary.
|
|
12800
|
+
*
|
|
12801
|
+
* @example
|
|
12802
|
+
* ```html
|
|
12803
|
+
* <kendo-chainofthought [thoughts]="thoughts" [expandable]="true"></kendo-chainofthought>
|
|
12804
|
+
* ```
|
|
12805
|
+
*/
|
|
12806
|
+
class ChainOfThoughtComponent {
|
|
12807
|
+
localization;
|
|
12808
|
+
/**
|
|
12809
|
+
* Replaces the rendering of each thought row. The current `Thought` item is available as the `$implicit` template value.
|
|
12810
|
+
*
|
|
12811
|
+
* @hidden
|
|
12812
|
+
*/
|
|
12813
|
+
thoughtTemplate;
|
|
12814
|
+
/**
|
|
12815
|
+
* Sets the ordered thought rows rendered inside the body.
|
|
12816
|
+
*
|
|
12817
|
+
* @default []
|
|
12818
|
+
*/
|
|
12819
|
+
set thoughts(value) {
|
|
12820
|
+
this._thoughts.set(value);
|
|
12821
|
+
}
|
|
12822
|
+
get thoughts() {
|
|
12823
|
+
return this._thoughts();
|
|
12824
|
+
}
|
|
12825
|
+
/**
|
|
12826
|
+
* Sets the main label shown in the expandable header.
|
|
12827
|
+
*/
|
|
12828
|
+
set label(value) {
|
|
12829
|
+
this._label.set(value);
|
|
12830
|
+
}
|
|
12831
|
+
get label() {
|
|
12832
|
+
return this._label();
|
|
12833
|
+
}
|
|
12834
|
+
/**
|
|
12835
|
+
* Sets the secondary descriptive text shown next to the label.
|
|
12836
|
+
*/
|
|
12837
|
+
set secondaryLabel(value) {
|
|
12838
|
+
this._secondaryLabel.set(value);
|
|
12839
|
+
}
|
|
12840
|
+
get secondaryLabel() {
|
|
12841
|
+
return this._secondaryLabel();
|
|
12842
|
+
}
|
|
12843
|
+
/**
|
|
12844
|
+
* Sets the name of a font icon shown in the expandable header.
|
|
12845
|
+
*
|
|
12846
|
+
* @default 'sparkles'
|
|
12847
|
+
*/
|
|
12848
|
+
set icon(value) {
|
|
12849
|
+
this._icon.set(value);
|
|
12850
|
+
}
|
|
12851
|
+
get icon() {
|
|
12852
|
+
return this._icon();
|
|
12853
|
+
}
|
|
12854
|
+
/**
|
|
12855
|
+
* Sets the SVG icon shown in the expandable header.
|
|
12856
|
+
*
|
|
12857
|
+
* @default sparklesIcon
|
|
12858
|
+
*/
|
|
12859
|
+
set svgIcon(value) {
|
|
12860
|
+
this._svgIcon.set(value);
|
|
12861
|
+
}
|
|
12862
|
+
get svgIcon() {
|
|
12863
|
+
return this._svgIcon();
|
|
12864
|
+
}
|
|
12865
|
+
/**
|
|
12866
|
+
* Sets the total lines added across the chain, shown in the header.
|
|
12867
|
+
*/
|
|
12868
|
+
set linesAdded(value) {
|
|
12869
|
+
this._linesAdded.set(value);
|
|
12870
|
+
}
|
|
12871
|
+
get linesAdded() {
|
|
12872
|
+
return this._linesAdded();
|
|
12873
|
+
}
|
|
12874
|
+
/**
|
|
12875
|
+
* Sets the total lines removed across the chain, shown in the header.
|
|
12876
|
+
*/
|
|
12877
|
+
set linesRemoved(value) {
|
|
12878
|
+
this._linesRemoved.set(value);
|
|
12879
|
+
}
|
|
12880
|
+
get linesRemoved() {
|
|
12881
|
+
return this._linesRemoved();
|
|
12882
|
+
}
|
|
12883
|
+
/**
|
|
12884
|
+
* Sets whether the chain has completed.
|
|
12885
|
+
*
|
|
12886
|
+
* @default false
|
|
12887
|
+
*/
|
|
12888
|
+
set completed(value) {
|
|
12889
|
+
this._completed.set(value);
|
|
12890
|
+
}
|
|
12891
|
+
get completed() {
|
|
12892
|
+
return this._completed();
|
|
12893
|
+
}
|
|
12894
|
+
/**
|
|
12895
|
+
* Sets whether the expandable header supports expanding and collapsing the thought rows.
|
|
12896
|
+
* Forced to `false` whenever `thoughts` is empty, regardless of the value supplied.
|
|
12897
|
+
*
|
|
12898
|
+
* @default false
|
|
12899
|
+
*/
|
|
12900
|
+
set expandable(value) {
|
|
12901
|
+
this._expandable.set(value);
|
|
12902
|
+
}
|
|
12903
|
+
get expandable() {
|
|
12904
|
+
return this._expandable();
|
|
12905
|
+
}
|
|
12906
|
+
/**
|
|
12907
|
+
* Sets whether the thought rows are visible. Ignored when `expandable` is `false`.
|
|
12908
|
+
*
|
|
12909
|
+
* @default false
|
|
12910
|
+
*/
|
|
12911
|
+
set expanded(value) {
|
|
12912
|
+
this._expanded.set(value);
|
|
12913
|
+
}
|
|
12914
|
+
get expanded() {
|
|
12915
|
+
return this._expanded();
|
|
12916
|
+
}
|
|
12917
|
+
/**
|
|
12918
|
+
* Fires when the user expands or collapses the ChainOfThought through the expandable header.
|
|
12919
|
+
*/
|
|
12920
|
+
expandedChange = new EventEmitter();
|
|
12921
|
+
get direction() {
|
|
12922
|
+
return this._direction();
|
|
12923
|
+
}
|
|
12924
|
+
set direction(value) {
|
|
12925
|
+
this._direction.set(value);
|
|
12926
|
+
}
|
|
12927
|
+
_thoughts = signal([], ...(ngDevMode ? [{ debugName: "_thoughts" }] : []));
|
|
12928
|
+
_label = signal(undefined, ...(ngDevMode ? [{ debugName: "_label" }] : []));
|
|
12929
|
+
_secondaryLabel = signal(undefined, ...(ngDevMode ? [{ debugName: "_secondaryLabel" }] : []));
|
|
12930
|
+
_icon = signal('sparkles', ...(ngDevMode ? [{ debugName: "_icon" }] : []));
|
|
12931
|
+
_svgIcon = signal(sparklesIcon, ...(ngDevMode ? [{ debugName: "_svgIcon" }] : []));
|
|
12932
|
+
_linesAdded = signal(undefined, ...(ngDevMode ? [{ debugName: "_linesAdded" }] : []));
|
|
12933
|
+
_linesRemoved = signal(undefined, ...(ngDevMode ? [{ debugName: "_linesRemoved" }] : []));
|
|
12934
|
+
_completed = signal(false, ...(ngDevMode ? [{ debugName: "_completed" }] : []));
|
|
12935
|
+
_expandable = signal(false, ...(ngDevMode ? [{ debugName: "_expandable" }] : []));
|
|
12936
|
+
_expanded = signal(false, ...(ngDevMode ? [{ debugName: "_expanded" }] : []));
|
|
12937
|
+
_direction = signal(undefined, ...(ngDevMode ? [{ debugName: "_direction" }] : []));
|
|
12938
|
+
_isExpandable = computed(() => this._expandable() && this._thoughts().length > 0, ...(ngDevMode ? [{ debugName: "_isExpandable" }] : []));
|
|
12939
|
+
subscription;
|
|
12940
|
+
constructor(localization) {
|
|
12941
|
+
this.localization = localization;
|
|
12942
|
+
validatePackage(packageMetadata);
|
|
12943
|
+
this.direction = this.localization.rtl ? 'rtl' : 'ltr';
|
|
12944
|
+
this.subscription = this.localization.changes.subscribe(({ rtl }) => {
|
|
12945
|
+
this.direction = rtl ? 'rtl' : 'ltr';
|
|
12946
|
+
});
|
|
12947
|
+
}
|
|
12948
|
+
/**
|
|
12949
|
+
* @hidden
|
|
12950
|
+
*/
|
|
12951
|
+
get isExpandable() {
|
|
12952
|
+
return this._isExpandable();
|
|
12953
|
+
}
|
|
12954
|
+
ngOnDestroy() {
|
|
12955
|
+
this.subscription.unsubscribe();
|
|
12956
|
+
}
|
|
12957
|
+
/**
|
|
12958
|
+
* @hidden
|
|
12959
|
+
*/
|
|
12960
|
+
handleExpandedChange(expanded) {
|
|
12961
|
+
this._expanded.set(expanded);
|
|
12962
|
+
this.expandedChange.emit(expanded);
|
|
12963
|
+
}
|
|
12964
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChainOfThoughtComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
12965
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: ChainOfThoughtComponent, isStandalone: true, selector: "kendo-chainofthought", inputs: { thoughts: "thoughts", label: "label", secondaryLabel: "secondaryLabel", icon: "icon", svgIcon: "svgIcon", linesAdded: "linesAdded", linesRemoved: "linesRemoved", completed: "completed", expandable: "expandable", expanded: "expanded" }, outputs: { expandedChange: "expandedChange" }, host: { properties: { "attr.dir": "this.direction" } }, providers: [
|
|
12966
|
+
LocalizationService,
|
|
12967
|
+
{ provide: L10N_PREFIX, useValue: 'kendo.llmkit' }
|
|
12968
|
+
], queries: [{ propertyName: "thoughtTemplate", first: true, predicate: ThoughtTemplateDirective, descendants: true }], exportAs: ["kendoChainOfThought"], ngImport: i0, template: `
|
|
12969
|
+
<div
|
|
12970
|
+
class="k-chain-of-thought"
|
|
12971
|
+
kendoLlmKitAgentStep
|
|
12972
|
+
[label]="label"
|
|
12973
|
+
[secondaryLabel]="secondaryLabel"
|
|
12974
|
+
[icon]="icon"
|
|
12975
|
+
[svgIcon]="svgIcon"
|
|
12976
|
+
[completed]="completed"
|
|
12977
|
+
[expandable]="isExpandable"
|
|
12978
|
+
[expanded]="expanded"
|
|
12979
|
+
[linesAdded]="linesAdded"
|
|
12980
|
+
[linesRemoved]="linesRemoved"
|
|
12981
|
+
(expandedChange)="handleExpandedChange($event)"
|
|
12982
|
+
>
|
|
12983
|
+
@for (thought of thoughts; track thought.id) {
|
|
12984
|
+
<div
|
|
12985
|
+
kendoLlmKitThoughtRow
|
|
12986
|
+
[thought]="thought"
|
|
12987
|
+
[thoughtTemplate]="thoughtTemplate"
|
|
12988
|
+
></div>
|
|
12989
|
+
}
|
|
12990
|
+
</div>
|
|
12991
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AgentStepBase, selector: "[kendoLlmKitAgentStep]", inputs: ["label", "secondaryLabel", "icon", "svgIcon", "completed", "expandable", "expanded", "linesAdded", "linesRemoved"], outputs: ["expandedChange"] }, { kind: "component", type: ThoughtRowComponent, selector: "[kendoLlmKitThoughtRow]", inputs: ["thoughtTemplate", "thought"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
12992
|
+
}
|
|
12993
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChainOfThoughtComponent, decorators: [{
|
|
12994
|
+
type: Component,
|
|
12995
|
+
args: [{
|
|
12996
|
+
exportAs: 'kendoChainOfThought',
|
|
12997
|
+
selector: 'kendo-chainofthought',
|
|
12998
|
+
standalone: true,
|
|
12999
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13000
|
+
providers: [
|
|
13001
|
+
LocalizationService,
|
|
13002
|
+
{ provide: L10N_PREFIX, useValue: 'kendo.llmkit' }
|
|
13003
|
+
],
|
|
13004
|
+
imports: [AgentStepBase, ThoughtRowComponent],
|
|
13005
|
+
template: `
|
|
13006
|
+
<div
|
|
13007
|
+
class="k-chain-of-thought"
|
|
13008
|
+
kendoLlmKitAgentStep
|
|
13009
|
+
[label]="label"
|
|
13010
|
+
[secondaryLabel]="secondaryLabel"
|
|
13011
|
+
[icon]="icon"
|
|
13012
|
+
[svgIcon]="svgIcon"
|
|
13013
|
+
[completed]="completed"
|
|
13014
|
+
[expandable]="isExpandable"
|
|
13015
|
+
[expanded]="expanded"
|
|
13016
|
+
[linesAdded]="linesAdded"
|
|
13017
|
+
[linesRemoved]="linesRemoved"
|
|
13018
|
+
(expandedChange)="handleExpandedChange($event)"
|
|
13019
|
+
>
|
|
13020
|
+
@for (thought of thoughts; track thought.id) {
|
|
13021
|
+
<div
|
|
13022
|
+
kendoLlmKitThoughtRow
|
|
13023
|
+
[thought]="thought"
|
|
13024
|
+
[thoughtTemplate]="thoughtTemplate"
|
|
13025
|
+
></div>
|
|
13026
|
+
}
|
|
13027
|
+
</div>
|
|
13028
|
+
`
|
|
13029
|
+
}]
|
|
13030
|
+
}], ctorParameters: () => [{ type: i1.LocalizationService }], propDecorators: { thoughtTemplate: [{
|
|
13031
|
+
type: ContentChild,
|
|
13032
|
+
args: [ThoughtTemplateDirective]
|
|
13033
|
+
}], thoughts: [{
|
|
13034
|
+
type: Input
|
|
13035
|
+
}], label: [{
|
|
13036
|
+
type: Input
|
|
13037
|
+
}], secondaryLabel: [{
|
|
13038
|
+
type: Input
|
|
13039
|
+
}], icon: [{
|
|
13040
|
+
type: Input
|
|
13041
|
+
}], svgIcon: [{
|
|
13042
|
+
type: Input
|
|
13043
|
+
}], linesAdded: [{
|
|
13044
|
+
type: Input
|
|
13045
|
+
}], linesRemoved: [{
|
|
13046
|
+
type: Input
|
|
13047
|
+
}], completed: [{
|
|
13048
|
+
type: Input
|
|
13049
|
+
}], expandable: [{
|
|
13050
|
+
type: Input
|
|
13051
|
+
}], expanded: [{
|
|
13052
|
+
type: Input
|
|
13053
|
+
}], expandedChange: [{
|
|
13054
|
+
type: Output
|
|
13055
|
+
}], direction: [{
|
|
13056
|
+
type: HostBinding,
|
|
13057
|
+
args: ['attr.dir']
|
|
13058
|
+
}] } });
|
|
13059
|
+
|
|
13060
|
+
/**
|
|
13061
|
+
* @hidden
|
|
13062
|
+
*
|
|
13063
|
+
* Marks the projected content routed into `AgentStepBase`'s badge slot. Used internally by
|
|
13064
|
+
* `ToolCallComponent` for its status badge.
|
|
13065
|
+
*/
|
|
13066
|
+
class AgentStepBadgeDirective {
|
|
13067
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AgentStepBadgeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
13068
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: AgentStepBadgeDirective, isStandalone: true, selector: "[kendoLlmKitAgentStepBadge]", ngImport: i0 });
|
|
13069
|
+
}
|
|
13070
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AgentStepBadgeDirective, decorators: [{
|
|
13071
|
+
type: Directive,
|
|
13072
|
+
args: [{
|
|
13073
|
+
selector: '[kendoLlmKitAgentStepBadge]',
|
|
13074
|
+
standalone: true
|
|
13075
|
+
}]
|
|
13076
|
+
}] });
|
|
13077
|
+
|
|
13078
|
+
/**
|
|
13079
|
+
* Represents the template that replaces the default formatted-JSON `parameters` block in the ToolCall component.
|
|
13080
|
+
*
|
|
13081
|
+
* @example
|
|
13082
|
+
* ```html
|
|
13083
|
+
* <kendo-toolcall [parameters]="params">
|
|
13084
|
+
* <ng-template kendoToolCallParametersTemplate>
|
|
13085
|
+
* <p>Custom parameters content.</p>
|
|
13086
|
+
* </ng-template>
|
|
13087
|
+
* </kendo-toolcall>
|
|
13088
|
+
* ```
|
|
13089
|
+
*/
|
|
13090
|
+
class ToolCallParametersTemplateDirective {
|
|
13091
|
+
templateRef;
|
|
13092
|
+
constructor(templateRef) {
|
|
13093
|
+
this.templateRef = templateRef;
|
|
13094
|
+
}
|
|
13095
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ToolCallParametersTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
13096
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: ToolCallParametersTemplateDirective, isStandalone: true, selector: "[kendoToolCallParametersTemplate]", ngImport: i0 });
|
|
13097
|
+
}
|
|
13098
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ToolCallParametersTemplateDirective, decorators: [{
|
|
13099
|
+
type: Directive,
|
|
13100
|
+
args: [{
|
|
13101
|
+
selector: '[kendoToolCallParametersTemplate]',
|
|
13102
|
+
standalone: true
|
|
13103
|
+
}]
|
|
13104
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
13105
|
+
|
|
13106
|
+
/**
|
|
13107
|
+
* Represents the template that replaces the default approval block and Approve/Reject actions in the ToolCall component when `state` is "awaitingApproval".
|
|
13108
|
+
*
|
|
13109
|
+
* @example
|
|
13110
|
+
* ```html
|
|
13111
|
+
* <kendo-toolcall state="awaitingApproval" (action)="onAction($event)">
|
|
13112
|
+
* <ng-template kendoToolCallApprovalTemplate>
|
|
13113
|
+
* <p>Custom approval content.</p>
|
|
13114
|
+
* </ng-template>
|
|
13115
|
+
* </kendo-toolcall>
|
|
13116
|
+
* ```
|
|
13117
|
+
*/
|
|
13118
|
+
class ToolCallApprovalTemplateDirective {
|
|
13119
|
+
templateRef;
|
|
13120
|
+
constructor(templateRef) {
|
|
13121
|
+
this.templateRef = templateRef;
|
|
13122
|
+
}
|
|
13123
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ToolCallApprovalTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
13124
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: ToolCallApprovalTemplateDirective, isStandalone: true, selector: "[kendoToolCallApprovalTemplate]", ngImport: i0 });
|
|
13125
|
+
}
|
|
13126
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ToolCallApprovalTemplateDirective, decorators: [{
|
|
13127
|
+
type: Directive,
|
|
13128
|
+
args: [{
|
|
13129
|
+
selector: '[kendoToolCallApprovalTemplate]',
|
|
13130
|
+
standalone: true
|
|
13131
|
+
}]
|
|
13132
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
13133
|
+
|
|
13134
|
+
/**
|
|
13135
|
+
* Represents the template that replaces the default formatted-JSON `result` block in the ToolCall component when `state` is "completed".
|
|
13136
|
+
*
|
|
13137
|
+
* @example
|
|
13138
|
+
* ```html
|
|
13139
|
+
* <kendo-toolcall [result]="result">
|
|
13140
|
+
* <ng-template kendoToolCallResultTemplate>
|
|
13141
|
+
* <p>Custom result content.</p>
|
|
13142
|
+
* </ng-template>
|
|
13143
|
+
* </kendo-toolcall>
|
|
13144
|
+
* ```
|
|
13145
|
+
*/
|
|
13146
|
+
class ToolCallResultTemplateDirective {
|
|
13147
|
+
templateRef;
|
|
13148
|
+
constructor(templateRef) {
|
|
13149
|
+
this.templateRef = templateRef;
|
|
13150
|
+
}
|
|
13151
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ToolCallResultTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
13152
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: ToolCallResultTemplateDirective, isStandalone: true, selector: "[kendoToolCallResultTemplate]", ngImport: i0 });
|
|
13153
|
+
}
|
|
13154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ToolCallResultTemplateDirective, decorators: [{
|
|
13155
|
+
type: Directive,
|
|
13156
|
+
args: [{
|
|
13157
|
+
selector: '[kendoToolCallResultTemplate]',
|
|
13158
|
+
standalone: true
|
|
13159
|
+
}]
|
|
13160
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
13161
|
+
|
|
13162
|
+
/**
|
|
13163
|
+
* Represents the template that replaces the default `errorText` block in the ToolCall component when `state` is "error".
|
|
13164
|
+
*
|
|
13165
|
+
* @example
|
|
13166
|
+
* ```html
|
|
13167
|
+
* <kendo-toolcall state="error" errorText="Request timed out.">
|
|
13168
|
+
* <ng-template kendoToolCallErrorTemplate>
|
|
13169
|
+
* <p>Custom error content.</p>
|
|
13170
|
+
* </ng-template>
|
|
13171
|
+
* </kendo-toolcall>
|
|
13172
|
+
* ```
|
|
13173
|
+
*/
|
|
13174
|
+
class ToolCallErrorTemplateDirective {
|
|
13175
|
+
templateRef;
|
|
13176
|
+
constructor(templateRef) {
|
|
13177
|
+
this.templateRef = templateRef;
|
|
13178
|
+
}
|
|
13179
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ToolCallErrorTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
13180
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: ToolCallErrorTemplateDirective, isStandalone: true, selector: "[kendoToolCallErrorTemplate]", ngImport: i0 });
|
|
13181
|
+
}
|
|
13182
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ToolCallErrorTemplateDirective, decorators: [{
|
|
13183
|
+
type: Directive,
|
|
13184
|
+
args: [{
|
|
13185
|
+
selector: '[kendoToolCallErrorTemplate]',
|
|
13186
|
+
standalone: true
|
|
13187
|
+
}]
|
|
13188
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
13189
|
+
|
|
13190
|
+
/**
|
|
13191
|
+
* Represents the [Kendo UI ToolCall component for Angular](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/llm-kit/tool-call).
|
|
13192
|
+
* Displays a single tool or function invocation as a disclosure block, including its parameters, approval actions, result, or error.
|
|
13193
|
+
*
|
|
13194
|
+
* @example
|
|
13195
|
+
* ```html
|
|
13196
|
+
* <kendo-toolcall
|
|
13197
|
+
* label="get_weather"
|
|
13198
|
+
* state="completed"
|
|
13199
|
+
* [expandable]="true"
|
|
13200
|
+
* [parameters]="{ city: 'Sofia' }"
|
|
13201
|
+
* [result]="{ tempC: 24 }"
|
|
13202
|
+
* ></kendo-toolcall>
|
|
13203
|
+
* ```
|
|
13204
|
+
*/
|
|
13205
|
+
class ToolCallComponent {
|
|
13206
|
+
localization;
|
|
13207
|
+
/**
|
|
13208
|
+
* Replaces the default formatted-JSON `parameters` block.
|
|
13209
|
+
*
|
|
13210
|
+
* @hidden
|
|
13211
|
+
*/
|
|
13212
|
+
paramsTemplate;
|
|
13213
|
+
/**
|
|
13214
|
+
* Replaces the default Approve/Reject approval block shown when `state` is `awaitingApproval`.
|
|
13215
|
+
*
|
|
13216
|
+
* @hidden
|
|
13217
|
+
*/
|
|
13218
|
+
approvalTemplate;
|
|
13219
|
+
/**
|
|
13220
|
+
* Replaces the default formatted-JSON `result` block.
|
|
13221
|
+
*
|
|
13222
|
+
* @hidden
|
|
13223
|
+
*/
|
|
13224
|
+
resultTemplate;
|
|
13225
|
+
/**
|
|
13226
|
+
* Replaces the default `errorText` block shown when `state` is `error`.
|
|
13227
|
+
*
|
|
13228
|
+
* @hidden
|
|
13229
|
+
*/
|
|
13230
|
+
errorTemplate;
|
|
13231
|
+
/**
|
|
13232
|
+
* Sets the raw tool input data, rendered as formatted JSON by default.
|
|
13233
|
+
*/
|
|
13234
|
+
set parameters(value) {
|
|
13235
|
+
this._parameters.set(value);
|
|
13236
|
+
}
|
|
13237
|
+
get parameters() {
|
|
13238
|
+
return this._parameters();
|
|
13239
|
+
}
|
|
13240
|
+
/**
|
|
13241
|
+
* Sets the raw tool result data, rendered as formatted JSON by default when `state` is "completed".
|
|
13242
|
+
*/
|
|
13243
|
+
set result(value) {
|
|
13244
|
+
this._result.set(value);
|
|
13245
|
+
}
|
|
13246
|
+
get result() {
|
|
13247
|
+
return this._result();
|
|
13248
|
+
}
|
|
13249
|
+
/**
|
|
13250
|
+
* Sets the error message displayed when `state` is "error".
|
|
13251
|
+
*/
|
|
13252
|
+
set errorText(value) {
|
|
13253
|
+
this._errorText.set(value);
|
|
13254
|
+
}
|
|
13255
|
+
get errorText() {
|
|
13256
|
+
return this._errorText();
|
|
13257
|
+
}
|
|
13258
|
+
/**
|
|
13259
|
+
* Sets the tool or function name shown in the expandable header.
|
|
13260
|
+
*/
|
|
13261
|
+
set label(value) {
|
|
13262
|
+
this._label.set(value);
|
|
13263
|
+
}
|
|
13264
|
+
get label() {
|
|
13265
|
+
return this._label();
|
|
13266
|
+
}
|
|
13267
|
+
/**
|
|
13268
|
+
* Sets the file, command, or target context shown next to the tool or function name.
|
|
13269
|
+
*/
|
|
13270
|
+
set secondaryLabel(value) {
|
|
13271
|
+
this._secondaryLabel.set(value);
|
|
13272
|
+
}
|
|
13273
|
+
get secondaryLabel() {
|
|
13274
|
+
return this._secondaryLabel();
|
|
13275
|
+
}
|
|
13276
|
+
/**
|
|
13277
|
+
* Sets the text shown above the default approval actions when `state` is "awaitingApproval".
|
|
13278
|
+
*/
|
|
13279
|
+
set approvalText(value) {
|
|
13280
|
+
this._approvalText.set(value);
|
|
13281
|
+
}
|
|
13282
|
+
get approvalText() {
|
|
13283
|
+
return this._approvalText();
|
|
13284
|
+
}
|
|
13285
|
+
/**
|
|
13286
|
+
* Sets the name of a font icon shown in the expandable header.
|
|
13287
|
+
*
|
|
13288
|
+
* @default 'wrench'
|
|
13289
|
+
*/
|
|
13290
|
+
set icon(value) {
|
|
13291
|
+
this._icon.set(value);
|
|
13292
|
+
}
|
|
13293
|
+
get icon() {
|
|
13294
|
+
return this._icon();
|
|
13295
|
+
}
|
|
13296
|
+
/**
|
|
13297
|
+
* Sets the SVG icon shown in the expandable header.
|
|
13298
|
+
*
|
|
13299
|
+
* @default wrenchIcon
|
|
13300
|
+
*/
|
|
13301
|
+
set svgIcon(value) {
|
|
13302
|
+
this._svgIcon.set(value);
|
|
13303
|
+
}
|
|
13304
|
+
get svgIcon() {
|
|
13305
|
+
return this._svgIcon();
|
|
13306
|
+
}
|
|
13307
|
+
get statusText() {
|
|
13308
|
+
switch (this.state) {
|
|
13309
|
+
case 'awaitingApproval':
|
|
13310
|
+
return this.messageFor('awaitingApprovalStatus');
|
|
13311
|
+
case 'completed':
|
|
13312
|
+
return this.messageFor('completedStatus');
|
|
13313
|
+
case 'error':
|
|
13314
|
+
return this.messageFor('errorStatus');
|
|
13315
|
+
default:
|
|
13316
|
+
return undefined;
|
|
13317
|
+
}
|
|
13318
|
+
}
|
|
13319
|
+
/**
|
|
13320
|
+
* Sets the name of a font icon shown in the status badge. When not set, the icon is derived from `state`.
|
|
13321
|
+
*/
|
|
13322
|
+
set statusFontIcon(value) {
|
|
13323
|
+
this._statusIconName.set(value);
|
|
13324
|
+
this._statusIconNameSet.set(true);
|
|
13325
|
+
}
|
|
13326
|
+
get statusFontIcon() {
|
|
13327
|
+
if (this._statusIconNameSet()) {
|
|
13328
|
+
return this._statusIconName();
|
|
13329
|
+
}
|
|
13330
|
+
switch (this.state) {
|
|
13331
|
+
case 'completed':
|
|
13332
|
+
return 'check-circle';
|
|
13333
|
+
case 'awaitingApproval':
|
|
13334
|
+
return 'clock';
|
|
13335
|
+
case 'error':
|
|
13336
|
+
return 'exclamation-circle';
|
|
13337
|
+
default:
|
|
13338
|
+
return undefined;
|
|
13339
|
+
}
|
|
13340
|
+
}
|
|
13341
|
+
/**
|
|
13342
|
+
* Sets the SVG icon shown in the status badge. When not set, the component derives the icon from `state`.
|
|
13343
|
+
*/
|
|
13344
|
+
set statusSVGIcon(value) {
|
|
13345
|
+
this._statusIcon.set(value);
|
|
13346
|
+
this._statusIconSet.set(true);
|
|
13347
|
+
}
|
|
13348
|
+
get statusSVGIcon() {
|
|
13349
|
+
if (this._statusIconSet()) {
|
|
13350
|
+
return this._statusIcon();
|
|
13351
|
+
}
|
|
13352
|
+
switch (this.state) {
|
|
13353
|
+
case 'completed':
|
|
13354
|
+
return checkCircleIcon;
|
|
13355
|
+
case 'awaitingApproval':
|
|
13356
|
+
return clockIcon;
|
|
13357
|
+
case 'error':
|
|
13358
|
+
return exclamationCircleIcon;
|
|
13359
|
+
default:
|
|
13360
|
+
return undefined;
|
|
13361
|
+
}
|
|
13362
|
+
}
|
|
13363
|
+
/**
|
|
13364
|
+
*
|
|
13365
|
+
* Gets the badge color derived from the tool call state.
|
|
13366
|
+
*/
|
|
13367
|
+
get badgeThemeColor() {
|
|
13368
|
+
switch (this.state) {
|
|
13369
|
+
case 'completed':
|
|
13370
|
+
return 'success';
|
|
13371
|
+
case 'error':
|
|
13372
|
+
return 'error';
|
|
13373
|
+
case 'awaitingApproval':
|
|
13374
|
+
return 'warning';
|
|
13375
|
+
default:
|
|
13376
|
+
return 'success';
|
|
13377
|
+
}
|
|
13378
|
+
}
|
|
13379
|
+
/**
|
|
13380
|
+
* Sets the current state of the tool call.
|
|
13381
|
+
*
|
|
13382
|
+
* @default 'active'
|
|
13383
|
+
*/
|
|
13384
|
+
set state(value) {
|
|
13385
|
+
this._state.set(value);
|
|
13386
|
+
}
|
|
13387
|
+
get state() {
|
|
13388
|
+
return this._state();
|
|
13389
|
+
}
|
|
13390
|
+
/**
|
|
13391
|
+
* Sets whether the expandable header supports expanding and collapsing the tool call details.
|
|
13392
|
+
*
|
|
13393
|
+
* @default false
|
|
13394
|
+
*/
|
|
13395
|
+
set expandable(value) {
|
|
13396
|
+
this._expandable.set(value);
|
|
13397
|
+
}
|
|
13398
|
+
get expandable() {
|
|
13399
|
+
return this._expandable();
|
|
13400
|
+
}
|
|
13401
|
+
/**
|
|
13402
|
+
* Sets whether the tool call details are visible. Ignored when `expandable` is `false`.
|
|
13403
|
+
*
|
|
13404
|
+
* @default false
|
|
13405
|
+
*/
|
|
13406
|
+
set expanded(value) {
|
|
13407
|
+
this._expanded.set(value);
|
|
13408
|
+
}
|
|
13409
|
+
get expanded() {
|
|
13410
|
+
return this._expanded();
|
|
13411
|
+
}
|
|
13412
|
+
/**
|
|
13413
|
+
* Fires when the user expands or collapses the tool call details through the expandable header.
|
|
13414
|
+
*/
|
|
13415
|
+
expandedChange = new EventEmitter();
|
|
13416
|
+
/**
|
|
13417
|
+
* Fires when the user selects the Approve or Reject action while `state` is "awaitingApproval".
|
|
13418
|
+
*/
|
|
13419
|
+
action = new EventEmitter();
|
|
13420
|
+
get direction() {
|
|
13421
|
+
return this._direction();
|
|
13422
|
+
}
|
|
13423
|
+
set direction(value) {
|
|
13424
|
+
this._direction.set(value);
|
|
13425
|
+
}
|
|
13426
|
+
_parameters = signal(undefined, ...(ngDevMode ? [{ debugName: "_parameters" }] : []));
|
|
13427
|
+
_result = signal(undefined, ...(ngDevMode ? [{ debugName: "_result" }] : []));
|
|
13428
|
+
_errorText = signal(undefined, ...(ngDevMode ? [{ debugName: "_errorText" }] : []));
|
|
13429
|
+
_label = signal(undefined, ...(ngDevMode ? [{ debugName: "_label" }] : []));
|
|
13430
|
+
_secondaryLabel = signal(undefined, ...(ngDevMode ? [{ debugName: "_secondaryLabel" }] : []));
|
|
13431
|
+
_approvalText = signal(undefined, ...(ngDevMode ? [{ debugName: "_approvalText" }] : []));
|
|
13432
|
+
_icon = signal('wrench', ...(ngDevMode ? [{ debugName: "_icon" }] : []));
|
|
13433
|
+
_svgIcon = signal(wrenchIcon, ...(ngDevMode ? [{ debugName: "_svgIcon" }] : []));
|
|
13434
|
+
_statusIconName = signal(undefined, ...(ngDevMode ? [{ debugName: "_statusIconName" }] : []));
|
|
13435
|
+
_statusIconNameSet = signal(false, ...(ngDevMode ? [{ debugName: "_statusIconNameSet" }] : []));
|
|
13436
|
+
_statusIcon = signal(undefined, ...(ngDevMode ? [{ debugName: "_statusIcon" }] : []));
|
|
13437
|
+
_statusIconSet = signal(false, ...(ngDevMode ? [{ debugName: "_statusIconSet" }] : []));
|
|
13438
|
+
_state = signal('active', ...(ngDevMode ? [{ debugName: "_state" }] : []));
|
|
13439
|
+
_expandable = signal(false, ...(ngDevMode ? [{ debugName: "_expandable" }] : []));
|
|
13440
|
+
_expanded = signal(false, ...(ngDevMode ? [{ debugName: "_expanded" }] : []));
|
|
13441
|
+
_direction = signal(undefined, ...(ngDevMode ? [{ debugName: "_direction" }] : []));
|
|
13442
|
+
subscription;
|
|
13443
|
+
constructor(localization) {
|
|
13444
|
+
this.localization = localization;
|
|
13445
|
+
validatePackage(packageMetadata);
|
|
13446
|
+
this.direction = this.localization.rtl ? 'rtl' : 'ltr';
|
|
13447
|
+
this.subscription = this.localization.changes.subscribe(({ rtl }) => {
|
|
13448
|
+
this.direction = rtl ? 'rtl' : 'ltr';
|
|
13449
|
+
});
|
|
13450
|
+
}
|
|
13451
|
+
/**
|
|
13452
|
+
* @hidden
|
|
13453
|
+
*/
|
|
13454
|
+
get agentStepCompleted() {
|
|
13455
|
+
return this.state === 'completed';
|
|
13456
|
+
}
|
|
13457
|
+
ngOnDestroy() {
|
|
13458
|
+
this.subscription.unsubscribe();
|
|
13459
|
+
}
|
|
13460
|
+
/**
|
|
13461
|
+
* @hidden
|
|
13462
|
+
*/
|
|
13463
|
+
handleExpandedChange(expanded) {
|
|
13464
|
+
this.expanded = expanded;
|
|
13465
|
+
this.expandedChange.emit(expanded);
|
|
13466
|
+
}
|
|
13467
|
+
/**
|
|
13468
|
+
* @hidden
|
|
13469
|
+
*/
|
|
13470
|
+
handleAction(action) {
|
|
13471
|
+
this.action.emit({ action: action });
|
|
13472
|
+
}
|
|
13473
|
+
/**
|
|
13474
|
+
* @hidden
|
|
13475
|
+
*/
|
|
13476
|
+
messageFor(key) {
|
|
13477
|
+
return this.localization.get(key);
|
|
13478
|
+
}
|
|
13479
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ToolCallComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
13480
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: ToolCallComponent, isStandalone: true, selector: "kendo-toolcall", inputs: { parameters: "parameters", result: "result", errorText: "errorText", label: "label", secondaryLabel: "secondaryLabel", approvalText: "approvalText", icon: "icon", svgIcon: "svgIcon", statusFontIcon: "statusFontIcon", statusSVGIcon: "statusSVGIcon", state: "state", expandable: "expandable", expanded: "expanded" }, outputs: { expandedChange: "expandedChange", action: "action" }, host: { properties: { "attr.dir": "this.direction" } }, providers: [LocalizationService, { provide: L10N_PREFIX, useValue: 'kendo.llmkit' }], queries: [{ propertyName: "paramsTemplate", first: true, predicate: ToolCallParametersTemplateDirective, descendants: true }, { propertyName: "approvalTemplate", first: true, predicate: ToolCallApprovalTemplateDirective, descendants: true }, { propertyName: "resultTemplate", first: true, predicate: ToolCallResultTemplateDirective, descendants: true }, { propertyName: "errorTemplate", first: true, predicate: ToolCallErrorTemplateDirective, descendants: true }], exportAs: ["kendoToolCall"], ngImport: i0, template: `
|
|
13481
|
+
<ng-container
|
|
13482
|
+
kendoLlmKitLocalizedMessages
|
|
13483
|
+
i18n-approveAction="kendo.llmkit.approveAction|The text for the ToolCall's default Approve action."
|
|
13484
|
+
approveAction="Approve"
|
|
13485
|
+
i18n-rejectAction="kendo.llmkit.rejectAction|The text for the ToolCall's default Reject action."
|
|
13486
|
+
rejectAction="Reject"
|
|
13487
|
+
i18n-parametersLabel="
|
|
13488
|
+
kendo.llmkit.parametersLabel|The label shown above the ToolCall's default formatted-JSON parameters
|
|
13489
|
+
block.
|
|
13490
|
+
"
|
|
13491
|
+
parametersLabel="Parameters"
|
|
13492
|
+
i18n-resultLabel="
|
|
13493
|
+
kendo.llmkit.resultLabel|The label shown above the ToolCall's default formatted-JSON result block.
|
|
13494
|
+
"
|
|
13495
|
+
resultLabel="Result"
|
|
13496
|
+
i18n-awaitingApprovalStatus="
|
|
13497
|
+
kendo.llmkit.awaitingApprovalStatus|The default ToolCall badge text for the awaiting approval state.
|
|
13498
|
+
"
|
|
13499
|
+
awaitingApprovalStatus="Awaiting approval"
|
|
13500
|
+
i18n-completedStatus="kendo.llmkit.completedStatus|The default ToolCall badge text for the completed state."
|
|
13501
|
+
completedStatus="Completed"
|
|
13502
|
+
i18n-errorStatus="kendo.llmkit.errorStatus|The default ToolCall badge text for the error state."
|
|
13503
|
+
errorStatus="Error"
|
|
13504
|
+
>
|
|
13505
|
+
</ng-container>
|
|
13506
|
+
<div
|
|
13507
|
+
class="k-tool-call"
|
|
13508
|
+
kendoLlmKitAgentStep
|
|
13509
|
+
[label]="label"
|
|
13510
|
+
[secondaryLabel]="secondaryLabel"
|
|
13511
|
+
[icon]="icon"
|
|
13512
|
+
[svgIcon]="svgIcon"
|
|
13513
|
+
[completed]="agentStepCompleted"
|
|
13514
|
+
[expandable]="expandable"
|
|
13515
|
+
[expanded]="expanded"
|
|
13516
|
+
(expandedChange)="handleExpandedChange($event)"
|
|
13517
|
+
>
|
|
13518
|
+
@if (state !== 'active') {
|
|
13519
|
+
<kendo-badge
|
|
13520
|
+
kendoLlmKitAgentStepBadge
|
|
13521
|
+
size="small"
|
|
13522
|
+
rounded="full"
|
|
13523
|
+
position="none"
|
|
13524
|
+
[align]="null"
|
|
13525
|
+
[themeColor]="badgeThemeColor"
|
|
13526
|
+
>
|
|
13527
|
+
@if (statusSVGIcon) {
|
|
13528
|
+
<kendo-icon-wrapper
|
|
13529
|
+
size="small"
|
|
13530
|
+
[name]="statusFontIcon"
|
|
13531
|
+
[svgIcon]="statusSVGIcon">
|
|
13532
|
+
</kendo-icon-wrapper>
|
|
13533
|
+
}
|
|
13534
|
+
{{ statusText }}
|
|
13535
|
+
</kendo-badge>
|
|
13536
|
+
}
|
|
13537
|
+
@if (paramsTemplate || (parameters !== undefined && parameters !== null)) {
|
|
13538
|
+
<div class="k-tool-call-label">{{ messageFor('parametersLabel') }}</div>
|
|
13539
|
+
@if (paramsTemplate) {
|
|
13540
|
+
<ng-container [ngTemplateOutlet]="paramsTemplate.templateRef"></ng-container>
|
|
13541
|
+
} @else {
|
|
13542
|
+
<pre class="k-pre"><code class="k-code">{{ parameters | json }}</code></pre>
|
|
13543
|
+
}
|
|
13544
|
+
}
|
|
13545
|
+
@switch (state) {
|
|
13546
|
+
@case ('awaitingApproval') {
|
|
13547
|
+
<kendo-card width="100%">
|
|
13548
|
+
@if (approvalTemplate) {
|
|
13549
|
+
<ng-container [ngTemplateOutlet]="approvalTemplate.templateRef"></ng-container>
|
|
13550
|
+
} @else if (approvalText) {
|
|
13551
|
+
<kendo-card-body>{{ approvalText }}</kendo-card-body>
|
|
13552
|
+
<kendo-card-actions layout="end" orientation="horizontal">
|
|
13553
|
+
<button kendoButton fillMode="outline" (click)="handleAction('reject')">
|
|
13554
|
+
{{ messageFor('rejectAction') }}
|
|
13555
|
+
</button>
|
|
13556
|
+
<button kendoButton themeColor="primary" (click)="handleAction('approve')">
|
|
13557
|
+
{{ messageFor('approveAction') }}
|
|
13558
|
+
</button>
|
|
13559
|
+
</kendo-card-actions>
|
|
13560
|
+
}
|
|
13561
|
+
</kendo-card>
|
|
13562
|
+
}
|
|
13563
|
+
@case ('completed') {
|
|
13564
|
+
@if (resultTemplate || (result !== undefined && result !== null)) {
|
|
13565
|
+
<div class="k-tool-call-label">{{ messageFor('resultLabel') }}</div>
|
|
13566
|
+
@if (resultTemplate) {
|
|
13567
|
+
<ng-container [ngTemplateOutlet]="resultTemplate.templateRef"></ng-container>
|
|
13568
|
+
} @else {
|
|
13569
|
+
<pre class="k-pre"><code class="k-code">{{ result | json }}</code></pre>
|
|
13570
|
+
}
|
|
13571
|
+
}
|
|
13572
|
+
}
|
|
13573
|
+
@case ('error') {
|
|
13574
|
+
@if (errorTemplate) {
|
|
13575
|
+
<ng-container [ngTemplateOutlet]="errorTemplate.templateRef"></ng-container>
|
|
13576
|
+
} @else if (errorText) {
|
|
13577
|
+
<div class="k-messagebox k-messagebox-error">{{ errorText }}</div>
|
|
13578
|
+
}
|
|
13579
|
+
}
|
|
13580
|
+
}
|
|
13581
|
+
</div>
|
|
13582
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AgentStepBase, selector: "[kendoLlmKitAgentStep]", inputs: ["label", "secondaryLabel", "icon", "svgIcon", "completed", "expandable", "expanded", "linesAdded", "linesRemoved"], outputs: ["expandedChange"] }, { kind: "directive", type: AgentStepBadgeDirective, selector: "[kendoLlmKitAgentStepBadge]" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: CardComponent, selector: "kendo-card", inputs: ["orientation", "width"] }, { kind: "component", type: CardBodyComponent, selector: "kendo-card-body" }, { kind: "component", type: CardActionsComponent, selector: "kendo-card-actions", inputs: ["orientation", "layout", "actions"], outputs: ["action"] }, { kind: "component", type: BadgeComponent, selector: "kendo-badge", inputs: ["align", "size", "fill", "themeColor", "rounded", "position", "cutoutBorder"] }, { kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoLlmKitLocalizedMessages]" }, { kind: "pipe", type: JsonPipe, name: "json" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
13583
|
+
}
|
|
13584
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ToolCallComponent, decorators: [{
|
|
13585
|
+
type: Component,
|
|
13586
|
+
args: [{
|
|
13587
|
+
exportAs: 'kendoToolCall',
|
|
13588
|
+
selector: 'kendo-toolcall',
|
|
13589
|
+
standalone: true,
|
|
13590
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13591
|
+
providers: [LocalizationService, { provide: L10N_PREFIX, useValue: 'kendo.llmkit' }],
|
|
13592
|
+
imports: [
|
|
13593
|
+
AgentStepBase,
|
|
13594
|
+
AgentStepBadgeDirective,
|
|
13595
|
+
NgTemplateOutlet,
|
|
13596
|
+
JsonPipe,
|
|
13597
|
+
IconWrapperComponent,
|
|
13598
|
+
ButtonComponent,
|
|
13599
|
+
CardComponent,
|
|
13600
|
+
CardBodyComponent,
|
|
13601
|
+
CardActionsComponent,
|
|
13602
|
+
BadgeComponent,
|
|
13603
|
+
LocalizedMessagesDirective,
|
|
13604
|
+
],
|
|
13605
|
+
template: `
|
|
13606
|
+
<ng-container
|
|
13607
|
+
kendoLlmKitLocalizedMessages
|
|
13608
|
+
i18n-approveAction="kendo.llmkit.approveAction|The text for the ToolCall's default Approve action."
|
|
13609
|
+
approveAction="Approve"
|
|
13610
|
+
i18n-rejectAction="kendo.llmkit.rejectAction|The text for the ToolCall's default Reject action."
|
|
13611
|
+
rejectAction="Reject"
|
|
13612
|
+
i18n-parametersLabel="
|
|
13613
|
+
kendo.llmkit.parametersLabel|The label shown above the ToolCall's default formatted-JSON parameters
|
|
13614
|
+
block.
|
|
13615
|
+
"
|
|
13616
|
+
parametersLabel="Parameters"
|
|
13617
|
+
i18n-resultLabel="
|
|
13618
|
+
kendo.llmkit.resultLabel|The label shown above the ToolCall's default formatted-JSON result block.
|
|
13619
|
+
"
|
|
13620
|
+
resultLabel="Result"
|
|
13621
|
+
i18n-awaitingApprovalStatus="
|
|
13622
|
+
kendo.llmkit.awaitingApprovalStatus|The default ToolCall badge text for the awaiting approval state.
|
|
13623
|
+
"
|
|
13624
|
+
awaitingApprovalStatus="Awaiting approval"
|
|
13625
|
+
i18n-completedStatus="kendo.llmkit.completedStatus|The default ToolCall badge text for the completed state."
|
|
13626
|
+
completedStatus="Completed"
|
|
13627
|
+
i18n-errorStatus="kendo.llmkit.errorStatus|The default ToolCall badge text for the error state."
|
|
13628
|
+
errorStatus="Error"
|
|
13629
|
+
>
|
|
13630
|
+
</ng-container>
|
|
13631
|
+
<div
|
|
13632
|
+
class="k-tool-call"
|
|
13633
|
+
kendoLlmKitAgentStep
|
|
13634
|
+
[label]="label"
|
|
13635
|
+
[secondaryLabel]="secondaryLabel"
|
|
13636
|
+
[icon]="icon"
|
|
13637
|
+
[svgIcon]="svgIcon"
|
|
13638
|
+
[completed]="agentStepCompleted"
|
|
13639
|
+
[expandable]="expandable"
|
|
13640
|
+
[expanded]="expanded"
|
|
13641
|
+
(expandedChange)="handleExpandedChange($event)"
|
|
13642
|
+
>
|
|
13643
|
+
@if (state !== 'active') {
|
|
13644
|
+
<kendo-badge
|
|
13645
|
+
kendoLlmKitAgentStepBadge
|
|
13646
|
+
size="small"
|
|
13647
|
+
rounded="full"
|
|
13648
|
+
position="none"
|
|
13649
|
+
[align]="null"
|
|
13650
|
+
[themeColor]="badgeThemeColor"
|
|
13651
|
+
>
|
|
13652
|
+
@if (statusSVGIcon) {
|
|
13653
|
+
<kendo-icon-wrapper
|
|
13654
|
+
size="small"
|
|
13655
|
+
[name]="statusFontIcon"
|
|
13656
|
+
[svgIcon]="statusSVGIcon">
|
|
13657
|
+
</kendo-icon-wrapper>
|
|
13658
|
+
}
|
|
13659
|
+
{{ statusText }}
|
|
13660
|
+
</kendo-badge>
|
|
13661
|
+
}
|
|
13662
|
+
@if (paramsTemplate || (parameters !== undefined && parameters !== null)) {
|
|
13663
|
+
<div class="k-tool-call-label">{{ messageFor('parametersLabel') }}</div>
|
|
13664
|
+
@if (paramsTemplate) {
|
|
13665
|
+
<ng-container [ngTemplateOutlet]="paramsTemplate.templateRef"></ng-container>
|
|
13666
|
+
} @else {
|
|
13667
|
+
<pre class="k-pre"><code class="k-code">{{ parameters | json }}</code></pre>
|
|
13668
|
+
}
|
|
13669
|
+
}
|
|
13670
|
+
@switch (state) {
|
|
13671
|
+
@case ('awaitingApproval') {
|
|
13672
|
+
<kendo-card width="100%">
|
|
13673
|
+
@if (approvalTemplate) {
|
|
13674
|
+
<ng-container [ngTemplateOutlet]="approvalTemplate.templateRef"></ng-container>
|
|
13675
|
+
} @else if (approvalText) {
|
|
13676
|
+
<kendo-card-body>{{ approvalText }}</kendo-card-body>
|
|
13677
|
+
<kendo-card-actions layout="end" orientation="horizontal">
|
|
13678
|
+
<button kendoButton fillMode="outline" (click)="handleAction('reject')">
|
|
13679
|
+
{{ messageFor('rejectAction') }}
|
|
13680
|
+
</button>
|
|
13681
|
+
<button kendoButton themeColor="primary" (click)="handleAction('approve')">
|
|
13682
|
+
{{ messageFor('approveAction') }}
|
|
13683
|
+
</button>
|
|
13684
|
+
</kendo-card-actions>
|
|
13685
|
+
}
|
|
13686
|
+
</kendo-card>
|
|
13687
|
+
}
|
|
13688
|
+
@case ('completed') {
|
|
13689
|
+
@if (resultTemplate || (result !== undefined && result !== null)) {
|
|
13690
|
+
<div class="k-tool-call-label">{{ messageFor('resultLabel') }}</div>
|
|
13691
|
+
@if (resultTemplate) {
|
|
13692
|
+
<ng-container [ngTemplateOutlet]="resultTemplate.templateRef"></ng-container>
|
|
13693
|
+
} @else {
|
|
13694
|
+
<pre class="k-pre"><code class="k-code">{{ result | json }}</code></pre>
|
|
13695
|
+
}
|
|
13696
|
+
}
|
|
13697
|
+
}
|
|
13698
|
+
@case ('error') {
|
|
13699
|
+
@if (errorTemplate) {
|
|
13700
|
+
<ng-container [ngTemplateOutlet]="errorTemplate.templateRef"></ng-container>
|
|
13701
|
+
} @else if (errorText) {
|
|
13702
|
+
<div class="k-messagebox k-messagebox-error">{{ errorText }}</div>
|
|
13703
|
+
}
|
|
13704
|
+
}
|
|
13705
|
+
}
|
|
13706
|
+
</div>
|
|
13707
|
+
`,
|
|
13708
|
+
}]
|
|
13709
|
+
}], ctorParameters: () => [{ type: i1.LocalizationService }], propDecorators: { paramsTemplate: [{
|
|
13710
|
+
type: ContentChild,
|
|
13711
|
+
args: [ToolCallParametersTemplateDirective]
|
|
13712
|
+
}], approvalTemplate: [{
|
|
13713
|
+
type: ContentChild,
|
|
13714
|
+
args: [ToolCallApprovalTemplateDirective]
|
|
13715
|
+
}], resultTemplate: [{
|
|
13716
|
+
type: ContentChild,
|
|
13717
|
+
args: [ToolCallResultTemplateDirective]
|
|
13718
|
+
}], errorTemplate: [{
|
|
13719
|
+
type: ContentChild,
|
|
13720
|
+
args: [ToolCallErrorTemplateDirective]
|
|
13721
|
+
}], parameters: [{
|
|
13722
|
+
type: Input
|
|
13723
|
+
}], result: [{
|
|
13724
|
+
type: Input
|
|
13725
|
+
}], errorText: [{
|
|
13726
|
+
type: Input
|
|
13727
|
+
}], label: [{
|
|
13728
|
+
type: Input
|
|
13729
|
+
}], secondaryLabel: [{
|
|
13730
|
+
type: Input
|
|
13731
|
+
}], approvalText: [{
|
|
13732
|
+
type: Input
|
|
13733
|
+
}], icon: [{
|
|
13734
|
+
type: Input
|
|
13735
|
+
}], svgIcon: [{
|
|
13736
|
+
type: Input
|
|
13737
|
+
}], statusFontIcon: [{
|
|
13738
|
+
type: Input
|
|
13739
|
+
}], statusSVGIcon: [{
|
|
13740
|
+
type: Input
|
|
13741
|
+
}], state: [{
|
|
13742
|
+
type: Input
|
|
13743
|
+
}], expandable: [{
|
|
13744
|
+
type: Input
|
|
13745
|
+
}], expanded: [{
|
|
13746
|
+
type: Input
|
|
13747
|
+
}], expandedChange: [{
|
|
13748
|
+
type: Output
|
|
13749
|
+
}], action: [{
|
|
13750
|
+
type: Output
|
|
13751
|
+
}], direction: [{
|
|
13752
|
+
type: HostBinding,
|
|
13753
|
+
args: ['attr.dir']
|
|
13754
|
+
}] } });
|
|
13755
|
+
|
|
13756
|
+
/**
|
|
13757
|
+
* Represents the template that replaces the default content for each source in the Citation popover.
|
|
13758
|
+
* The current `CitationSource` item is available as the `$implicit` template value.
|
|
13759
|
+
*
|
|
13760
|
+
* @example
|
|
13761
|
+
* ```html
|
|
13762
|
+
* <kendo-citation [sources]="sources">
|
|
13763
|
+
* <ng-template kendoCitationBodyTemplate let-source>
|
|
13764
|
+
* <h6>{{ source.title }}</h6>
|
|
13765
|
+
* </ng-template>
|
|
13766
|
+
* </kendo-citation>
|
|
13767
|
+
* ```
|
|
13768
|
+
*/
|
|
13769
|
+
class CitationBodyTemplateDirective {
|
|
13770
|
+
templateRef;
|
|
13771
|
+
constructor(templateRef) {
|
|
13772
|
+
this.templateRef = templateRef;
|
|
13773
|
+
}
|
|
13774
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: CitationBodyTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
13775
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: CitationBodyTemplateDirective, isStandalone: true, selector: "[kendoCitationBodyTemplate]", ngImport: i0 });
|
|
13776
|
+
}
|
|
13777
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: CitationBodyTemplateDirective, decorators: [{
|
|
13778
|
+
type: Directive,
|
|
13779
|
+
args: [{
|
|
13780
|
+
selector: '[kendoCitationBodyTemplate]',
|
|
13781
|
+
standalone: true
|
|
13782
|
+
}]
|
|
13783
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
13784
|
+
|
|
13785
|
+
/**
|
|
13786
|
+
* Represents the [Kendo UI Citation component for Angular](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/llm-kit/citation).
|
|
13787
|
+
* Displays an inline chip for a cited resource and a paginated hover/focus popover with its source details.
|
|
13788
|
+
*
|
|
13789
|
+
* @example
|
|
13790
|
+
* ```html
|
|
13791
|
+
* <kendo-citation
|
|
13792
|
+
* [sources]="[{ title: 'Kendo UI', description: 'Component docs', url: 'https://www.telerik.com/kendo-angular-ui' }]"
|
|
13793
|
+
* ></kendo-citation>
|
|
13794
|
+
* ```
|
|
13795
|
+
*/
|
|
13796
|
+
class CitationComponent {
|
|
13797
|
+
localization;
|
|
13798
|
+
renderer;
|
|
13799
|
+
/**
|
|
13800
|
+
* Replaces the default resource popover body content for each source. The template context is set to the current `CitationSource`.
|
|
13801
|
+
*
|
|
13802
|
+
* @hidden
|
|
13803
|
+
*/
|
|
13804
|
+
popoverBodyTemplate;
|
|
13805
|
+
/**
|
|
13806
|
+
* Sets the sources associated with the citation, in display order.
|
|
13807
|
+
*
|
|
13808
|
+
* @default []
|
|
13809
|
+
*/
|
|
13810
|
+
set sources(value) {
|
|
13811
|
+
this._sources.set(value);
|
|
13812
|
+
this._currentPage.set(1);
|
|
13813
|
+
}
|
|
13814
|
+
get sources() {
|
|
13815
|
+
return this._sources();
|
|
13816
|
+
}
|
|
13817
|
+
/**
|
|
13818
|
+
* Sets the label shown in the citation chip. When not set, the label defaults to the hostname
|
|
13819
|
+
* of the first source's URL, optionally followed by the count of additional sources.
|
|
13820
|
+
*/
|
|
13821
|
+
set label(value) {
|
|
13822
|
+
this._label.set(value);
|
|
13823
|
+
this._labelSet.set(true);
|
|
13824
|
+
}
|
|
13825
|
+
get label() {
|
|
13826
|
+
if (this._labelSet()) {
|
|
13827
|
+
return this._label();
|
|
13828
|
+
}
|
|
13829
|
+
return this._defaultLabel();
|
|
13830
|
+
}
|
|
13831
|
+
/**
|
|
13832
|
+
* Sets the name of a font icon rendered inside the citation chip.
|
|
13833
|
+
*
|
|
13834
|
+
* @default 'globe'
|
|
13835
|
+
*/
|
|
13836
|
+
set icon(value) {
|
|
13837
|
+
this._icon.set(value);
|
|
13838
|
+
}
|
|
13839
|
+
get icon() {
|
|
13840
|
+
return this._icon();
|
|
13841
|
+
}
|
|
13842
|
+
/**
|
|
13843
|
+
* Sets the SVG icon shown in the citation chip.
|
|
13844
|
+
*
|
|
13845
|
+
* @default globeIcon
|
|
13846
|
+
*/
|
|
13847
|
+
set svgIcon(value) {
|
|
13848
|
+
this._svgIcon.set(value);
|
|
13849
|
+
}
|
|
13850
|
+
get svgIcon() {
|
|
13851
|
+
return this._svgIcon();
|
|
13852
|
+
}
|
|
13853
|
+
/**
|
|
13854
|
+
* Sets the font icon shown before each source URL in the default popover view.
|
|
13855
|
+
*
|
|
13856
|
+
* @default 'globe'
|
|
13857
|
+
*/
|
|
13858
|
+
set sourceIcon(value) {
|
|
13859
|
+
this._sourceIcon.set(value);
|
|
13860
|
+
}
|
|
13861
|
+
get sourceIcon() {
|
|
13862
|
+
return this._sourceIcon();
|
|
13863
|
+
}
|
|
13864
|
+
/**
|
|
13865
|
+
* Sets the SVG icon shown before each source URL in the default popover view.
|
|
13866
|
+
*
|
|
13867
|
+
* @default globeIcon
|
|
13868
|
+
*/
|
|
13869
|
+
set sourceSVGIcon(value) {
|
|
13870
|
+
this._sourceSVGIcon.set(value);
|
|
13871
|
+
}
|
|
13872
|
+
get sourceSVGIcon() {
|
|
13873
|
+
return this._sourceSVGIcon();
|
|
13874
|
+
}
|
|
13875
|
+
/**
|
|
13876
|
+
* Sets whether the chip displays the count of additional sources.
|
|
13877
|
+
*
|
|
13878
|
+
* @default true
|
|
13879
|
+
*/
|
|
13880
|
+
set showAdditionalCount(value) {
|
|
13881
|
+
this._showAdditionalCount.set(value);
|
|
13882
|
+
}
|
|
13883
|
+
get showAdditionalCount() {
|
|
13884
|
+
return this._showAdditionalCount();
|
|
13885
|
+
}
|
|
13886
|
+
/**
|
|
13887
|
+
* Sets the interaction that displays the citation popover.
|
|
13888
|
+
*
|
|
13889
|
+
* @default 'hover'
|
|
13890
|
+
*/
|
|
13891
|
+
set showOn(value) {
|
|
13892
|
+
this._showOn.set(value);
|
|
13893
|
+
}
|
|
13894
|
+
get showOn() {
|
|
13895
|
+
return this._showOn();
|
|
13896
|
+
}
|
|
13897
|
+
/**
|
|
13898
|
+
* Fires when the citation popover is about to open after the user hovers over or clicks the citation.
|
|
13899
|
+
*/
|
|
13900
|
+
open = new EventEmitter();
|
|
13901
|
+
get direction() {
|
|
13902
|
+
return this._direction();
|
|
13903
|
+
}
|
|
13904
|
+
set direction(value) {
|
|
13905
|
+
this._direction.set(value);
|
|
13906
|
+
}
|
|
13907
|
+
/**
|
|
13908
|
+
* @hidden
|
|
13909
|
+
*/
|
|
13910
|
+
get popoverVisible() {
|
|
13911
|
+
return this._popoverVisible();
|
|
13912
|
+
}
|
|
13913
|
+
/**
|
|
13914
|
+
* @hidden
|
|
13915
|
+
*
|
|
13916
|
+
* 1-based index of the source currently shown in the resource popover.
|
|
13917
|
+
*/
|
|
13918
|
+
get currentPage() {
|
|
13919
|
+
return this._currentPage();
|
|
13920
|
+
}
|
|
13921
|
+
previousIcon = arrowLeftIcon;
|
|
13922
|
+
nextIcon = arrowRightIcon;
|
|
13923
|
+
_sources = signal([], ...(ngDevMode ? [{ debugName: "_sources" }] : []));
|
|
13924
|
+
_label = signal(undefined, ...(ngDevMode ? [{ debugName: "_label" }] : []));
|
|
13925
|
+
_labelSet = signal(false, ...(ngDevMode ? [{ debugName: "_labelSet" }] : []));
|
|
13926
|
+
_icon = signal('globe', ...(ngDevMode ? [{ debugName: "_icon" }] : []));
|
|
13927
|
+
_svgIcon = signal(globeIcon, ...(ngDevMode ? [{ debugName: "_svgIcon" }] : []));
|
|
13928
|
+
_sourceIcon = signal('globe', ...(ngDevMode ? [{ debugName: "_sourceIcon" }] : []));
|
|
13929
|
+
_sourceSVGIcon = signal(globeIcon, ...(ngDevMode ? [{ debugName: "_sourceSVGIcon" }] : []));
|
|
13930
|
+
_showAdditionalCount = signal(true, ...(ngDevMode ? [{ debugName: "_showAdditionalCount" }] : []));
|
|
13931
|
+
_showOn = signal('hover', ...(ngDevMode ? [{ debugName: "_showOn" }] : []));
|
|
13932
|
+
_popoverVisible = signal(false, ...(ngDevMode ? [{ debugName: "_popoverVisible" }] : []));
|
|
13933
|
+
_currentPage = signal(1, ...(ngDevMode ? [{ debugName: "_currentPage" }] : []));
|
|
13934
|
+
_direction = signal(undefined, ...(ngDevMode ? [{ debugName: "_direction" }] : []));
|
|
13935
|
+
_defaultLabel = computed(() => this.getDefaultLabel(), ...(ngDevMode ? [{ debugName: "_defaultLabel" }] : []));
|
|
13936
|
+
_popoverElement = signal(undefined, ...(ngDevMode ? [{ debugName: "_popoverElement" }] : []));
|
|
13937
|
+
subscription;
|
|
13938
|
+
popoverViewPositionEffect = effect(() => {
|
|
13939
|
+
const popoverElement = this._popoverElement();
|
|
13940
|
+
const currentPage = this._currentPage();
|
|
13941
|
+
if (popoverElement) {
|
|
13942
|
+
this.renderer.setStyle(popoverElement, '--kendo-citation-popover-view-current', `${currentPage}`, RendererStyleFlags2.DashCase);
|
|
13943
|
+
}
|
|
13944
|
+
}, ...(ngDevMode ? [{ debugName: "popoverViewPositionEffect" }] : []));
|
|
13945
|
+
constructor(localization, renderer) {
|
|
13946
|
+
this.localization = localization;
|
|
13947
|
+
this.renderer = renderer;
|
|
13948
|
+
validatePackage(packageMetadata);
|
|
13949
|
+
this.direction = this.localization.rtl ? 'rtl' : 'ltr';
|
|
13950
|
+
this.subscription = this.localization.changes.subscribe(({ rtl }) => {
|
|
13951
|
+
this.direction = rtl ? 'rtl' : 'ltr';
|
|
13952
|
+
});
|
|
13953
|
+
}
|
|
13954
|
+
ngOnDestroy() {
|
|
13955
|
+
this.subscription.unsubscribe();
|
|
13956
|
+
}
|
|
13957
|
+
/**
|
|
13958
|
+
* @hidden
|
|
13959
|
+
*/
|
|
13960
|
+
handlePopoverShow() {
|
|
13961
|
+
this._currentPage.set(1);
|
|
13962
|
+
this.open.emit({ sources: this.sources });
|
|
13963
|
+
}
|
|
13964
|
+
/**
|
|
13965
|
+
* @hidden
|
|
13966
|
+
*/
|
|
13967
|
+
handlePopoverShown(anchor) {
|
|
13968
|
+
const popoverElement = this.getPopoverElement(anchor);
|
|
13969
|
+
if (popoverElement) {
|
|
13970
|
+
this.renderer.addClass(popoverElement, 'k-citation-popover');
|
|
13971
|
+
}
|
|
13972
|
+
this._popoverElement.set(popoverElement);
|
|
13973
|
+
this._popoverVisible.set(true);
|
|
13974
|
+
}
|
|
13975
|
+
/**
|
|
13976
|
+
* @hidden
|
|
13977
|
+
*/
|
|
13978
|
+
handlePopoverHidden(anchor) {
|
|
13979
|
+
const popoverElement = this._popoverElement();
|
|
13980
|
+
if (anchor.popupRef && popoverElement) {
|
|
13981
|
+
this.renderer.removeClass(popoverElement, 'k-citation-popover');
|
|
13982
|
+
}
|
|
13983
|
+
this._popoverElement.set(undefined);
|
|
13984
|
+
this._popoverVisible.set(false);
|
|
13985
|
+
}
|
|
13986
|
+
/**
|
|
13987
|
+
* @hidden
|
|
13988
|
+
*/
|
|
13989
|
+
previous() {
|
|
13990
|
+
if (this.currentPage > 1) {
|
|
13991
|
+
this._currentPage.update(page => page - 1);
|
|
13992
|
+
}
|
|
13993
|
+
}
|
|
13994
|
+
/**
|
|
13995
|
+
* @hidden
|
|
13996
|
+
*/
|
|
13997
|
+
next() {
|
|
13998
|
+
if (this.currentPage < this.sources.length) {
|
|
13999
|
+
this._currentPage.update(page => page + 1);
|
|
14000
|
+
}
|
|
14001
|
+
}
|
|
14002
|
+
/**
|
|
14003
|
+
* @hidden
|
|
14004
|
+
*/
|
|
14005
|
+
messageFor(key) {
|
|
14006
|
+
return this.localization.get(key);
|
|
14007
|
+
}
|
|
14008
|
+
getDefaultLabel() {
|
|
14009
|
+
const sources = this._sources();
|
|
14010
|
+
if (!sources.length) {
|
|
14011
|
+
return '';
|
|
14012
|
+
}
|
|
14013
|
+
const primaryLabel = this.getSourceHostname(sources[0].url) ?? sources[0].title ?? '';
|
|
14014
|
+
const additionalCount = this._showAdditionalCount() && sources.length > 1
|
|
14015
|
+
? sources.length - 1
|
|
14016
|
+
: 0;
|
|
14017
|
+
return additionalCount ? `${primaryLabel} +${additionalCount}` : primaryLabel;
|
|
14018
|
+
}
|
|
14019
|
+
getSourceHostname(url) {
|
|
14020
|
+
if (!url) {
|
|
14021
|
+
return undefined;
|
|
14022
|
+
}
|
|
14023
|
+
try {
|
|
14024
|
+
return new URL(url).hostname;
|
|
14025
|
+
}
|
|
14026
|
+
catch {
|
|
14027
|
+
// Keep the raw URL when it cannot be parsed as an absolute URL.
|
|
14028
|
+
return url;
|
|
14029
|
+
}
|
|
14030
|
+
}
|
|
14031
|
+
getPopoverElement(anchor) {
|
|
14032
|
+
return anchor.popupRef.popupElement.querySelector('.k-popover') ?? undefined;
|
|
14033
|
+
}
|
|
14034
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: CitationComponent, deps: [{ token: i1.LocalizationService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
14035
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: CitationComponent, isStandalone: true, selector: "kendo-citation", inputs: { sources: "sources", label: "label", icon: "icon", svgIcon: "svgIcon", sourceIcon: "sourceIcon", sourceSVGIcon: "sourceSVGIcon", showAdditionalCount: "showAdditionalCount", showOn: "showOn" }, outputs: { open: "open" }, host: { properties: { "attr.dir": "this.direction" } }, providers: [
|
|
14036
|
+
LocalizationService,
|
|
14037
|
+
{ provide: L10N_PREFIX, useValue: 'kendo.llmkit' }
|
|
14038
|
+
], queries: [{ propertyName: "popoverBodyTemplate", first: true, predicate: CitationBodyTemplateDirective, descendants: true }], exportAs: ["kendoCitation"], ngImport: i0, template: `
|
|
14039
|
+
<ng-container
|
|
14040
|
+
kendoLlmKitLocalizedMessages
|
|
14041
|
+
i18n-previousSourceAction="kendo.llmkit.previousSourceAction|The aria-label for the Citation popover's Previous-source action."
|
|
14042
|
+
previousSourceAction="Previous source"
|
|
14043
|
+
i18n-nextSourceAction="kendo.llmkit.nextSourceAction|The aria-label for the Citation popover's Next-source action."
|
|
14044
|
+
nextSourceAction="Next source">
|
|
14045
|
+
</ng-container>
|
|
14046
|
+
@if (sources.length > 0) {
|
|
14047
|
+
<kendo-chip
|
|
14048
|
+
#anchor="kendoPopoverAnchor"
|
|
14049
|
+
class="k-citation"
|
|
14050
|
+
[label]="label"
|
|
14051
|
+
[icon]="icon"
|
|
14052
|
+
[svgIcon]="svgIcon"
|
|
14053
|
+
size="small"
|
|
14054
|
+
fillMode="outline"
|
|
14055
|
+
rounded="full"
|
|
14056
|
+
[selected]="popoverVisible"
|
|
14057
|
+
kendoPopoverAnchor
|
|
14058
|
+
[popover]="popoverRef"
|
|
14059
|
+
[showOn]="showOn"
|
|
14060
|
+
></kendo-chip>
|
|
14061
|
+
<kendo-popover
|
|
14062
|
+
#popoverRef
|
|
14063
|
+
position="bottom"
|
|
14064
|
+
[callout]="false"
|
|
14065
|
+
[width]="318"
|
|
14066
|
+
(show)="handlePopoverShow()"
|
|
14067
|
+
(shown)="handlePopoverShown(anchor)"
|
|
14068
|
+
(hidden)="handlePopoverHidden(anchor)"
|
|
14069
|
+
>
|
|
14070
|
+
<ng-template kendoPopoverTitleTemplate>
|
|
14071
|
+
<span class="k-citation-pages">{{ currentPage }}/{{ sources.length }}</span>
|
|
14072
|
+
<kendo-buttongroup class="k-button-group-flat">
|
|
14073
|
+
<button
|
|
14074
|
+
kendoButton
|
|
14075
|
+
fillMode="flat"
|
|
14076
|
+
size="small"
|
|
14077
|
+
icon="arrow-left"
|
|
14078
|
+
[svgIcon]="previousIcon"
|
|
14079
|
+
[attr.aria-label]="messageFor('previousSourceAction')"
|
|
14080
|
+
[disabled]="currentPage === 1"
|
|
14081
|
+
(click)="previous()"
|
|
14082
|
+
></button>
|
|
14083
|
+
<button
|
|
14084
|
+
kendoButton
|
|
14085
|
+
fillMode="flat"
|
|
14086
|
+
size="small"
|
|
14087
|
+
icon="arrow-right"
|
|
14088
|
+
[svgIcon]="nextIcon"
|
|
14089
|
+
[attr.aria-label]="messageFor('nextSourceAction')"
|
|
14090
|
+
[disabled]="currentPage === sources.length"
|
|
14091
|
+
(click)="next()"
|
|
14092
|
+
></button>
|
|
14093
|
+
</kendo-buttongroup>
|
|
14094
|
+
</ng-template>
|
|
14095
|
+
<ng-template kendoPopoverBodyTemplate>
|
|
14096
|
+
@for (source of sources; track $index) {
|
|
14097
|
+
<div class="k-citation-popover-view">
|
|
14098
|
+
@if (popoverBodyTemplate) {
|
|
14099
|
+
<ng-container
|
|
14100
|
+
[ngTemplateOutlet]="popoverBodyTemplate.templateRef"
|
|
14101
|
+
[ngTemplateOutletContext]="{ $implicit: source }"
|
|
14102
|
+
></ng-container>
|
|
14103
|
+
} @else {
|
|
14104
|
+
@if (source.title) {
|
|
14105
|
+
<div class="k-citation-popover-view-title">{{ source.title }}</div>
|
|
14106
|
+
}
|
|
14107
|
+
@if (source.url) {
|
|
14108
|
+
<a [href]="source.url" class="k-citation-popover-view-source">
|
|
14109
|
+
<kendo-icon-wrapper size="small" [name]="sourceIcon" [svgIcon]="sourceSVGIcon"></kendo-icon-wrapper>
|
|
14110
|
+
{{ source.url }}
|
|
14111
|
+
</a>
|
|
14112
|
+
}
|
|
14113
|
+
@if (source.description) {
|
|
14114
|
+
<span class="k-citation-popover-view-body">{{ source.description }}</span>
|
|
14115
|
+
}
|
|
14116
|
+
}
|
|
14117
|
+
</div>
|
|
14118
|
+
}
|
|
14119
|
+
</ng-template>
|
|
14120
|
+
</kendo-popover>
|
|
14121
|
+
} @else {
|
|
14122
|
+
<kendo-chip
|
|
14123
|
+
class="k-citation"
|
|
14124
|
+
[label]="label"
|
|
14125
|
+
[icon]="icon"
|
|
14126
|
+
[svgIcon]="svgIcon"
|
|
14127
|
+
size="small"
|
|
14128
|
+
fillMode="outline"
|
|
14129
|
+
rounded="full"
|
|
14130
|
+
></kendo-chip>
|
|
14131
|
+
}
|
|
14132
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ChipComponent, selector: "kendo-chip", inputs: ["label", "icon", "svgIcon", "iconClass", "avatarSettings", "selected", "removable", "removeIcon", "removeSvgIcon", "hasMenu", "menuIcon", "menuSvgIcon", "disabled", "size", "rounded", "fillMode", "themeColor"], outputs: ["remove", "menuToggle", "contentClick"] }, { kind: "component", type: IconWrapperComponent, selector: "kendo-icon-wrapper", inputs: ["name", "svgIcon", "innerCssClass", "customFontClass", "size"], exportAs: ["kendoIconWrapper"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "component", type: ButtonGroupComponent, selector: "kendo-buttongroup", inputs: ["disabled", "selection", "width", "tabIndex", "navigable"], outputs: ["navigate"], exportAs: ["kendoButtonGroup"] }, { kind: "component", type: PopoverComponent, selector: "kendo-popover", inputs: ["position", "offset", "width", "height", "title", "subtitle", "body", "callout", "animation", "templateData"], outputs: ["show", "shown", "hide", "hidden", "closeOnKeyDown"] }, { kind: "directive", type: PopoverAnchorDirective, selector: "[kendoPopoverAnchor]", exportAs: ["kendoPopoverAnchor"] }, { kind: "directive", type: PopoverTitleTemplateDirective, selector: "[kendoPopoverTitleTemplate]" }, { kind: "directive", type: PopoverBodyTemplateDirective, selector: "[kendoPopoverBodyTemplate]" }, { kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoLlmKitLocalizedMessages]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14133
|
+
}
|
|
14134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: CitationComponent, decorators: [{
|
|
14135
|
+
type: Component,
|
|
14136
|
+
args: [{
|
|
14137
|
+
exportAs: 'kendoCitation',
|
|
14138
|
+
selector: 'kendo-citation',
|
|
14139
|
+
standalone: true,
|
|
14140
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14141
|
+
providers: [
|
|
14142
|
+
LocalizationService,
|
|
14143
|
+
{ provide: L10N_PREFIX, useValue: 'kendo.llmkit' }
|
|
14144
|
+
],
|
|
14145
|
+
imports: [
|
|
14146
|
+
NgTemplateOutlet,
|
|
14147
|
+
ChipComponent,
|
|
14148
|
+
IconWrapperComponent,
|
|
14149
|
+
ButtonComponent,
|
|
14150
|
+
ButtonGroupComponent,
|
|
14151
|
+
PopoverComponent,
|
|
14152
|
+
PopoverAnchorDirective,
|
|
14153
|
+
PopoverTitleTemplateDirective,
|
|
14154
|
+
PopoverBodyTemplateDirective,
|
|
14155
|
+
LocalizedMessagesDirective
|
|
14156
|
+
],
|
|
14157
|
+
template: `
|
|
14158
|
+
<ng-container
|
|
14159
|
+
kendoLlmKitLocalizedMessages
|
|
14160
|
+
i18n-previousSourceAction="kendo.llmkit.previousSourceAction|The aria-label for the Citation popover's Previous-source action."
|
|
14161
|
+
previousSourceAction="Previous source"
|
|
14162
|
+
i18n-nextSourceAction="kendo.llmkit.nextSourceAction|The aria-label for the Citation popover's Next-source action."
|
|
14163
|
+
nextSourceAction="Next source">
|
|
14164
|
+
</ng-container>
|
|
14165
|
+
@if (sources.length > 0) {
|
|
14166
|
+
<kendo-chip
|
|
14167
|
+
#anchor="kendoPopoverAnchor"
|
|
14168
|
+
class="k-citation"
|
|
14169
|
+
[label]="label"
|
|
14170
|
+
[icon]="icon"
|
|
14171
|
+
[svgIcon]="svgIcon"
|
|
14172
|
+
size="small"
|
|
14173
|
+
fillMode="outline"
|
|
14174
|
+
rounded="full"
|
|
14175
|
+
[selected]="popoverVisible"
|
|
14176
|
+
kendoPopoverAnchor
|
|
14177
|
+
[popover]="popoverRef"
|
|
14178
|
+
[showOn]="showOn"
|
|
14179
|
+
></kendo-chip>
|
|
14180
|
+
<kendo-popover
|
|
14181
|
+
#popoverRef
|
|
14182
|
+
position="bottom"
|
|
14183
|
+
[callout]="false"
|
|
14184
|
+
[width]="318"
|
|
14185
|
+
(show)="handlePopoverShow()"
|
|
14186
|
+
(shown)="handlePopoverShown(anchor)"
|
|
14187
|
+
(hidden)="handlePopoverHidden(anchor)"
|
|
14188
|
+
>
|
|
14189
|
+
<ng-template kendoPopoverTitleTemplate>
|
|
14190
|
+
<span class="k-citation-pages">{{ currentPage }}/{{ sources.length }}</span>
|
|
14191
|
+
<kendo-buttongroup class="k-button-group-flat">
|
|
14192
|
+
<button
|
|
14193
|
+
kendoButton
|
|
14194
|
+
fillMode="flat"
|
|
14195
|
+
size="small"
|
|
14196
|
+
icon="arrow-left"
|
|
14197
|
+
[svgIcon]="previousIcon"
|
|
14198
|
+
[attr.aria-label]="messageFor('previousSourceAction')"
|
|
14199
|
+
[disabled]="currentPage === 1"
|
|
14200
|
+
(click)="previous()"
|
|
14201
|
+
></button>
|
|
14202
|
+
<button
|
|
14203
|
+
kendoButton
|
|
14204
|
+
fillMode="flat"
|
|
14205
|
+
size="small"
|
|
14206
|
+
icon="arrow-right"
|
|
14207
|
+
[svgIcon]="nextIcon"
|
|
14208
|
+
[attr.aria-label]="messageFor('nextSourceAction')"
|
|
14209
|
+
[disabled]="currentPage === sources.length"
|
|
14210
|
+
(click)="next()"
|
|
14211
|
+
></button>
|
|
14212
|
+
</kendo-buttongroup>
|
|
14213
|
+
</ng-template>
|
|
14214
|
+
<ng-template kendoPopoverBodyTemplate>
|
|
14215
|
+
@for (source of sources; track $index) {
|
|
14216
|
+
<div class="k-citation-popover-view">
|
|
14217
|
+
@if (popoverBodyTemplate) {
|
|
14218
|
+
<ng-container
|
|
14219
|
+
[ngTemplateOutlet]="popoverBodyTemplate.templateRef"
|
|
14220
|
+
[ngTemplateOutletContext]="{ $implicit: source }"
|
|
14221
|
+
></ng-container>
|
|
14222
|
+
} @else {
|
|
14223
|
+
@if (source.title) {
|
|
14224
|
+
<div class="k-citation-popover-view-title">{{ source.title }}</div>
|
|
14225
|
+
}
|
|
14226
|
+
@if (source.url) {
|
|
14227
|
+
<a [href]="source.url" class="k-citation-popover-view-source">
|
|
14228
|
+
<kendo-icon-wrapper size="small" [name]="sourceIcon" [svgIcon]="sourceSVGIcon"></kendo-icon-wrapper>
|
|
14229
|
+
{{ source.url }}
|
|
14230
|
+
</a>
|
|
14231
|
+
}
|
|
14232
|
+
@if (source.description) {
|
|
14233
|
+
<span class="k-citation-popover-view-body">{{ source.description }}</span>
|
|
14234
|
+
}
|
|
14235
|
+
}
|
|
14236
|
+
</div>
|
|
14237
|
+
}
|
|
14238
|
+
</ng-template>
|
|
14239
|
+
</kendo-popover>
|
|
14240
|
+
} @else {
|
|
14241
|
+
<kendo-chip
|
|
14242
|
+
class="k-citation"
|
|
14243
|
+
[label]="label"
|
|
14244
|
+
[icon]="icon"
|
|
14245
|
+
[svgIcon]="svgIcon"
|
|
14246
|
+
size="small"
|
|
14247
|
+
fillMode="outline"
|
|
14248
|
+
rounded="full"
|
|
14249
|
+
></kendo-chip>
|
|
14250
|
+
}
|
|
14251
|
+
`
|
|
14252
|
+
}]
|
|
14253
|
+
}], ctorParameters: () => [{ type: i1.LocalizationService }, { type: i0.Renderer2 }], propDecorators: { popoverBodyTemplate: [{
|
|
14254
|
+
type: ContentChild,
|
|
14255
|
+
args: [CitationBodyTemplateDirective]
|
|
14256
|
+
}], sources: [{
|
|
14257
|
+
type: Input
|
|
14258
|
+
}], label: [{
|
|
14259
|
+
type: Input
|
|
14260
|
+
}], icon: [{
|
|
14261
|
+
type: Input
|
|
14262
|
+
}], svgIcon: [{
|
|
14263
|
+
type: Input
|
|
14264
|
+
}], sourceIcon: [{
|
|
14265
|
+
type: Input
|
|
14266
|
+
}], sourceSVGIcon: [{
|
|
14267
|
+
type: Input
|
|
14268
|
+
}], showAdditionalCount: [{
|
|
14269
|
+
type: Input
|
|
14270
|
+
}], showOn: [{
|
|
14271
|
+
type: Input
|
|
14272
|
+
}], open: [{
|
|
14273
|
+
type: Output
|
|
14274
|
+
}], direction: [{
|
|
14275
|
+
type: HostBinding,
|
|
14276
|
+
args: ['attr.dir']
|
|
14277
|
+
}] } });
|
|
14278
|
+
|
|
14279
|
+
/**
|
|
14280
|
+
* Represents the template for the content displayed between the Checkpoint's two separator lines.
|
|
14281
|
+
* Replaces the default action or restored-state content.
|
|
14282
|
+
*
|
|
14283
|
+
* @example
|
|
14284
|
+
* ```html
|
|
14285
|
+
* <kendo-checkpoint [state]="state" displayMode="always">
|
|
14286
|
+
* <ng-template kendoCheckpointTemplate>
|
|
14287
|
+
* <button kendoButton fillMode="flat" size="xsmall">Custom action</button>
|
|
14288
|
+
* </ng-template>
|
|
14289
|
+
* </kendo-checkpoint>
|
|
14290
|
+
* ```
|
|
14291
|
+
*/
|
|
14292
|
+
class CheckpointTemplateDirective {
|
|
14293
|
+
templateRef;
|
|
14294
|
+
constructor(templateRef) {
|
|
14295
|
+
this.templateRef = templateRef;
|
|
14296
|
+
}
|
|
14297
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: CheckpointTemplateDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
14298
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.26", type: CheckpointTemplateDirective, isStandalone: true, selector: "[kendoCheckpointTemplate]", ngImport: i0 });
|
|
14299
|
+
}
|
|
14300
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: CheckpointTemplateDirective, decorators: [{
|
|
14301
|
+
type: Directive,
|
|
14302
|
+
args: [{
|
|
14303
|
+
selector: '[kendoCheckpointTemplate]',
|
|
14304
|
+
standalone: true
|
|
14305
|
+
}]
|
|
14306
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
14307
|
+
|
|
14308
|
+
/**
|
|
14309
|
+
* Represents the [Kendo UI Checkpoint component for Angular](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/llm-kit/checkpoint).
|
|
14310
|
+
* Displays a decorative separator between conversation turns with a restore or redo action.
|
|
14311
|
+
*
|
|
14312
|
+
* @example
|
|
14313
|
+
* ```html
|
|
14314
|
+
* <kendo-checkpoint state="restore" (action)="onCheckpointAction($event)"></kendo-checkpoint>
|
|
14315
|
+
* ```
|
|
14316
|
+
*/
|
|
14317
|
+
class CheckpointComponent {
|
|
14318
|
+
localization;
|
|
14319
|
+
/**
|
|
14320
|
+
* Renders the supplied template between the two separator lines instead of the default state-specific content.
|
|
14321
|
+
*
|
|
14322
|
+
* @hidden
|
|
14323
|
+
*/
|
|
14324
|
+
template;
|
|
14325
|
+
/**
|
|
14326
|
+
* Sets the current state of the Checkpoint.
|
|
14327
|
+
*/
|
|
14328
|
+
set state(value) {
|
|
14329
|
+
this._state.set(value);
|
|
14330
|
+
}
|
|
14331
|
+
get state() {
|
|
14332
|
+
return this._state();
|
|
14333
|
+
}
|
|
14334
|
+
/**
|
|
14335
|
+
* Sets whether the Checkpoint is always visible or visible only when the user hovers over it.
|
|
14336
|
+
*
|
|
14337
|
+
* @default 'hover'
|
|
14338
|
+
*/
|
|
14339
|
+
set displayMode(value) {
|
|
14340
|
+
this._displayMode.set(value);
|
|
14341
|
+
}
|
|
14342
|
+
get displayMode() {
|
|
14343
|
+
return this._displayMode();
|
|
14344
|
+
}
|
|
14345
|
+
/**
|
|
14346
|
+
* Fires when the user clicks the Checkpoint. The event arguments contain the current `state`.
|
|
14347
|
+
*/
|
|
14348
|
+
action = new EventEmitter();
|
|
14349
|
+
hostClass = true;
|
|
14350
|
+
get checkpointVisibleClass() {
|
|
14351
|
+
return this._displayMode() === 'always';
|
|
14352
|
+
}
|
|
14353
|
+
get direction() {
|
|
14354
|
+
return this._direction();
|
|
14355
|
+
}
|
|
14356
|
+
set direction(value) {
|
|
14357
|
+
this._direction.set(value);
|
|
14358
|
+
}
|
|
14359
|
+
_state = signal(undefined, ...(ngDevMode ? [{ debugName: "_state" }] : []));
|
|
14360
|
+
_displayMode = signal('hover', ...(ngDevMode ? [{ debugName: "_displayMode" }] : []));
|
|
14361
|
+
_direction = signal(undefined, ...(ngDevMode ? [{ debugName: "_direction" }] : []));
|
|
14362
|
+
subscription;
|
|
14363
|
+
constructor(localization) {
|
|
14364
|
+
this.localization = localization;
|
|
14365
|
+
validatePackage(packageMetadata);
|
|
14366
|
+
this.direction = this.localization.rtl ? 'rtl' : 'ltr';
|
|
14367
|
+
this.subscription = this.localization.changes.subscribe(({ rtl }) => {
|
|
14368
|
+
this.direction = rtl ? 'rtl' : 'ltr';
|
|
14369
|
+
});
|
|
14370
|
+
}
|
|
14371
|
+
ngOnDestroy() {
|
|
14372
|
+
this.subscription.unsubscribe();
|
|
14373
|
+
}
|
|
14374
|
+
/**
|
|
14375
|
+
* @hidden
|
|
14376
|
+
* Emits the `action` event with the current `state` on click.
|
|
14377
|
+
*/
|
|
14378
|
+
emitAction() {
|
|
14379
|
+
this.action.emit({ action: this.state });
|
|
14380
|
+
}
|
|
14381
|
+
/**
|
|
14382
|
+
* @hidden
|
|
14383
|
+
*/
|
|
14384
|
+
messageFor(key) {
|
|
14385
|
+
return this.localization.get(key);
|
|
14386
|
+
}
|
|
14387
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: CheckpointComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
14388
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.26", type: CheckpointComponent, isStandalone: true, selector: "kendo-checkpoint", inputs: { state: "state", displayMode: "displayMode" }, outputs: { action: "action" }, host: { properties: { "class.k-checkpoint": "this.hostClass", "class.k-checkpoint-visible": "this.checkpointVisibleClass", "attr.dir": "this.direction" } }, providers: [
|
|
14389
|
+
LocalizationService,
|
|
14390
|
+
{ provide: L10N_PREFIX, useValue: 'kendo.llmkit' }
|
|
14391
|
+
], queries: [{ propertyName: "template", first: true, predicate: CheckpointTemplateDirective, descendants: true }], exportAs: ["kendoCheckpoint"], ngImport: i0, template: `
|
|
14392
|
+
<ng-container
|
|
14393
|
+
kendoLlmKitLocalizedMessages
|
|
14394
|
+
i18n-startOverAction="kendo.llmkit.startOverAction|The text for the Checkpoint's default action in the startOver state."
|
|
14395
|
+
startOverAction="Start Over"
|
|
14396
|
+
i18n-restoreAction="kendo.llmkit.restoreAction|The text for the Checkpoint's default action in the restore state."
|
|
14397
|
+
restoreAction="Restore Checkpoint"
|
|
14398
|
+
i18n-redoAction="kendo.llmkit.redoAction|The text for the Checkpoint's default action in the redo state."
|
|
14399
|
+
redoAction="Redo"
|
|
14400
|
+
i18n-checkpointRestoredText="kendo.llmkit.checkpointRestoredText|The text for the Checkpoint's default stamp shown in the redo state."
|
|
14401
|
+
checkpointRestoredText="Checkpoint Restored">
|
|
14402
|
+
</ng-container>
|
|
14403
|
+
<span class="k-checkpoint-line" aria-hidden="true"></span>
|
|
14404
|
+
@if (template) {
|
|
14405
|
+
<ng-container [ngTemplateOutlet]="template.templateRef"></ng-container>
|
|
14406
|
+
} @else {
|
|
14407
|
+
@switch (state) {
|
|
14408
|
+
@case ('startOver') {
|
|
14409
|
+
<button kendoButton fillMode="flat" size="small" (click)="emitAction()">{{ messageFor('startOverAction') }}</button>
|
|
14410
|
+
}
|
|
14411
|
+
@case ('restore') {
|
|
14412
|
+
<button kendoButton fillMode="flat" size="small" (click)="emitAction()">{{ messageFor('restoreAction') }}</button>
|
|
14413
|
+
}
|
|
14414
|
+
@case ('redo') {
|
|
14415
|
+
<span class="k-checkpoint-stamp">{{ messageFor('checkpointRestoredText') }}</span>
|
|
14416
|
+
<span>·</span>
|
|
14417
|
+
<button kendoButton fillMode="flat" size="small" (click)="emitAction()">{{ messageFor('redoAction') }}</button>
|
|
14418
|
+
}
|
|
14419
|
+
}
|
|
14420
|
+
}
|
|
14421
|
+
<span class="k-checkpoint-line" aria-hidden="true"></span>
|
|
14422
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ButtonComponent, selector: "button[kendoButton]", inputs: ["arrowIcon", "toggleable", "togglable", "selected", "tabIndex", "imageUrl", "iconPosition", "iconClass", "icon", "disabled", "size", "rounded", "fillMode", "themeColor", "svgIcon"], outputs: ["selectedChange", "click"], exportAs: ["kendoButton"] }, { kind: "directive", type: LocalizedMessagesDirective, selector: "[kendoLlmKitLocalizedMessages]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14423
|
+
}
|
|
14424
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: CheckpointComponent, decorators: [{
|
|
14425
|
+
type: Component,
|
|
14426
|
+
args: [{
|
|
14427
|
+
exportAs: 'kendoCheckpoint',
|
|
14428
|
+
selector: 'kendo-checkpoint',
|
|
14429
|
+
standalone: true,
|
|
14430
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14431
|
+
providers: [
|
|
14432
|
+
LocalizationService,
|
|
14433
|
+
{ provide: L10N_PREFIX, useValue: 'kendo.llmkit' }
|
|
14434
|
+
],
|
|
14435
|
+
imports: [NgTemplateOutlet, ButtonComponent, LocalizedMessagesDirective],
|
|
14436
|
+
template: `
|
|
14437
|
+
<ng-container
|
|
14438
|
+
kendoLlmKitLocalizedMessages
|
|
14439
|
+
i18n-startOverAction="kendo.llmkit.startOverAction|The text for the Checkpoint's default action in the startOver state."
|
|
14440
|
+
startOverAction="Start Over"
|
|
14441
|
+
i18n-restoreAction="kendo.llmkit.restoreAction|The text for the Checkpoint's default action in the restore state."
|
|
14442
|
+
restoreAction="Restore Checkpoint"
|
|
14443
|
+
i18n-redoAction="kendo.llmkit.redoAction|The text for the Checkpoint's default action in the redo state."
|
|
14444
|
+
redoAction="Redo"
|
|
14445
|
+
i18n-checkpointRestoredText="kendo.llmkit.checkpointRestoredText|The text for the Checkpoint's default stamp shown in the redo state."
|
|
14446
|
+
checkpointRestoredText="Checkpoint Restored">
|
|
14447
|
+
</ng-container>
|
|
14448
|
+
<span class="k-checkpoint-line" aria-hidden="true"></span>
|
|
14449
|
+
@if (template) {
|
|
14450
|
+
<ng-container [ngTemplateOutlet]="template.templateRef"></ng-container>
|
|
14451
|
+
} @else {
|
|
14452
|
+
@switch (state) {
|
|
14453
|
+
@case ('startOver') {
|
|
14454
|
+
<button kendoButton fillMode="flat" size="small" (click)="emitAction()">{{ messageFor('startOverAction') }}</button>
|
|
14455
|
+
}
|
|
14456
|
+
@case ('restore') {
|
|
14457
|
+
<button kendoButton fillMode="flat" size="small" (click)="emitAction()">{{ messageFor('restoreAction') }}</button>
|
|
14458
|
+
}
|
|
14459
|
+
@case ('redo') {
|
|
14460
|
+
<span class="k-checkpoint-stamp">{{ messageFor('checkpointRestoredText') }}</span>
|
|
14461
|
+
<span>·</span>
|
|
14462
|
+
<button kendoButton fillMode="flat" size="small" (click)="emitAction()">{{ messageFor('redoAction') }}</button>
|
|
14463
|
+
}
|
|
14464
|
+
}
|
|
14465
|
+
}
|
|
14466
|
+
<span class="k-checkpoint-line" aria-hidden="true"></span>
|
|
14467
|
+
`
|
|
14468
|
+
}]
|
|
14469
|
+
}], ctorParameters: () => [{ type: i1.LocalizationService }], propDecorators: { template: [{
|
|
14470
|
+
type: ContentChild,
|
|
14471
|
+
args: [CheckpointTemplateDirective]
|
|
14472
|
+
}], state: [{
|
|
14473
|
+
type: Input
|
|
14474
|
+
}], displayMode: [{
|
|
14475
|
+
type: Input
|
|
14476
|
+
}], action: [{
|
|
14477
|
+
type: Output
|
|
14478
|
+
}], hostClass: [{
|
|
14479
|
+
type: HostBinding,
|
|
14480
|
+
args: ['class.k-checkpoint']
|
|
14481
|
+
}], checkpointVisibleClass: [{
|
|
14482
|
+
type: HostBinding,
|
|
14483
|
+
args: ['class.k-checkpoint-visible']
|
|
14484
|
+
}], direction: [{
|
|
14485
|
+
type: HostBinding,
|
|
14486
|
+
args: ['attr.dir']
|
|
14487
|
+
}] } });
|
|
14488
|
+
|
|
14489
|
+
/**
|
|
14490
|
+
* Represents the custom messages component shared by the LLM Kit primitives (`Reasoning`, `ChainOfThought`,
|
|
14491
|
+
* `ToolCall`, `Citation`, and `Checkpoint`).
|
|
14492
|
+
*
|
|
14493
|
+
* Use this component to override the default messages for the LLM Kit primitives
|
|
14494
|
+
* ([see example](https://www.telerik.com/kendo-angular-ui/components/conversational-ui/globalization#custom-messages)).
|
|
14495
|
+
*
|
|
14496
|
+
* @example
|
|
14497
|
+
* ```html
|
|
14498
|
+
* <kendo-llmkit-messages
|
|
14499
|
+
* approveAction="Allow"
|
|
14500
|
+
* rejectAction="Deny">
|
|
14501
|
+
* </kendo-llmkit-messages>
|
|
14502
|
+
* ```
|
|
14503
|
+
*/
|
|
14504
|
+
class LlmKitCustomMessagesComponent extends LlmKitMessages {
|
|
14505
|
+
service;
|
|
14506
|
+
constructor(service) {
|
|
14507
|
+
super();
|
|
14508
|
+
this.service = service;
|
|
14509
|
+
}
|
|
14510
|
+
get override() {
|
|
14511
|
+
return true;
|
|
14512
|
+
}
|
|
14513
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: LlmKitCustomMessagesComponent, deps: [{ token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
14514
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.26", type: LlmKitCustomMessagesComponent, isStandalone: true, selector: "kendo-llmkit-messages", providers: [
|
|
14515
|
+
{
|
|
14516
|
+
provide: LlmKitMessages,
|
|
14517
|
+
useExisting: forwardRef(() => LlmKitCustomMessagesComponent)
|
|
14518
|
+
}
|
|
14519
|
+
], usesInheritance: true, ngImport: i0, template: ``, isInline: true });
|
|
14520
|
+
}
|
|
14521
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: LlmKitCustomMessagesComponent, decorators: [{
|
|
14522
|
+
type: Component,
|
|
14523
|
+
args: [{
|
|
14524
|
+
providers: [
|
|
14525
|
+
{
|
|
14526
|
+
provide: LlmKitMessages,
|
|
14527
|
+
useExisting: forwardRef(() => LlmKitCustomMessagesComponent)
|
|
14528
|
+
}
|
|
14529
|
+
],
|
|
14530
|
+
selector: 'kendo-llmkit-messages',
|
|
14531
|
+
template: ``,
|
|
14532
|
+
standalone: true
|
|
14533
|
+
}]
|
|
14534
|
+
}], ctorParameters: () => [{ type: i1.LocalizationService }] });
|
|
14535
|
+
|
|
14536
|
+
/**
|
|
14537
|
+
* Utility array that contains all AIPrompt related components and directives.
|
|
14538
|
+
*
|
|
14539
|
+
* @example
|
|
14540
|
+
* ```ts
|
|
14541
|
+
* import { Component } from '@angular/core';
|
|
14542
|
+
* import { KENDO_AIPROMPT } from '@progress/kendo-angular-conversational-ui';
|
|
14543
|
+
*
|
|
14544
|
+
* @Component({
|
|
14545
|
+
* standalone: true,
|
|
14546
|
+
* imports: [KENDO_AIPROMPT],
|
|
14547
|
+
* selector: 'my-app',
|
|
14548
|
+
* template: `<kendo-aiprompt></kendo-aiprompt>`
|
|
14549
|
+
* })
|
|
14550
|
+
* export class AppComponent {}
|
|
14551
|
+
* ```
|
|
14552
|
+
*/
|
|
14553
|
+
const KENDO_AIPROMPT = [
|
|
14554
|
+
AIPromptComponent,
|
|
14555
|
+
PromptViewComponent,
|
|
14556
|
+
OutputViewComponent,
|
|
14557
|
+
CommandViewComponent,
|
|
14558
|
+
CustomViewComponent,
|
|
14559
|
+
AIPromptCustomMessagesComponent,
|
|
14560
|
+
AIPromptToolbarActionsDirective,
|
|
14561
|
+
AIPromptToolbarFocusableDirective,
|
|
14562
|
+
AIPromptOutputTemplateDirective,
|
|
14563
|
+
AIPromptOutputBodyTemplateDirective,
|
|
14564
|
+
];
|
|
14565
|
+
/**
|
|
14566
|
+
* Utility array that contains all Chat related components and directives.
|
|
14567
|
+
*
|
|
14568
|
+
* @example
|
|
14569
|
+
* ```ts
|
|
14570
|
+
* import { Component } from '@angular/core';
|
|
14571
|
+
* import { KENDO_CHAT } from '@progress/kendo-angular-conversational-ui';
|
|
14572
|
+
*
|
|
14573
|
+
* @Component({
|
|
14574
|
+
* standalone: true,
|
|
14575
|
+
* imports: [KENDO_CHAT],
|
|
14576
|
+
* selector: 'my-app',
|
|
14577
|
+
* template: `<kendo-chat></kendo-chat>`
|
|
14578
|
+
* })
|
|
14579
|
+
* export class AppComponent {}
|
|
14580
|
+
* ```
|
|
14581
|
+
*/
|
|
14582
|
+
const KENDO_CHAT = [
|
|
14583
|
+
ChatComponent,
|
|
14584
|
+
CustomMessagesComponent,
|
|
14585
|
+
AttachmentTemplateDirective,
|
|
14586
|
+
AuthorMessageContentTemplateDirective,
|
|
14587
|
+
ReceiverMessageContentTemplateDirective,
|
|
14588
|
+
MessageContentTemplateDirective,
|
|
14589
|
+
AuthorMessageTemplateDirective,
|
|
14590
|
+
ReceiverMessageTemplateDirective,
|
|
14591
|
+
MessageTemplateDirective,
|
|
14592
|
+
HeroCardComponent,
|
|
12038
14593
|
ChatMessageBoxTemplateDirective,
|
|
12039
14594
|
ChatMessageBoxStartAffixTemplateDirective,
|
|
12040
14595
|
ChatMessageBoxEndAffixTemplateDirective,
|
|
@@ -12096,6 +14651,39 @@ const KENDO_PROMPTBOX = [
|
|
|
12096
14651
|
PromptBoxFileSelectButtonComponent,
|
|
12097
14652
|
PromptBoxHeaderTemplateDirective
|
|
12098
14653
|
];
|
|
14654
|
+
/**
|
|
14655
|
+
* Utility array that contains all LLM Kit related components and directives.
|
|
14656
|
+
*
|
|
14657
|
+
* @example
|
|
14658
|
+
* ```ts
|
|
14659
|
+
* import { Component } from '@angular/core';
|
|
14660
|
+
* import { KENDO_LLM_KIT } from '@progress/kendo-angular-conversational-ui';
|
|
14661
|
+
*
|
|
14662
|
+
* @Component({
|
|
14663
|
+
* standalone: true,
|
|
14664
|
+
* imports: [KENDO_LLM_KIT],
|
|
14665
|
+
* selector: 'my-app',
|
|
14666
|
+
* template: `<kendo-reasoning content="Analyzing the request."></kendo-reasoning>`
|
|
14667
|
+
* })
|
|
14668
|
+
* export class AppComponent {}
|
|
14669
|
+
* ```
|
|
14670
|
+
*/
|
|
14671
|
+
const KENDO_LLM_KIT = [
|
|
14672
|
+
ReasoningComponent,
|
|
14673
|
+
ChainOfThoughtComponent,
|
|
14674
|
+
ToolCallComponent,
|
|
14675
|
+
CitationComponent,
|
|
14676
|
+
CheckpointComponent,
|
|
14677
|
+
LlmKitCustomMessagesComponent,
|
|
14678
|
+
ReasoningContentTemplateDirective,
|
|
14679
|
+
ThoughtTemplateDirective,
|
|
14680
|
+
ToolCallParametersTemplateDirective,
|
|
14681
|
+
ToolCallApprovalTemplateDirective,
|
|
14682
|
+
ToolCallResultTemplateDirective,
|
|
14683
|
+
ToolCallErrorTemplateDirective,
|
|
14684
|
+
CitationBodyTemplateDirective,
|
|
14685
|
+
CheckpointTemplateDirective
|
|
14686
|
+
];
|
|
12099
14687
|
/**
|
|
12100
14688
|
* Utility array that contains all `@progress/kendo-angular-conversational-ui` related components and directives.
|
|
12101
14689
|
*
|
|
@@ -12120,7 +14708,8 @@ const KENDO_CONVERSATIONALUI = [
|
|
|
12120
14708
|
...KENDO_AIPROMPT,
|
|
12121
14709
|
...KENDO_CHAT,
|
|
12122
14710
|
...KENDO_INLINEAIPROMPT,
|
|
12123
|
-
...KENDO_PROMPTBOX
|
|
14711
|
+
...KENDO_PROMPTBOX,
|
|
14712
|
+
...KENDO_LLM_KIT
|
|
12124
14713
|
];
|
|
12125
14714
|
|
|
12126
14715
|
// IMPORTANT: NgModule export kept for backwards compatibility
|
|
@@ -12143,11 +14732,11 @@ const KENDO_CONVERSATIONALUI = [
|
|
|
12143
14732
|
* ```
|
|
12144
14733
|
*/
|
|
12145
14734
|
class AIPromptModule {
|
|
12146
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
12147
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
12148
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
14735
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AIPromptModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
14736
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.26", ngImport: i0, type: AIPromptModule, imports: [AIPromptComponent, PromptViewComponent, OutputViewComponent, CommandViewComponent, CustomViewComponent, AIPromptCustomMessagesComponent, AIPromptToolbarActionsDirective, AIPromptToolbarFocusableDirective, AIPromptOutputTemplateDirective, AIPromptOutputBodyTemplateDirective], exports: [AIPromptComponent, PromptViewComponent, OutputViewComponent, CommandViewComponent, CustomViewComponent, AIPromptCustomMessagesComponent, AIPromptToolbarActionsDirective, AIPromptToolbarFocusableDirective, AIPromptOutputTemplateDirective, AIPromptOutputBodyTemplateDirective] });
|
|
14737
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AIPromptModule, providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService], imports: [AIPromptComponent, PromptViewComponent, OutputViewComponent, CommandViewComponent] });
|
|
12149
14738
|
}
|
|
12150
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
14739
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: AIPromptModule, decorators: [{
|
|
12151
14740
|
type: NgModule,
|
|
12152
14741
|
args: [{
|
|
12153
14742
|
exports: [...KENDO_AIPROMPT],
|
|
@@ -12179,11 +14768,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
12179
14768
|
* ```
|
|
12180
14769
|
*/
|
|
12181
14770
|
class ChatModule {
|
|
12182
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
12183
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
12184
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
14771
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
14772
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.26", ngImport: i0, type: ChatModule, imports: [ChatComponent, CustomMessagesComponent, AttachmentTemplateDirective, AuthorMessageContentTemplateDirective, ReceiverMessageContentTemplateDirective, MessageContentTemplateDirective, AuthorMessageTemplateDirective, ReceiverMessageTemplateDirective, MessageTemplateDirective, HeroCardComponent, ChatMessageBoxTemplateDirective, ChatMessageBoxStartAffixTemplateDirective, ChatMessageBoxEndAffixTemplateDirective, ChatMessageBoxTopAffixTemplateDirective, ChatHeaderTemplateDirective, NoDataTemplateDirective, ChatTimestampTemplateDirective, ChatStatusTemplateDirective, ChatSuggestionTemplateDirective, ChatUserStatusTemplateDirective], exports: [ChatComponent, CustomMessagesComponent, AttachmentTemplateDirective, AuthorMessageContentTemplateDirective, ReceiverMessageContentTemplateDirective, MessageContentTemplateDirective, AuthorMessageTemplateDirective, ReceiverMessageTemplateDirective, MessageTemplateDirective, HeroCardComponent, ChatMessageBoxTemplateDirective, ChatMessageBoxStartAffixTemplateDirective, ChatMessageBoxEndAffixTemplateDirective, ChatMessageBoxTopAffixTemplateDirective, ChatHeaderTemplateDirective, NoDataTemplateDirective, ChatTimestampTemplateDirective, ChatStatusTemplateDirective, ChatSuggestionTemplateDirective, ChatUserStatusTemplateDirective] });
|
|
14773
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatModule, providers: [IconsService, ResizeBatchService], imports: [ChatComponent, HeroCardComponent] });
|
|
12185
14774
|
}
|
|
12186
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
14775
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ChatModule, decorators: [{
|
|
12187
14776
|
type: NgModule,
|
|
12188
14777
|
args: [{
|
|
12189
14778
|
exports: [...KENDO_CHAT],
|
|
@@ -12212,11 +14801,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
12212
14801
|
* ```
|
|
12213
14802
|
*/
|
|
12214
14803
|
class ConversationalUIModule {
|
|
12215
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
12216
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
12217
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
14804
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ConversationalUIModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
14805
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.26", ngImport: i0, type: ConversationalUIModule, imports: [AIPromptComponent, PromptViewComponent, OutputViewComponent, CommandViewComponent, CustomViewComponent, AIPromptCustomMessagesComponent, AIPromptToolbarActionsDirective, AIPromptToolbarFocusableDirective, AIPromptOutputTemplateDirective, AIPromptOutputBodyTemplateDirective, ChatComponent, CustomMessagesComponent, AttachmentTemplateDirective, AuthorMessageContentTemplateDirective, ReceiverMessageContentTemplateDirective, MessageContentTemplateDirective, AuthorMessageTemplateDirective, ReceiverMessageTemplateDirective, MessageTemplateDirective, HeroCardComponent, ChatMessageBoxTemplateDirective, ChatMessageBoxStartAffixTemplateDirective, ChatMessageBoxEndAffixTemplateDirective, ChatMessageBoxTopAffixTemplateDirective, ChatHeaderTemplateDirective, NoDataTemplateDirective, ChatTimestampTemplateDirective, ChatStatusTemplateDirective, ChatSuggestionTemplateDirective, ChatUserStatusTemplateDirective, InlineAIPromptComponent, InlineAIPromptOutputTemplateDirective, InlineAIPromptCustomMessagesComponent, PromptBoxComponent, PromptBoxCustomMessagesComponent, PromptBoxStartAffixComponent, PromptBoxEndAffixComponent, PromptBoxTopAffixComponent, PromptBoxSpeechToTextButtonComponent, PromptBoxActionButtonComponent, PromptBoxFileSelectButtonComponent, PromptBoxHeaderTemplateDirective, ReasoningComponent, ChainOfThoughtComponent, ToolCallComponent, CitationComponent, CheckpointComponent, LlmKitCustomMessagesComponent, ReasoningContentTemplateDirective, ThoughtTemplateDirective, ToolCallParametersTemplateDirective, ToolCallApprovalTemplateDirective, ToolCallResultTemplateDirective, ToolCallErrorTemplateDirective, CitationBodyTemplateDirective, CheckpointTemplateDirective], exports: [AIPromptComponent, PromptViewComponent, OutputViewComponent, CommandViewComponent, CustomViewComponent, AIPromptCustomMessagesComponent, AIPromptToolbarActionsDirective, AIPromptToolbarFocusableDirective, AIPromptOutputTemplateDirective, AIPromptOutputBodyTemplateDirective, ChatComponent, CustomMessagesComponent, AttachmentTemplateDirective, AuthorMessageContentTemplateDirective, ReceiverMessageContentTemplateDirective, MessageContentTemplateDirective, AuthorMessageTemplateDirective, ReceiverMessageTemplateDirective, MessageTemplateDirective, HeroCardComponent, ChatMessageBoxTemplateDirective, ChatMessageBoxStartAffixTemplateDirective, ChatMessageBoxEndAffixTemplateDirective, ChatMessageBoxTopAffixTemplateDirective, ChatHeaderTemplateDirective, NoDataTemplateDirective, ChatTimestampTemplateDirective, ChatStatusTemplateDirective, ChatSuggestionTemplateDirective, ChatUserStatusTemplateDirective, InlineAIPromptComponent, InlineAIPromptOutputTemplateDirective, InlineAIPromptCustomMessagesComponent, PromptBoxComponent, PromptBoxCustomMessagesComponent, PromptBoxStartAffixComponent, PromptBoxEndAffixComponent, PromptBoxTopAffixComponent, PromptBoxSpeechToTextButtonComponent, PromptBoxActionButtonComponent, PromptBoxFileSelectButtonComponent, PromptBoxHeaderTemplateDirective, ReasoningComponent, ChainOfThoughtComponent, ToolCallComponent, CitationComponent, CheckpointComponent, LlmKitCustomMessagesComponent, ReasoningContentTemplateDirective, ThoughtTemplateDirective, ToolCallParametersTemplateDirective, ToolCallApprovalTemplateDirective, ToolCallResultTemplateDirective, ToolCallErrorTemplateDirective, CitationBodyTemplateDirective, CheckpointTemplateDirective] });
|
|
14806
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ConversationalUIModule, providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService], imports: [AIPromptComponent, PromptViewComponent, OutputViewComponent, CommandViewComponent, ChatComponent, HeroCardComponent, InlineAIPromptComponent, PromptBoxComponent, PromptBoxSpeechToTextButtonComponent, PromptBoxActionButtonComponent, PromptBoxFileSelectButtonComponent, ReasoningComponent, ChainOfThoughtComponent, ToolCallComponent, CitationComponent, CheckpointComponent] });
|
|
12218
14807
|
}
|
|
12219
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
14808
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: ConversationalUIModule, decorators: [{
|
|
12220
14809
|
type: NgModule,
|
|
12221
14810
|
args: [{
|
|
12222
14811
|
exports: [...KENDO_CONVERSATIONALUI],
|
|
@@ -12245,11 +14834,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImpo
|
|
|
12245
14834
|
* ```
|
|
12246
14835
|
*/
|
|
12247
14836
|
class InlineAIPromptModule {
|
|
12248
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
12249
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.
|
|
12250
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.
|
|
14837
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: InlineAIPromptModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
14838
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.26", ngImport: i0, type: InlineAIPromptModule, imports: [InlineAIPromptComponent, InlineAIPromptOutputTemplateDirective, InlineAIPromptCustomMessagesComponent], exports: [InlineAIPromptComponent, InlineAIPromptOutputTemplateDirective, InlineAIPromptCustomMessagesComponent] });
|
|
14839
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: InlineAIPromptModule, providers: [IconsService, PopupService, ResizeBatchService, DialogContainerService, DialogService, WindowService, WindowContainerService], imports: [InlineAIPromptComponent] });
|
|
12251
14840
|
}
|
|
12252
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
14841
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: InlineAIPromptModule, decorators: [{
|
|
12253
14842
|
type: NgModule,
|
|
12254
14843
|
args: [{
|
|
12255
14844
|
exports: [...KENDO_INLINEAIPROMPT],
|
|
@@ -12331,10 +14920,10 @@ class InlineAIPromptService {
|
|
|
12331
14920
|
});
|
|
12332
14921
|
return component;
|
|
12333
14922
|
}
|
|
12334
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.
|
|
12335
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.
|
|
14923
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: InlineAIPromptService, deps: [{ token: i1$2.PopupService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
14924
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: InlineAIPromptService, providedIn: 'root' });
|
|
12336
14925
|
}
|
|
12337
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.
|
|
14926
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.26", ngImport: i0, type: InlineAIPromptService, decorators: [{
|
|
12338
14927
|
type: Injectable,
|
|
12339
14928
|
args: [{
|
|
12340
14929
|
providedIn: 'root'
|
|
@@ -12401,5 +14990,5 @@ class InlineAIPromptSettings {
|
|
|
12401
14990
|
* Generated bundle index. Do not edit.
|
|
12402
14991
|
*/
|
|
12403
14992
|
|
|
12404
|
-
export { AIPromptComponent, AIPromptCustomMessagesComponent, AIPromptModule, AIPromptOutputBodyTemplateDirective, AIPromptOutputTemplateDirective, AIPromptToolbarActionsDirective, AIPromptToolbarFocusableDirective, AttachmentTemplateDirective, AuthorMessageContentTemplateDirective, AuthorMessageTemplateDirective, ChatComponent, ChatHeaderTemplateDirective, ChatMessageBoxEndAffixTemplateDirective, ChatMessageBoxStartAffixTemplateDirective, ChatMessageBoxTemplateDirective, ChatMessageBoxTopAffixTemplateDirective, ChatModule, ChatStatusTemplateDirective, ChatSuggestionTemplateDirective, ChatTimestampTemplateDirective, ChatUserStatusTemplateDirective, CommandViewComponent, ConversationalUIModule, CustomMessagesComponent, CustomViewComponent, ExecuteActionEvent, HeroCardComponent, InlineAIPromptComponent, InlineAIPromptCustomMessagesComponent, InlineAIPromptModule, InlineAIPromptOutputTemplateDirective, InlineAIPromptService, InlineAIPromptSettings, KENDO_AIPROMPT, KENDO_CHAT, KENDO_CONVERSATIONALUI, KENDO_INLINEAIPROMPT, KENDO_PROMPTBOX, MessageContentTemplateDirective, MessageTemplateDirective, NoDataTemplateDirective, OutputViewComponent, PromptBoxActionButtonComponent, PromptBoxComponent, PromptBoxCustomMessagesComponent, PromptBoxEndAffixComponent, PromptBoxFileSelectButtonComponent, PromptBoxHeaderTemplateDirective, PromptBoxSpeechToTextButtonComponent, PromptBoxStartAffixComponent, PromptBoxTopAffixComponent, PromptViewComponent, ReceiverMessageContentTemplateDirective, ReceiverMessageTemplateDirective, SendMessageEvent };
|
|
14993
|
+
export { AIPromptComponent, AIPromptCustomMessagesComponent, AIPromptModule, AIPromptOutputBodyTemplateDirective, AIPromptOutputTemplateDirective, AIPromptToolbarActionsDirective, AIPromptToolbarFocusableDirective, AttachmentTemplateDirective, AuthorMessageContentTemplateDirective, AuthorMessageTemplateDirective, ChainOfThoughtComponent, ChatComponent, ChatHeaderTemplateDirective, ChatMessageBoxEndAffixTemplateDirective, ChatMessageBoxStartAffixTemplateDirective, ChatMessageBoxTemplateDirective, ChatMessageBoxTopAffixTemplateDirective, ChatModule, ChatStatusTemplateDirective, ChatSuggestionTemplateDirective, ChatTimestampTemplateDirective, ChatUserStatusTemplateDirective, CheckpointComponent, CheckpointTemplateDirective, CitationBodyTemplateDirective, CitationComponent, CommandViewComponent, ConversationalUIModule, CustomMessagesComponent, CustomViewComponent, ExecuteActionEvent, HeroCardComponent, InlineAIPromptComponent, InlineAIPromptCustomMessagesComponent, InlineAIPromptModule, InlineAIPromptOutputTemplateDirective, InlineAIPromptService, InlineAIPromptSettings, KENDO_AIPROMPT, KENDO_CHAT, KENDO_CONVERSATIONALUI, KENDO_INLINEAIPROMPT, KENDO_LLM_KIT, KENDO_PROMPTBOX, LlmKitCustomMessagesComponent, LlmKitMessages, LocalizedMessagesDirective, MessageContentTemplateDirective, MessageTemplateDirective, NoDataTemplateDirective, OutputViewComponent, PromptBoxActionButtonComponent, PromptBoxComponent, PromptBoxCustomMessagesComponent, PromptBoxEndAffixComponent, PromptBoxFileSelectButtonComponent, PromptBoxHeaderTemplateDirective, PromptBoxSpeechToTextButtonComponent, PromptBoxStartAffixComponent, PromptBoxTopAffixComponent, PromptViewComponent, ReasoningComponent, ReasoningContentTemplateDirective, ReceiverMessageContentTemplateDirective, ReceiverMessageTemplateDirective, SendMessageEvent, ThoughtTemplateDirective, ToolCallApprovalTemplateDirective, ToolCallComponent, ToolCallErrorTemplateDirective, ToolCallParametersTemplateDirective, ToolCallResultTemplateDirective };
|
|
12405
14994
|
|