@copilotkitnext/angular 0.0.9-alpha.2 → 0.0.10
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/dist/esm2022/index.mjs +2 -70
- package/dist/esm2022/lib/agent.mjs +73 -0
- package/dist/esm2022/lib/chat-config.mjs +35 -0
- package/dist/esm2022/lib/chat-state.mjs +18 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message-buttons.mjs +344 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message-renderer.mjs +260 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message-toolbar.mjs +22 -0
- package/dist/esm2022/{components/chat/copilot-chat-assistant-message.component.mjs → lib/components/chat/copilot-chat-assistant-message.mjs} +216 -240
- package/dist/esm2022/lib/components/chat/copilot-chat-assistant-message.types.mjs +2 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-audio-recorder.mjs +196 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-buttons.mjs +299 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-input-defaults.mjs +39 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-input.mjs +634 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-input.types.mjs +10 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-message-view-cursor.mjs +27 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-message-view.mjs +268 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-message-view.types.mjs +2 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-textarea.mjs +139 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-tool-calls-view.mjs +36 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-toolbar.mjs +20 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-tools-menu.mjs +203 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message-branch-navigation.mjs +118 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message-buttons.mjs +182 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message-renderer.mjs +28 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message-toolbar.mjs +25 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message.mjs +306 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-user-message.types.mjs +2 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view-disclaimer.mjs +48 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view-feather.mjs +41 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view-handlers.mjs +19 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view-input-container.mjs +96 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view-scroll-to-bottom-button.mjs +89 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view-scroll-view.mjs +456 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view.mjs +404 -0
- package/dist/esm2022/lib/components/chat/copilot-chat-view.types.mjs +2 -0
- package/dist/esm2022/lib/components/chat/copilot-chat.mjs +167 -0
- package/dist/esm2022/lib/config.mjs +9 -0
- package/dist/esm2022/lib/copilotkit.mjs +124 -0
- package/dist/esm2022/lib/directives/copilotkit-agent-context.mjs +130 -0
- package/dist/esm2022/lib/directives/stick-to-bottom.mjs +170 -0
- package/dist/esm2022/lib/directives/tooltip.mjs +217 -0
- package/dist/esm2022/lib/human-in-the-loop.mjs +19 -0
- package/dist/esm2022/lib/render-tool-calls.mjs +131 -0
- package/dist/esm2022/lib/resize-observer.mjs +152 -0
- package/dist/esm2022/lib/scroll-position.mjs +124 -0
- package/dist/esm2022/lib/slots/copilot-slot.mjs +156 -0
- package/dist/esm2022/lib/slots/index.mjs +4 -0
- package/dist/esm2022/lib/slots/slot.types.mjs +3 -3
- package/dist/esm2022/lib/slots/slot.utils.mjs +19 -15
- package/dist/esm2022/lib/tools.mjs +31 -0
- package/dist/esm2022/lib/utils.mjs +3 -3
- package/dist/esm2022/public-api.mjs +47 -0
- package/dist/fesm2022/copilotkitnext-angular.mjs +5249 -8271
- package/dist/fesm2022/copilotkitnext-angular.mjs.map +1 -1
- package/dist/index.d.ts +1 -55
- package/dist/lib/agent.d.ts +53 -0
- package/dist/{core/chat-configuration/chat-configuration.types.d.ts → lib/chat-config.d.ts} +4 -8
- package/dist/lib/chat-state.d.ts +10 -0
- package/dist/lib/components/chat/copilot-chat-assistant-message-buttons.d.ts +68 -0
- package/dist/lib/components/chat/copilot-chat-assistant-message-renderer.d.ts +26 -0
- package/dist/lib/components/chat/copilot-chat-assistant-message-toolbar.d.ts +7 -0
- package/dist/lib/components/chat/copilot-chat-assistant-message.d.ts +178 -0
- package/dist/{components → lib/components}/chat/copilot-chat-assistant-message.types.d.ts +1 -1
- package/dist/{components/chat/copilot-chat-audio-recorder.component.d.ts → lib/components/chat/copilot-chat-audio-recorder.d.ts} +10 -10
- package/dist/lib/components/chat/copilot-chat-buttons.d.ts +65 -0
- package/dist/lib/components/chat/copilot-chat-input-defaults.d.ts +38 -0
- package/dist/lib/components/chat/copilot-chat-input.d.ts +133 -0
- package/dist/{components → lib/components}/chat/copilot-chat-input.types.d.ts +11 -11
- package/dist/lib/components/chat/copilot-chat-message-view-cursor.d.ts +11 -0
- package/dist/{components/chat/copilot-chat-message-view.component.d.ts → lib/components/chat/copilot-chat-message-view.d.ts} +68 -36
- package/dist/{components → lib/components}/chat/copilot-chat-message-view.types.d.ts +2 -2
- package/dist/lib/components/chat/copilot-chat-textarea.d.ts +41 -0
- package/dist/lib/components/chat/copilot-chat-tool-calls-view.d.ts +55 -0
- package/dist/lib/components/chat/copilot-chat-toolbar.d.ts +7 -0
- package/dist/lib/components/chat/copilot-chat-tools-menu.d.ts +20 -0
- package/dist/lib/components/chat/copilot-chat-user-message-branch-navigation.d.ts +20 -0
- package/dist/lib/components/chat/copilot-chat-user-message-buttons.d.ts +35 -0
- package/dist/lib/components/chat/copilot-chat-user-message-renderer.d.ts +8 -0
- package/dist/lib/components/chat/copilot-chat-user-message-toolbar.d.ts +7 -0
- package/dist/lib/components/chat/copilot-chat-user-message.d.ts +55 -0
- package/dist/{components → lib/components}/chat/copilot-chat-user-message.types.d.ts +2 -2
- package/dist/lib/components/chat/copilot-chat-view-disclaimer.d.ts +15 -0
- package/dist/{components/chat/copilot-chat-view-feather.component.d.ts → lib/components/chat/copilot-chat-view-feather.d.ts} +6 -6
- package/dist/{components/chat/copilot-chat-view-handlers.service.d.ts → lib/components/chat/copilot-chat-view-handlers.d.ts} +3 -3
- package/dist/lib/components/chat/copilot-chat-view-input-container.d.ts +23 -0
- package/dist/lib/components/chat/copilot-chat-view-scroll-to-bottom-button.d.ts +16 -0
- package/dist/lib/components/chat/copilot-chat-view-scroll-view.d.ts +114 -0
- package/dist/lib/components/chat/copilot-chat-view.d.ts +239 -0
- package/dist/{components → lib/components}/chat/copilot-chat-view.types.d.ts +2 -2
- package/dist/lib/components/chat/copilot-chat.d.ts +67 -0
- package/dist/lib/config.d.ts +16 -0
- package/dist/lib/copilotkit.d.ts +29 -0
- package/dist/{directives/copilotkit-agent-context.directive.d.ts → lib/directives/copilotkit-agent-context.d.ts} +5 -5
- package/dist/lib/directives/stick-to-bottom.d.ts +62 -0
- package/dist/lib/directives/tooltip.d.ts +33 -0
- package/dist/lib/human-in-the-loop.d.ts +13 -0
- package/dist/lib/render-tool-calls.d.ts +75 -0
- package/dist/{services/resize-observer.service.d.ts → lib/resize-observer.d.ts} +2 -2
- package/dist/{services/scroll-position.service.d.ts → lib/scroll-position.d.ts} +6 -6
- package/dist/lib/slots/copilot-slot.d.ts +34 -0
- package/dist/lib/slots/index.d.ts +3 -0
- package/dist/lib/slots/slot.types.d.ts +1 -1
- package/dist/lib/slots/slot.utils.d.ts +6 -4
- package/dist/lib/tools.d.ts +63 -0
- package/dist/lib/utils.d.ts +1 -1
- package/dist/public-api.d.ts +46 -0
- package/dist/styles.css +0 -69
- package/package.json +3 -3
- package/dist/components/chat/copilot-chat-assistant-message-buttons.component.d.ts +0 -75
- package/dist/components/chat/copilot-chat-assistant-message-renderer.component.d.ts +0 -31
- package/dist/components/chat/copilot-chat-assistant-message-toolbar.component.d.ts +0 -8
- package/dist/components/chat/copilot-chat-assistant-message.component.d.ts +0 -132
- package/dist/components/chat/copilot-chat-buttons.component.d.ts +0 -66
- package/dist/components/chat/copilot-chat-input-defaults.d.ts +0 -37
- package/dist/components/chat/copilot-chat-input.component.d.ts +0 -133
- package/dist/components/chat/copilot-chat-message-view-cursor.component.d.ts +0 -15
- package/dist/components/chat/copilot-chat-textarea.component.d.ts +0 -45
- package/dist/components/chat/copilot-chat-tool-calls-view.component.d.ts +0 -35
- package/dist/components/chat/copilot-chat-toolbar.component.d.ts +0 -8
- package/dist/components/chat/copilot-chat-tools-menu.component.d.ts +0 -20
- package/dist/components/chat/copilot-chat-user-message-branch-navigation.component.d.ts +0 -23
- package/dist/components/chat/copilot-chat-user-message-buttons.component.d.ts +0 -39
- package/dist/components/chat/copilot-chat-user-message-renderer.component.d.ts +0 -9
- package/dist/components/chat/copilot-chat-user-message-toolbar.component.d.ts +0 -8
- package/dist/components/chat/copilot-chat-user-message.component.d.ts +0 -55
- package/dist/components/chat/copilot-chat-view-disclaimer.component.d.ts +0 -15
- package/dist/components/chat/copilot-chat-view-input-container.component.d.ts +0 -23
- package/dist/components/chat/copilot-chat-view-scroll-to-bottom-button.component.d.ts +0 -17
- package/dist/components/chat/copilot-chat-view-scroll-view.component.d.ts +0 -84
- package/dist/components/chat/copilot-chat-view.component.d.ts +0 -205
- package/dist/components/chat/copilot-chat.component.d.ts +0 -36
- package/dist/components/copilotkit-tool-render.component.d.ts +0 -25
- package/dist/core/chat-configuration/chat-configuration.providers.d.ts +0 -54
- package/dist/core/chat-configuration/chat-configuration.service.d.ts +0 -75
- package/dist/core/copilotkit.providers.d.ts +0 -13
- package/dist/core/copilotkit.service.d.ts +0 -119
- package/dist/core/copilotkit.types.d.ts +0 -81
- package/dist/directives/copilotkit-agent.directive.d.ts +0 -106
- package/dist/directives/copilotkit-chat-config.directive.d.ts +0 -84
- package/dist/directives/copilotkit-config.directive.d.ts +0 -44
- package/dist/directives/copilotkit-frontend-tool.directive.d.ts +0 -25
- package/dist/directives/copilotkit-human-in-the-loop.directive.d.ts +0 -124
- package/dist/directives/stick-to-bottom.directive.d.ts +0 -62
- package/dist/esm2022/components/chat/copilot-chat-assistant-message-buttons.component.mjs +0 -384
- package/dist/esm2022/components/chat/copilot-chat-assistant-message-renderer.component.mjs +0 -286
- package/dist/esm2022/components/chat/copilot-chat-assistant-message-toolbar.component.mjs +0 -27
- package/dist/esm2022/components/chat/copilot-chat-assistant-message.types.mjs +0 -2
- package/dist/esm2022/components/chat/copilot-chat-audio-recorder.component.mjs +0 -202
- package/dist/esm2022/components/chat/copilot-chat-buttons.component.mjs +0 -321
- package/dist/esm2022/components/chat/copilot-chat-input-defaults.mjs +0 -38
- package/dist/esm2022/components/chat/copilot-chat-input.component.mjs +0 -666
- package/dist/esm2022/components/chat/copilot-chat-input.types.mjs +0 -10
- package/dist/esm2022/components/chat/copilot-chat-message-view-cursor.component.mjs +0 -45
- package/dist/esm2022/components/chat/copilot-chat-message-view.component.mjs +0 -296
- package/dist/esm2022/components/chat/copilot-chat-message-view.types.mjs +0 -2
- package/dist/esm2022/components/chat/copilot-chat-textarea.component.mjs +0 -188
- package/dist/esm2022/components/chat/copilot-chat-tool-calls-view.component.mjs +0 -222
- package/dist/esm2022/components/chat/copilot-chat-toolbar.component.mjs +0 -25
- package/dist/esm2022/components/chat/copilot-chat-tools-menu.component.mjs +0 -199
- package/dist/esm2022/components/chat/copilot-chat-user-message-branch-navigation.component.mjs +0 -137
- package/dist/esm2022/components/chat/copilot-chat-user-message-buttons.component.mjs +0 -207
- package/dist/esm2022/components/chat/copilot-chat-user-message-renderer.component.mjs +0 -35
- package/dist/esm2022/components/chat/copilot-chat-user-message-toolbar.component.mjs +0 -34
- package/dist/esm2022/components/chat/copilot-chat-user-message.component.mjs +0 -341
- package/dist/esm2022/components/chat/copilot-chat-user-message.types.mjs +0 -2
- package/dist/esm2022/components/chat/copilot-chat-view-disclaimer.component.mjs +0 -52
- package/dist/esm2022/components/chat/copilot-chat-view-feather.component.mjs +0 -55
- package/dist/esm2022/components/chat/copilot-chat-view-handlers.service.mjs +0 -19
- package/dist/esm2022/components/chat/copilot-chat-view-input-container.component.mjs +0 -110
- package/dist/esm2022/components/chat/copilot-chat-view-scroll-to-bottom-button.component.mjs +0 -93
- package/dist/esm2022/components/chat/copilot-chat-view-scroll-view.component.mjs +0 -443
- package/dist/esm2022/components/chat/copilot-chat-view.component.mjs +0 -479
- package/dist/esm2022/components/chat/copilot-chat-view.types.mjs +0 -2
- package/dist/esm2022/components/chat/copilot-chat.component.mjs +0 -220
- package/dist/esm2022/components/copilotkit-tool-render.component.mjs +0 -150
- package/dist/esm2022/core/chat-configuration/chat-configuration.providers.mjs +0 -65
- package/dist/esm2022/core/chat-configuration/chat-configuration.service.mjs +0 -145
- package/dist/esm2022/core/chat-configuration/chat-configuration.types.mjs +0 -26
- package/dist/esm2022/core/copilotkit.providers.mjs +0 -34
- package/dist/esm2022/core/copilotkit.service.mjs +0 -411
- package/dist/esm2022/core/copilotkit.types.mjs +0 -13
- package/dist/esm2022/directives/copilotkit-agent-context.directive.mjs +0 -130
- package/dist/esm2022/directives/copilotkit-agent.directive.mjs +0 -221
- package/dist/esm2022/directives/copilotkit-chat-config.directive.mjs +0 -218
- package/dist/esm2022/directives/copilotkit-config.directive.mjs +0 -94
- package/dist/esm2022/directives/copilotkit-frontend-tool.directive.mjs +0 -128
- package/dist/esm2022/directives/copilotkit-human-in-the-loop.directive.mjs +0 -265
- package/dist/esm2022/directives/stick-to-bottom.directive.mjs +0 -181
- package/dist/esm2022/lib/directives/tooltip.directive.mjs +0 -211
- package/dist/esm2022/lib/slots/copilot-slot.component.mjs +0 -154
- package/dist/esm2022/services/resize-observer.service.mjs +0 -152
- package/dist/esm2022/services/scroll-position.service.mjs +0 -124
- package/dist/esm2022/types/frontend-tool.mjs +0 -2
- package/dist/esm2022/types/human-in-the-loop.mjs +0 -2
- package/dist/esm2022/utils/agent-context.utils.mjs +0 -114
- package/dist/esm2022/utils/agent.utils.mjs +0 -212
- package/dist/esm2022/utils/chat-config.utils.mjs +0 -186
- package/dist/esm2022/utils/copilotkit.utils.mjs +0 -20
- package/dist/esm2022/utils/frontend-tool.utils.mjs +0 -224
- package/dist/esm2022/utils/human-in-the-loop.utils.mjs +0 -293
- package/dist/lib/directives/tooltip.directive.d.ts +0 -33
- package/dist/lib/slots/copilot-slot.component.d.ts +0 -34
- package/dist/types/frontend-tool.d.ts +0 -37
- package/dist/types/human-in-the-loop.d.ts +0 -44
- package/dist/utils/agent-context.utils.d.ts +0 -75
- package/dist/utils/agent.utils.d.ts +0 -108
- package/dist/utils/chat-config.utils.d.ts +0 -166
- package/dist/utils/copilotkit.utils.d.ts +0 -16
- package/dist/utils/frontend-tool.utils.d.ts +0 -119
- package/dist/utils/human-in-the-loop.utils.d.ts +0 -92
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, OnInit, OnDestroy, AfterViewInit } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export type ScrollBehavior = 'smooth' | 'instant' | 'auto';
|
|
4
|
-
/**
|
|
5
|
-
* Directive for implementing stick-to-bottom scroll behavior
|
|
6
|
-
* Similar to the React use-stick-to-bottom library
|
|
7
|
-
*
|
|
8
|
-
* @example
|
|
9
|
-
* ```html
|
|
10
|
-
* <div copilotStickToBottom
|
|
11
|
-
* [enabled]="true"
|
|
12
|
-
* [threshold]="10"
|
|
13
|
-
* [initialBehavior]="'smooth'"
|
|
14
|
-
* [resizeBehavior]="'smooth'"
|
|
15
|
-
* (isAtBottomChange)="onBottomChange($event)">
|
|
16
|
-
* <!-- Content -->
|
|
17
|
-
* </div>
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
export declare class StickToBottomDirective implements OnInit, AfterViewInit, OnDestroy {
|
|
21
|
-
enabled: boolean;
|
|
22
|
-
threshold: number;
|
|
23
|
-
initialBehavior: ScrollBehavior;
|
|
24
|
-
resizeBehavior: ScrollBehavior;
|
|
25
|
-
debounceMs: number;
|
|
26
|
-
isAtBottomChange: EventEmitter<boolean>;
|
|
27
|
-
scrollToBottomRequested: EventEmitter<void>;
|
|
28
|
-
private elementRef;
|
|
29
|
-
private scrollService;
|
|
30
|
-
private resizeService;
|
|
31
|
-
private destroy$;
|
|
32
|
-
private contentElement?;
|
|
33
|
-
private wasAtBottom;
|
|
34
|
-
private hasInitialized;
|
|
35
|
-
private userHasScrolled;
|
|
36
|
-
ngOnInit(): void;
|
|
37
|
-
ngAfterViewInit(): void;
|
|
38
|
-
private setupScrollMonitoring;
|
|
39
|
-
private setupResizeMonitoring;
|
|
40
|
-
private setupContentMutationObserver;
|
|
41
|
-
/**
|
|
42
|
-
* Public method to scroll to bottom
|
|
43
|
-
* Can be called from parent component
|
|
44
|
-
*/
|
|
45
|
-
scrollToBottom(behavior?: ScrollBehavior): void;
|
|
46
|
-
/**
|
|
47
|
-
* Check if currently at bottom
|
|
48
|
-
*/
|
|
49
|
-
isAtBottom(): boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Get current scroll state
|
|
52
|
-
*/
|
|
53
|
-
getScrollState(): {
|
|
54
|
-
scrollTop: any;
|
|
55
|
-
scrollHeight: any;
|
|
56
|
-
clientHeight: any;
|
|
57
|
-
isAtBottom: boolean;
|
|
58
|
-
};
|
|
59
|
-
ngOnDestroy(): void;
|
|
60
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StickToBottomDirective, never>;
|
|
61
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<StickToBottomDirective, "[copilotStickToBottom]", never, { "enabled": { "alias": "enabled"; "required": false; }; "threshold": { "alias": "threshold"; "required": false; }; "initialBehavior": { "alias": "initialBehavior"; "required": false; }; "resizeBehavior": { "alias": "resizeBehavior"; "required": false; }; "debounceMs": { "alias": "debounceMs"; "required": false; }; }, { "isAtBottomChange": "isAtBottomChange"; "scrollToBottomRequested": "scrollToBottomRequested"; }, never, never, true, never>;
|
|
62
|
-
}
|
|
@@ -1,384 +0,0 @@
|
|
|
1
|
-
import { Component, Input, Output, EventEmitter, signal, computed, ChangeDetectionStrategy, ViewEncapsulation, inject } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { LucideAngularModule, Copy, Check, ThumbsUp, ThumbsDown, Volume2, RefreshCw } from 'lucide-angular';
|
|
4
|
-
import { CopilotTooltipDirective } from '../../lib/directives/tooltip.directive';
|
|
5
|
-
import { CopilotChatConfigurationService } from '../../core/chat-configuration/chat-configuration.service';
|
|
6
|
-
import { cn } from '../../lib/utils';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "../../lib/directives/tooltip.directive";
|
|
9
|
-
import * as i2 from "lucide-angular";
|
|
10
|
-
// Base toolbar button component
|
|
11
|
-
export class CopilotChatAssistantMessageToolbarButtonComponent {
|
|
12
|
-
title = '';
|
|
13
|
-
disabled = false;
|
|
14
|
-
set inputClass(value) {
|
|
15
|
-
this.customClass.set(value);
|
|
16
|
-
}
|
|
17
|
-
customClass = signal(undefined);
|
|
18
|
-
computedClass = computed(() => {
|
|
19
|
-
return cn(
|
|
20
|
-
// Flex centering with gap (from React button base styles)
|
|
21
|
-
'inline-flex items-center justify-center gap-2',
|
|
22
|
-
// Cursor
|
|
23
|
-
'cursor-pointer',
|
|
24
|
-
// Background and text
|
|
25
|
-
'p-0 text-[rgb(93,93,93)] hover:bg-[#E8E8E8]',
|
|
26
|
-
// Dark mode
|
|
27
|
-
'dark:text-[rgb(243,243,243)] dark:hover:bg-[#303030]',
|
|
28
|
-
// Shape and sizing
|
|
29
|
-
'h-8 w-8 rounded-md',
|
|
30
|
-
// Interactions
|
|
31
|
-
'transition-colors',
|
|
32
|
-
// Hover states
|
|
33
|
-
'hover:text-[rgb(93,93,93)]', 'dark:hover:text-[rgb(243,243,243)]',
|
|
34
|
-
// Focus states
|
|
35
|
-
'focus:outline-none focus:ring-2 focus:ring-offset-2',
|
|
36
|
-
// Disabled state
|
|
37
|
-
'disabled:opacity-50 disabled:cursor-not-allowed',
|
|
38
|
-
// SVG styling from React Button component
|
|
39
|
-
'[&_svg]:pointer-events-none [&_svg]:shrink-0',
|
|
40
|
-
// Ensure proper sizing
|
|
41
|
-
'shrink-0', this.customClass());
|
|
42
|
-
});
|
|
43
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageToolbarButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
44
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CopilotChatAssistantMessageToolbarButtonComponent, isStandalone: true, selector: "button[copilotChatAssistantMessageToolbarButton]", inputs: { title: "title", disabled: "disabled", inputClass: "inputClass" }, host: { attributes: { "type": "button" }, properties: { "class": "computedClass()", "attr.disabled": "disabled ? true : null", "attr.aria-label": "title" } }, hostDirectives: [{ directive: i1.CopilotTooltipDirective, inputs: ["copilotTooltip", "title", "tooltipPosition", "tooltipPosition", "tooltipDelay", "tooltipDelay"] }], ngImport: i0, template: `
|
|
45
|
-
<ng-content></ng-content>
|
|
46
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
47
|
-
}
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageToolbarButtonComponent, decorators: [{
|
|
49
|
-
type: Component,
|
|
50
|
-
args: [{
|
|
51
|
-
selector: 'button[copilotChatAssistantMessageToolbarButton]',
|
|
52
|
-
standalone: true,
|
|
53
|
-
imports: [CommonModule],
|
|
54
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
55
|
-
encapsulation: ViewEncapsulation.None,
|
|
56
|
-
template: `
|
|
57
|
-
<ng-content></ng-content>
|
|
58
|
-
`,
|
|
59
|
-
host: {
|
|
60
|
-
'[class]': 'computedClass()',
|
|
61
|
-
'[attr.disabled]': 'disabled ? true : null',
|
|
62
|
-
'type': 'button',
|
|
63
|
-
'[attr.aria-label]': 'title'
|
|
64
|
-
},
|
|
65
|
-
hostDirectives: [
|
|
66
|
-
{
|
|
67
|
-
directive: CopilotTooltipDirective,
|
|
68
|
-
inputs: ['copilotTooltip: title', 'tooltipPosition', 'tooltipDelay']
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
}]
|
|
72
|
-
}], propDecorators: { title: [{
|
|
73
|
-
type: Input
|
|
74
|
-
}], disabled: [{
|
|
75
|
-
type: Input
|
|
76
|
-
}], inputClass: [{
|
|
77
|
-
type: Input
|
|
78
|
-
}] } });
|
|
79
|
-
// Copy button component
|
|
80
|
-
export class CopilotChatAssistantMessageCopyButtonComponent {
|
|
81
|
-
title;
|
|
82
|
-
disabled = false;
|
|
83
|
-
inputClass;
|
|
84
|
-
content;
|
|
85
|
-
clicked = new EventEmitter();
|
|
86
|
-
CopyIcon = Copy;
|
|
87
|
-
CheckIcon = Check;
|
|
88
|
-
copied = signal(false);
|
|
89
|
-
chatConfig = inject(CopilotChatConfigurationService);
|
|
90
|
-
get labels() {
|
|
91
|
-
return this.chatConfig.labels();
|
|
92
|
-
}
|
|
93
|
-
handleCopy(event) {
|
|
94
|
-
event?.stopPropagation();
|
|
95
|
-
if (!this.content)
|
|
96
|
-
return;
|
|
97
|
-
// Set copied immediately for instant feedback
|
|
98
|
-
this.copied.set(true);
|
|
99
|
-
setTimeout(() => this.copied.set(false), 2000);
|
|
100
|
-
// Copy to clipboard (fire and forget)
|
|
101
|
-
navigator.clipboard.writeText(this.content).then(() => this.clicked.emit(), (err) => {
|
|
102
|
-
console.error('Failed to copy message:', err);
|
|
103
|
-
this.copied.set(false);
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageCopyButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
107
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: CopilotChatAssistantMessageCopyButtonComponent, isStandalone: true, selector: "copilot-chat-assistant-message-copy-button", inputs: { title: "title", disabled: "disabled", inputClass: "inputClass", content: "content" }, outputs: { clicked: "clicked" }, ngImport: i0, template: `
|
|
108
|
-
<button
|
|
109
|
-
copilotChatAssistantMessageToolbarButton
|
|
110
|
-
[title]="title || labels.assistantMessageToolbarCopyMessageLabel"
|
|
111
|
-
[disabled]="disabled"
|
|
112
|
-
[inputClass]="inputClass"
|
|
113
|
-
(click)="handleCopy($event)">
|
|
114
|
-
@if (copied()) {
|
|
115
|
-
<lucide-angular [img]="CheckIcon" [size]="18"></lucide-angular>
|
|
116
|
-
} @else {
|
|
117
|
-
<lucide-angular [img]="CopyIcon" [size]="18"></lucide-angular>
|
|
118
|
-
}
|
|
119
|
-
</button>
|
|
120
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: LucideAngularModule }, { kind: "component", type: i2.LucideAngularComponent, selector: "lucide-angular, lucide-icon, i-lucide, span-lucide", inputs: ["class", "name", "img", "color", "absoluteStrokeWidth", "size", "strokeWidth"] }, { kind: "component", type: CopilotChatAssistantMessageToolbarButtonComponent, selector: "button[copilotChatAssistantMessageToolbarButton]", inputs: ["title", "disabled", "inputClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
121
|
-
}
|
|
122
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageCopyButtonComponent, decorators: [{
|
|
123
|
-
type: Component,
|
|
124
|
-
args: [{
|
|
125
|
-
selector: 'copilot-chat-assistant-message-copy-button',
|
|
126
|
-
standalone: true,
|
|
127
|
-
imports: [CommonModule, LucideAngularModule, CopilotChatAssistantMessageToolbarButtonComponent],
|
|
128
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
129
|
-
encapsulation: ViewEncapsulation.None,
|
|
130
|
-
template: `
|
|
131
|
-
<button
|
|
132
|
-
copilotChatAssistantMessageToolbarButton
|
|
133
|
-
[title]="title || labels.assistantMessageToolbarCopyMessageLabel"
|
|
134
|
-
[disabled]="disabled"
|
|
135
|
-
[inputClass]="inputClass"
|
|
136
|
-
(click)="handleCopy($event)">
|
|
137
|
-
@if (copied()) {
|
|
138
|
-
<lucide-angular [img]="CheckIcon" [size]="18"></lucide-angular>
|
|
139
|
-
} @else {
|
|
140
|
-
<lucide-angular [img]="CopyIcon" [size]="18"></lucide-angular>
|
|
141
|
-
}
|
|
142
|
-
</button>
|
|
143
|
-
`
|
|
144
|
-
}]
|
|
145
|
-
}], propDecorators: { title: [{
|
|
146
|
-
type: Input
|
|
147
|
-
}], disabled: [{
|
|
148
|
-
type: Input
|
|
149
|
-
}], inputClass: [{
|
|
150
|
-
type: Input
|
|
151
|
-
}], content: [{
|
|
152
|
-
type: Input
|
|
153
|
-
}], clicked: [{
|
|
154
|
-
type: Output
|
|
155
|
-
}] } });
|
|
156
|
-
// Thumbs up button component
|
|
157
|
-
export class CopilotChatAssistantMessageThumbsUpButtonComponent {
|
|
158
|
-
title;
|
|
159
|
-
disabled = false;
|
|
160
|
-
inputClass;
|
|
161
|
-
clicked = new EventEmitter();
|
|
162
|
-
ThumbsUpIcon = ThumbsUp;
|
|
163
|
-
chatConfig = inject(CopilotChatConfigurationService);
|
|
164
|
-
get labels() {
|
|
165
|
-
return this.chatConfig.labels();
|
|
166
|
-
}
|
|
167
|
-
handleClick(event) {
|
|
168
|
-
event?.stopPropagation();
|
|
169
|
-
if (!this.disabled) {
|
|
170
|
-
this.clicked.emit();
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageThumbsUpButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
174
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CopilotChatAssistantMessageThumbsUpButtonComponent, isStandalone: true, selector: "copilot-chat-assistant-message-thumbs-up-button", inputs: { title: "title", disabled: "disabled", inputClass: "inputClass" }, outputs: { clicked: "clicked" }, ngImport: i0, template: `
|
|
175
|
-
<button
|
|
176
|
-
copilotChatAssistantMessageToolbarButton
|
|
177
|
-
[title]="title || labels.assistantMessageToolbarThumbsUpLabel"
|
|
178
|
-
[disabled]="disabled"
|
|
179
|
-
[inputClass]="inputClass"
|
|
180
|
-
(click)="handleClick($event)">
|
|
181
|
-
<lucide-angular [img]="ThumbsUpIcon" [size]="18"></lucide-angular>
|
|
182
|
-
</button>
|
|
183
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: LucideAngularModule }, { kind: "component", type: i2.LucideAngularComponent, selector: "lucide-angular, lucide-icon, i-lucide, span-lucide", inputs: ["class", "name", "img", "color", "absoluteStrokeWidth", "size", "strokeWidth"] }, { kind: "component", type: CopilotChatAssistantMessageToolbarButtonComponent, selector: "button[copilotChatAssistantMessageToolbarButton]", inputs: ["title", "disabled", "inputClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
184
|
-
}
|
|
185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageThumbsUpButtonComponent, decorators: [{
|
|
186
|
-
type: Component,
|
|
187
|
-
args: [{
|
|
188
|
-
selector: 'copilot-chat-assistant-message-thumbs-up-button',
|
|
189
|
-
standalone: true,
|
|
190
|
-
imports: [CommonModule, LucideAngularModule, CopilotChatAssistantMessageToolbarButtonComponent],
|
|
191
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
192
|
-
encapsulation: ViewEncapsulation.None,
|
|
193
|
-
template: `
|
|
194
|
-
<button
|
|
195
|
-
copilotChatAssistantMessageToolbarButton
|
|
196
|
-
[title]="title || labels.assistantMessageToolbarThumbsUpLabel"
|
|
197
|
-
[disabled]="disabled"
|
|
198
|
-
[inputClass]="inputClass"
|
|
199
|
-
(click)="handleClick($event)">
|
|
200
|
-
<lucide-angular [img]="ThumbsUpIcon" [size]="18"></lucide-angular>
|
|
201
|
-
</button>
|
|
202
|
-
`
|
|
203
|
-
}]
|
|
204
|
-
}], propDecorators: { title: [{
|
|
205
|
-
type: Input
|
|
206
|
-
}], disabled: [{
|
|
207
|
-
type: Input
|
|
208
|
-
}], inputClass: [{
|
|
209
|
-
type: Input
|
|
210
|
-
}], clicked: [{
|
|
211
|
-
type: Output
|
|
212
|
-
}] } });
|
|
213
|
-
// Thumbs down button component
|
|
214
|
-
export class CopilotChatAssistantMessageThumbsDownButtonComponent {
|
|
215
|
-
title;
|
|
216
|
-
disabled = false;
|
|
217
|
-
inputClass;
|
|
218
|
-
clicked = new EventEmitter();
|
|
219
|
-
ThumbsDownIcon = ThumbsDown;
|
|
220
|
-
chatConfig = inject(CopilotChatConfigurationService);
|
|
221
|
-
get labels() {
|
|
222
|
-
return this.chatConfig.labels();
|
|
223
|
-
}
|
|
224
|
-
handleClick(event) {
|
|
225
|
-
event?.stopPropagation();
|
|
226
|
-
if (!this.disabled) {
|
|
227
|
-
this.clicked.emit();
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageThumbsDownButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
231
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CopilotChatAssistantMessageThumbsDownButtonComponent, isStandalone: true, selector: "copilot-chat-assistant-message-thumbs-down-button", inputs: { title: "title", disabled: "disabled", inputClass: "inputClass" }, outputs: { clicked: "clicked" }, ngImport: i0, template: `
|
|
232
|
-
<button
|
|
233
|
-
copilotChatAssistantMessageToolbarButton
|
|
234
|
-
[title]="title || labels.assistantMessageToolbarThumbsDownLabel"
|
|
235
|
-
[disabled]="disabled"
|
|
236
|
-
[inputClass]="inputClass"
|
|
237
|
-
(click)="handleClick($event)">
|
|
238
|
-
<lucide-angular [img]="ThumbsDownIcon" [size]="18"></lucide-angular>
|
|
239
|
-
</button>
|
|
240
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: LucideAngularModule }, { kind: "component", type: i2.LucideAngularComponent, selector: "lucide-angular, lucide-icon, i-lucide, span-lucide", inputs: ["class", "name", "img", "color", "absoluteStrokeWidth", "size", "strokeWidth"] }, { kind: "component", type: CopilotChatAssistantMessageToolbarButtonComponent, selector: "button[copilotChatAssistantMessageToolbarButton]", inputs: ["title", "disabled", "inputClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
241
|
-
}
|
|
242
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageThumbsDownButtonComponent, decorators: [{
|
|
243
|
-
type: Component,
|
|
244
|
-
args: [{
|
|
245
|
-
selector: 'copilot-chat-assistant-message-thumbs-down-button',
|
|
246
|
-
standalone: true,
|
|
247
|
-
imports: [CommonModule, LucideAngularModule, CopilotChatAssistantMessageToolbarButtonComponent],
|
|
248
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
249
|
-
encapsulation: ViewEncapsulation.None,
|
|
250
|
-
template: `
|
|
251
|
-
<button
|
|
252
|
-
copilotChatAssistantMessageToolbarButton
|
|
253
|
-
[title]="title || labels.assistantMessageToolbarThumbsDownLabel"
|
|
254
|
-
[disabled]="disabled"
|
|
255
|
-
[inputClass]="inputClass"
|
|
256
|
-
(click)="handleClick($event)">
|
|
257
|
-
<lucide-angular [img]="ThumbsDownIcon" [size]="18"></lucide-angular>
|
|
258
|
-
</button>
|
|
259
|
-
`
|
|
260
|
-
}]
|
|
261
|
-
}], propDecorators: { title: [{
|
|
262
|
-
type: Input
|
|
263
|
-
}], disabled: [{
|
|
264
|
-
type: Input
|
|
265
|
-
}], inputClass: [{
|
|
266
|
-
type: Input
|
|
267
|
-
}], clicked: [{
|
|
268
|
-
type: Output
|
|
269
|
-
}] } });
|
|
270
|
-
// Read aloud button component
|
|
271
|
-
export class CopilotChatAssistantMessageReadAloudButtonComponent {
|
|
272
|
-
title;
|
|
273
|
-
disabled = false;
|
|
274
|
-
inputClass;
|
|
275
|
-
clicked = new EventEmitter();
|
|
276
|
-
Volume2Icon = Volume2;
|
|
277
|
-
chatConfig = inject(CopilotChatConfigurationService);
|
|
278
|
-
get labels() {
|
|
279
|
-
return this.chatConfig.labels();
|
|
280
|
-
}
|
|
281
|
-
handleClick(event) {
|
|
282
|
-
event?.stopPropagation();
|
|
283
|
-
if (!this.disabled) {
|
|
284
|
-
this.clicked.emit();
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageReadAloudButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
288
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CopilotChatAssistantMessageReadAloudButtonComponent, isStandalone: true, selector: "copilot-chat-assistant-message-read-aloud-button", inputs: { title: "title", disabled: "disabled", inputClass: "inputClass" }, outputs: { clicked: "clicked" }, ngImport: i0, template: `
|
|
289
|
-
<button
|
|
290
|
-
copilotChatAssistantMessageToolbarButton
|
|
291
|
-
[title]="title || labels.assistantMessageToolbarReadAloudLabel"
|
|
292
|
-
[disabled]="disabled"
|
|
293
|
-
[inputClass]="inputClass"
|
|
294
|
-
(click)="handleClick($event)">
|
|
295
|
-
<lucide-angular [img]="Volume2Icon" [size]="20"></lucide-angular>
|
|
296
|
-
</button>
|
|
297
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: LucideAngularModule }, { kind: "component", type: i2.LucideAngularComponent, selector: "lucide-angular, lucide-icon, i-lucide, span-lucide", inputs: ["class", "name", "img", "color", "absoluteStrokeWidth", "size", "strokeWidth"] }, { kind: "component", type: CopilotChatAssistantMessageToolbarButtonComponent, selector: "button[copilotChatAssistantMessageToolbarButton]", inputs: ["title", "disabled", "inputClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
298
|
-
}
|
|
299
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageReadAloudButtonComponent, decorators: [{
|
|
300
|
-
type: Component,
|
|
301
|
-
args: [{
|
|
302
|
-
selector: 'copilot-chat-assistant-message-read-aloud-button',
|
|
303
|
-
standalone: true,
|
|
304
|
-
imports: [CommonModule, LucideAngularModule, CopilotChatAssistantMessageToolbarButtonComponent],
|
|
305
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
306
|
-
encapsulation: ViewEncapsulation.None,
|
|
307
|
-
template: `
|
|
308
|
-
<button
|
|
309
|
-
copilotChatAssistantMessageToolbarButton
|
|
310
|
-
[title]="title || labels.assistantMessageToolbarReadAloudLabel"
|
|
311
|
-
[disabled]="disabled"
|
|
312
|
-
[inputClass]="inputClass"
|
|
313
|
-
(click)="handleClick($event)">
|
|
314
|
-
<lucide-angular [img]="Volume2Icon" [size]="20"></lucide-angular>
|
|
315
|
-
</button>
|
|
316
|
-
`
|
|
317
|
-
}]
|
|
318
|
-
}], propDecorators: { title: [{
|
|
319
|
-
type: Input
|
|
320
|
-
}], disabled: [{
|
|
321
|
-
type: Input
|
|
322
|
-
}], inputClass: [{
|
|
323
|
-
type: Input
|
|
324
|
-
}], clicked: [{
|
|
325
|
-
type: Output
|
|
326
|
-
}] } });
|
|
327
|
-
// Regenerate button component
|
|
328
|
-
export class CopilotChatAssistantMessageRegenerateButtonComponent {
|
|
329
|
-
title;
|
|
330
|
-
disabled = false;
|
|
331
|
-
inputClass;
|
|
332
|
-
clicked = new EventEmitter();
|
|
333
|
-
RefreshCwIcon = RefreshCw;
|
|
334
|
-
chatConfig = inject(CopilotChatConfigurationService);
|
|
335
|
-
get labels() {
|
|
336
|
-
return this.chatConfig.labels();
|
|
337
|
-
}
|
|
338
|
-
handleClick(event) {
|
|
339
|
-
event?.stopPropagation();
|
|
340
|
-
if (!this.disabled) {
|
|
341
|
-
this.clicked.emit();
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageRegenerateButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
345
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CopilotChatAssistantMessageRegenerateButtonComponent, isStandalone: true, selector: "copilot-chat-assistant-message-regenerate-button", inputs: { title: "title", disabled: "disabled", inputClass: "inputClass" }, outputs: { clicked: "clicked" }, ngImport: i0, template: `
|
|
346
|
-
<button
|
|
347
|
-
copilotChatAssistantMessageToolbarButton
|
|
348
|
-
[title]="title || labels.assistantMessageToolbarRegenerateLabel"
|
|
349
|
-
[disabled]="disabled"
|
|
350
|
-
[inputClass]="inputClass"
|
|
351
|
-
(click)="handleClick($event)">
|
|
352
|
-
<lucide-angular [img]="RefreshCwIcon" [size]="18"></lucide-angular>
|
|
353
|
-
</button>
|
|
354
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: LucideAngularModule }, { kind: "component", type: i2.LucideAngularComponent, selector: "lucide-angular, lucide-icon, i-lucide, span-lucide", inputs: ["class", "name", "img", "color", "absoluteStrokeWidth", "size", "strokeWidth"] }, { kind: "component", type: CopilotChatAssistantMessageToolbarButtonComponent, selector: "button[copilotChatAssistantMessageToolbarButton]", inputs: ["title", "disabled", "inputClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
355
|
-
}
|
|
356
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatAssistantMessageRegenerateButtonComponent, decorators: [{
|
|
357
|
-
type: Component,
|
|
358
|
-
args: [{
|
|
359
|
-
selector: 'copilot-chat-assistant-message-regenerate-button',
|
|
360
|
-
standalone: true,
|
|
361
|
-
imports: [CommonModule, LucideAngularModule, CopilotChatAssistantMessageToolbarButtonComponent],
|
|
362
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
363
|
-
encapsulation: ViewEncapsulation.None,
|
|
364
|
-
template: `
|
|
365
|
-
<button
|
|
366
|
-
copilotChatAssistantMessageToolbarButton
|
|
367
|
-
[title]="title || labels.assistantMessageToolbarRegenerateLabel"
|
|
368
|
-
[disabled]="disabled"
|
|
369
|
-
[inputClass]="inputClass"
|
|
370
|
-
(click)="handleClick($event)">
|
|
371
|
-
<lucide-angular [img]="RefreshCwIcon" [size]="18"></lucide-angular>
|
|
372
|
-
</button>
|
|
373
|
-
`
|
|
374
|
-
}]
|
|
375
|
-
}], propDecorators: { title: [{
|
|
376
|
-
type: Input
|
|
377
|
-
}], disabled: [{
|
|
378
|
-
type: Input
|
|
379
|
-
}], inputClass: [{
|
|
380
|
-
type: Input
|
|
381
|
-
}], clicked: [{
|
|
382
|
-
type: Output
|
|
383
|
-
}] } });
|
|
384
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29waWxvdC1jaGF0LWFz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