@copilotkitnext/angular 0.0.9-alpha.3 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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 +5 -5
- 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,341 +0,0 @@
|
|
|
1
|
-
import { Component, Input, Output, EventEmitter, TemplateRef, ContentChild, signal, computed, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { CopilotSlotComponent } from '../../lib/slots/copilot-slot.component';
|
|
4
|
-
import { CopilotChatUserMessageRendererComponent } from './copilot-chat-user-message-renderer.component';
|
|
5
|
-
import { CopilotChatUserMessageCopyButtonComponent, CopilotChatUserMessageEditButtonComponent } from './copilot-chat-user-message-buttons.component';
|
|
6
|
-
import { CopilotChatUserMessageToolbarComponent } from './copilot-chat-user-message-toolbar.component';
|
|
7
|
-
import { CopilotChatUserMessageBranchNavigationComponent } from './copilot-chat-user-message-branch-navigation.component';
|
|
8
|
-
import { cn } from '../../lib/utils';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "@angular/common";
|
|
11
|
-
export class CopilotChatUserMessageComponent {
|
|
12
|
-
// Capture templates from content projection
|
|
13
|
-
messageRendererTemplate;
|
|
14
|
-
toolbarTemplate;
|
|
15
|
-
copyButtonTemplate;
|
|
16
|
-
editButtonTemplate;
|
|
17
|
-
branchNavigationTemplate;
|
|
18
|
-
// Props for tweaking default components
|
|
19
|
-
messageRendererClass;
|
|
20
|
-
toolbarClass;
|
|
21
|
-
copyButtonClass;
|
|
22
|
-
editButtonClass;
|
|
23
|
-
branchNavigationClass;
|
|
24
|
-
// Component inputs for overrides
|
|
25
|
-
messageRendererComponent;
|
|
26
|
-
toolbarComponent;
|
|
27
|
-
copyButtonComponent;
|
|
28
|
-
editButtonComponent;
|
|
29
|
-
branchNavigationComponent;
|
|
30
|
-
// Regular inputs
|
|
31
|
-
message;
|
|
32
|
-
set branchIndex(val) {
|
|
33
|
-
this.branchIndexSignal.set(val ?? 0);
|
|
34
|
-
}
|
|
35
|
-
set numberOfBranches(val) {
|
|
36
|
-
this.numberOfBranchesSignal.set(val ?? 1);
|
|
37
|
-
}
|
|
38
|
-
additionalToolbarItems;
|
|
39
|
-
set inputClass(val) {
|
|
40
|
-
this.customClass.set(val);
|
|
41
|
-
}
|
|
42
|
-
// Output events
|
|
43
|
-
editMessage = new EventEmitter();
|
|
44
|
-
switchToBranch = new EventEmitter();
|
|
45
|
-
// Signals
|
|
46
|
-
branchIndexSignal = signal(0);
|
|
47
|
-
numberOfBranchesSignal = signal(1);
|
|
48
|
-
customClass = signal(undefined);
|
|
49
|
-
// Default components
|
|
50
|
-
CopilotChatUserMessageRendererComponent = CopilotChatUserMessageRendererComponent;
|
|
51
|
-
CopilotChatUserMessageToolbarComponent = CopilotChatUserMessageToolbarComponent;
|
|
52
|
-
CopilotChatUserMessageCopyButtonComponent = CopilotChatUserMessageCopyButtonComponent;
|
|
53
|
-
CopilotChatUserMessageEditButtonComponent = CopilotChatUserMessageEditButtonComponent;
|
|
54
|
-
CopilotChatUserMessageBranchNavigationComponent = CopilotChatUserMessageBranchNavigationComponent;
|
|
55
|
-
// Computed values
|
|
56
|
-
showBranchNavigation = computed(() => {
|
|
57
|
-
const branches = this.numberOfBranchesSignal();
|
|
58
|
-
return branches > 1 && this.switchToBranch.observed;
|
|
59
|
-
});
|
|
60
|
-
computedClass = computed(() => {
|
|
61
|
-
return cn("flex flex-col items-end group pt-10", this.customClass());
|
|
62
|
-
});
|
|
63
|
-
// Context for slots (reactive via signals)
|
|
64
|
-
messageRendererContext = computed(() => ({
|
|
65
|
-
content: this.message?.content || ''
|
|
66
|
-
}));
|
|
67
|
-
// Output maps for slots
|
|
68
|
-
copyButtonOutputs = { clicked: () => this.handleCopy() };
|
|
69
|
-
editButtonOutputs = { clicked: () => this.handleEdit() };
|
|
70
|
-
branchNavigationContext = computed(() => ({
|
|
71
|
-
currentBranch: this.branchIndexSignal(),
|
|
72
|
-
numberOfBranches: this.numberOfBranchesSignal(),
|
|
73
|
-
onSwitchToBranch: (props) => this.handleSwitchToBranch(props),
|
|
74
|
-
message: this.message
|
|
75
|
-
}));
|
|
76
|
-
toolbarContext = computed(() => ({
|
|
77
|
-
children: null // Will be populated by the toolbar content
|
|
78
|
-
}));
|
|
79
|
-
handleCopy() {
|
|
80
|
-
// Copy is handled by the button component itself
|
|
81
|
-
// This is just for any additional logic if needed
|
|
82
|
-
}
|
|
83
|
-
handleEdit() {
|
|
84
|
-
this.editMessage.emit({ message: this.message });
|
|
85
|
-
}
|
|
86
|
-
handleSwitchToBranch(props) {
|
|
87
|
-
this.switchToBranch.emit(props);
|
|
88
|
-
}
|
|
89
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatUserMessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
90
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: CopilotChatUserMessageComponent, isStandalone: true, selector: "copilot-chat-user-message", inputs: { messageRendererClass: "messageRendererClass", toolbarClass: "toolbarClass", copyButtonClass: "copyButtonClass", editButtonClass: "editButtonClass", branchNavigationClass: "branchNavigationClass", messageRendererComponent: "messageRendererComponent", toolbarComponent: "toolbarComponent", copyButtonComponent: "copyButtonComponent", editButtonComponent: "editButtonComponent", branchNavigationComponent: "branchNavigationComponent", message: "message", branchIndex: "branchIndex", numberOfBranches: "numberOfBranches", additionalToolbarItems: "additionalToolbarItems", inputClass: "inputClass" }, outputs: { editMessage: "editMessage", switchToBranch: "switchToBranch" }, queries: [{ propertyName: "messageRendererTemplate", first: true, predicate: ["messageRenderer"], descendants: true, read: TemplateRef }, { propertyName: "toolbarTemplate", first: true, predicate: ["toolbar"], descendants: true, read: TemplateRef }, { propertyName: "copyButtonTemplate", first: true, predicate: ["copyButton"], descendants: true, read: TemplateRef }, { propertyName: "editButtonTemplate", first: true, predicate: ["editButton"], descendants: true, read: TemplateRef }, { propertyName: "branchNavigationTemplate", first: true, predicate: ["branchNavigation"], descendants: true, read: TemplateRef }], ngImport: i0, template: `
|
|
91
|
-
<div
|
|
92
|
-
[class]="computedClass()"
|
|
93
|
-
[attr.data-message-id]="message.id">
|
|
94
|
-
|
|
95
|
-
<!-- Message Renderer -->
|
|
96
|
-
@if (messageRendererTemplate || messageRendererComponent) {
|
|
97
|
-
<copilot-slot
|
|
98
|
-
[slot]="messageRendererTemplate || messageRendererComponent"
|
|
99
|
-
[context]="messageRendererContext()"
|
|
100
|
-
[defaultComponent]="CopilotChatUserMessageRendererComponent"
|
|
101
|
-
>
|
|
102
|
-
</copilot-slot>
|
|
103
|
-
} @else {
|
|
104
|
-
<copilot-chat-user-message-renderer
|
|
105
|
-
[content]="message.content || ''"
|
|
106
|
-
[inputClass]="messageRendererClass">
|
|
107
|
-
</copilot-chat-user-message-renderer>
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
<!-- Toolbar -->
|
|
111
|
-
@if (toolbarTemplate || toolbarComponent) {
|
|
112
|
-
<copilot-slot
|
|
113
|
-
[slot]="toolbarTemplate || toolbarComponent"
|
|
114
|
-
[context]="toolbarContext()"
|
|
115
|
-
[defaultComponent]="CopilotChatUserMessageToolbarComponent"
|
|
116
|
-
>
|
|
117
|
-
</copilot-slot>
|
|
118
|
-
} @else {
|
|
119
|
-
<div copilotChatUserMessageToolbar [inputClass]="toolbarClass">
|
|
120
|
-
<div class="flex items-center gap-1 justify-end">
|
|
121
|
-
<!-- Additional toolbar items -->
|
|
122
|
-
@if (additionalToolbarItems) {
|
|
123
|
-
<ng-container *ngTemplateOutlet="additionalToolbarItems"></ng-container>
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
<!-- Copy button -->
|
|
127
|
-
@if (copyButtonTemplate || copyButtonComponent) {
|
|
128
|
-
<copilot-slot
|
|
129
|
-
[slot]="copyButtonTemplate || copyButtonComponent"
|
|
130
|
-
[context]="{ content: message?.content || '' }"
|
|
131
|
-
[outputs]="copyButtonOutputs"
|
|
132
|
-
[defaultComponent]="CopilotChatUserMessageCopyButtonComponent"
|
|
133
|
-
>
|
|
134
|
-
</copilot-slot>
|
|
135
|
-
} @else {
|
|
136
|
-
<copilot-chat-user-message-copy-button
|
|
137
|
-
[content]="message.content"
|
|
138
|
-
[inputClass]="copyButtonClass"
|
|
139
|
-
(clicked)="handleCopy()">
|
|
140
|
-
</copilot-chat-user-message-copy-button>
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
<!-- Edit button -->
|
|
144
|
-
@if (editMessage.observed) {
|
|
145
|
-
@if (editButtonTemplate || editButtonComponent) {
|
|
146
|
-
<copilot-slot
|
|
147
|
-
[slot]="editButtonTemplate || editButtonComponent"
|
|
148
|
-
[context]="{}"
|
|
149
|
-
[outputs]="editButtonOutputs"
|
|
150
|
-
[defaultComponent]="CopilotChatUserMessageEditButtonComponent"
|
|
151
|
-
>
|
|
152
|
-
</copilot-slot>
|
|
153
|
-
} @else {
|
|
154
|
-
<copilot-chat-user-message-edit-button
|
|
155
|
-
[inputClass]="editButtonClass"
|
|
156
|
-
(clicked)="handleEdit()">
|
|
157
|
-
</copilot-chat-user-message-edit-button>
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
<!-- Branch navigation -->
|
|
162
|
-
@if (showBranchNavigation()) {
|
|
163
|
-
@if (branchNavigationTemplate || branchNavigationComponent) {
|
|
164
|
-
<copilot-slot
|
|
165
|
-
[slot]="branchNavigationTemplate || branchNavigationComponent"
|
|
166
|
-
[context]="branchNavigationContext()"
|
|
167
|
-
[defaultComponent]="CopilotChatUserMessageBranchNavigationComponent"
|
|
168
|
-
>
|
|
169
|
-
</copilot-slot>
|
|
170
|
-
} @else {
|
|
171
|
-
<copilot-chat-user-message-branch-navigation
|
|
172
|
-
[currentBranch]="branchIndexSignal()"
|
|
173
|
-
[numberOfBranches]="numberOfBranchesSignal()"
|
|
174
|
-
[message]="message"
|
|
175
|
-
[inputClass]="branchNavigationClass"
|
|
176
|
-
(switchToBranch)="handleSwitchToBranch($event)">
|
|
177
|
-
</copilot-chat-user-message-branch-navigation>
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
</div>
|
|
181
|
-
</div>
|
|
182
|
-
}
|
|
183
|
-
</div>
|
|
184
|
-
`, isInline: true, styles: [":host{display:block;width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: CopilotSlotComponent, selector: "copilot-slot", inputs: ["slot", "context", "defaultComponent", "outputs"] }, { kind: "component", type: CopilotChatUserMessageRendererComponent, selector: "copilot-chat-user-message-renderer", inputs: ["content", "inputClass"] }, { kind: "component", type: CopilotChatUserMessageCopyButtonComponent, selector: "copilot-chat-user-message-copy-button", inputs: ["title", "disabled", "inputClass", "content"], outputs: ["clicked"] }, { kind: "component", type: CopilotChatUserMessageEditButtonComponent, selector: "copilot-chat-user-message-edit-button", inputs: ["title", "disabled", "inputClass"], outputs: ["clicked"] }, { kind: "component", type: CopilotChatUserMessageToolbarComponent, selector: "div[copilotChatUserMessageToolbar]", inputs: ["inputClass"] }, { kind: "component", type: CopilotChatUserMessageBranchNavigationComponent, selector: "copilot-chat-user-message-branch-navigation", inputs: ["currentBranch", "numberOfBranches", "message", "inputClass"], outputs: ["switchToBranch"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
185
|
-
}
|
|
186
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatUserMessageComponent, decorators: [{
|
|
187
|
-
type: Component,
|
|
188
|
-
args: [{ selector: 'copilot-chat-user-message', standalone: true, imports: [
|
|
189
|
-
CommonModule,
|
|
190
|
-
CopilotSlotComponent,
|
|
191
|
-
CopilotChatUserMessageRendererComponent,
|
|
192
|
-
CopilotChatUserMessageCopyButtonComponent,
|
|
193
|
-
CopilotChatUserMessageEditButtonComponent,
|
|
194
|
-
CopilotChatUserMessageToolbarComponent,
|
|
195
|
-
CopilotChatUserMessageBranchNavigationComponent
|
|
196
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: `
|
|
197
|
-
<div
|
|
198
|
-
[class]="computedClass()"
|
|
199
|
-
[attr.data-message-id]="message.id">
|
|
200
|
-
|
|
201
|
-
<!-- Message Renderer -->
|
|
202
|
-
@if (messageRendererTemplate || messageRendererComponent) {
|
|
203
|
-
<copilot-slot
|
|
204
|
-
[slot]="messageRendererTemplate || messageRendererComponent"
|
|
205
|
-
[context]="messageRendererContext()"
|
|
206
|
-
[defaultComponent]="CopilotChatUserMessageRendererComponent"
|
|
207
|
-
>
|
|
208
|
-
</copilot-slot>
|
|
209
|
-
} @else {
|
|
210
|
-
<copilot-chat-user-message-renderer
|
|
211
|
-
[content]="message.content || ''"
|
|
212
|
-
[inputClass]="messageRendererClass">
|
|
213
|
-
</copilot-chat-user-message-renderer>
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
<!-- Toolbar -->
|
|
217
|
-
@if (toolbarTemplate || toolbarComponent) {
|
|
218
|
-
<copilot-slot
|
|
219
|
-
[slot]="toolbarTemplate || toolbarComponent"
|
|
220
|
-
[context]="toolbarContext()"
|
|
221
|
-
[defaultComponent]="CopilotChatUserMessageToolbarComponent"
|
|
222
|
-
>
|
|
223
|
-
</copilot-slot>
|
|
224
|
-
} @else {
|
|
225
|
-
<div copilotChatUserMessageToolbar [inputClass]="toolbarClass">
|
|
226
|
-
<div class="flex items-center gap-1 justify-end">
|
|
227
|
-
<!-- Additional toolbar items -->
|
|
228
|
-
@if (additionalToolbarItems) {
|
|
229
|
-
<ng-container *ngTemplateOutlet="additionalToolbarItems"></ng-container>
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
<!-- Copy button -->
|
|
233
|
-
@if (copyButtonTemplate || copyButtonComponent) {
|
|
234
|
-
<copilot-slot
|
|
235
|
-
[slot]="copyButtonTemplate || copyButtonComponent"
|
|
236
|
-
[context]="{ content: message?.content || '' }"
|
|
237
|
-
[outputs]="copyButtonOutputs"
|
|
238
|
-
[defaultComponent]="CopilotChatUserMessageCopyButtonComponent"
|
|
239
|
-
>
|
|
240
|
-
</copilot-slot>
|
|
241
|
-
} @else {
|
|
242
|
-
<copilot-chat-user-message-copy-button
|
|
243
|
-
[content]="message.content"
|
|
244
|
-
[inputClass]="copyButtonClass"
|
|
245
|
-
(clicked)="handleCopy()">
|
|
246
|
-
</copilot-chat-user-message-copy-button>
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
<!-- Edit button -->
|
|
250
|
-
@if (editMessage.observed) {
|
|
251
|
-
@if (editButtonTemplate || editButtonComponent) {
|
|
252
|
-
<copilot-slot
|
|
253
|
-
[slot]="editButtonTemplate || editButtonComponent"
|
|
254
|
-
[context]="{}"
|
|
255
|
-
[outputs]="editButtonOutputs"
|
|
256
|
-
[defaultComponent]="CopilotChatUserMessageEditButtonComponent"
|
|
257
|
-
>
|
|
258
|
-
</copilot-slot>
|
|
259
|
-
} @else {
|
|
260
|
-
<copilot-chat-user-message-edit-button
|
|
261
|
-
[inputClass]="editButtonClass"
|
|
262
|
-
(clicked)="handleEdit()">
|
|
263
|
-
</copilot-chat-user-message-edit-button>
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
<!-- Branch navigation -->
|
|
268
|
-
@if (showBranchNavigation()) {
|
|
269
|
-
@if (branchNavigationTemplate || branchNavigationComponent) {
|
|
270
|
-
<copilot-slot
|
|
271
|
-
[slot]="branchNavigationTemplate || branchNavigationComponent"
|
|
272
|
-
[context]="branchNavigationContext()"
|
|
273
|
-
[defaultComponent]="CopilotChatUserMessageBranchNavigationComponent"
|
|
274
|
-
>
|
|
275
|
-
</copilot-slot>
|
|
276
|
-
} @else {
|
|
277
|
-
<copilot-chat-user-message-branch-navigation
|
|
278
|
-
[currentBranch]="branchIndexSignal()"
|
|
279
|
-
[numberOfBranches]="numberOfBranchesSignal()"
|
|
280
|
-
[message]="message"
|
|
281
|
-
[inputClass]="branchNavigationClass"
|
|
282
|
-
(switchToBranch)="handleSwitchToBranch($event)">
|
|
283
|
-
</copilot-chat-user-message-branch-navigation>
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
</div>
|
|
287
|
-
</div>
|
|
288
|
-
}
|
|
289
|
-
</div>
|
|
290
|
-
`, styles: [":host{display:block;width:100%}\n"] }]
|
|
291
|
-
}], propDecorators: { messageRendererTemplate: [{
|
|
292
|
-
type: ContentChild,
|
|
293
|
-
args: ['messageRenderer', { read: TemplateRef }]
|
|
294
|
-
}], toolbarTemplate: [{
|
|
295
|
-
type: ContentChild,
|
|
296
|
-
args: ['toolbar', { read: TemplateRef }]
|
|
297
|
-
}], copyButtonTemplate: [{
|
|
298
|
-
type: ContentChild,
|
|
299
|
-
args: ['copyButton', { read: TemplateRef }]
|
|
300
|
-
}], editButtonTemplate: [{
|
|
301
|
-
type: ContentChild,
|
|
302
|
-
args: ['editButton', { read: TemplateRef }]
|
|
303
|
-
}], branchNavigationTemplate: [{
|
|
304
|
-
type: ContentChild,
|
|
305
|
-
args: ['branchNavigation', { read: TemplateRef }]
|
|
306
|
-
}], messageRendererClass: [{
|
|
307
|
-
type: Input
|
|
308
|
-
}], toolbarClass: [{
|
|
309
|
-
type: Input
|
|
310
|
-
}], copyButtonClass: [{
|
|
311
|
-
type: Input
|
|
312
|
-
}], editButtonClass: [{
|
|
313
|
-
type: Input
|
|
314
|
-
}], branchNavigationClass: [{
|
|
315
|
-
type: Input
|
|
316
|
-
}], messageRendererComponent: [{
|
|
317
|
-
type: Input
|
|
318
|
-
}], toolbarComponent: [{
|
|
319
|
-
type: Input
|
|
320
|
-
}], copyButtonComponent: [{
|
|
321
|
-
type: Input
|
|
322
|
-
}], editButtonComponent: [{
|
|
323
|
-
type: Input
|
|
324
|
-
}], branchNavigationComponent: [{
|
|
325
|
-
type: Input
|
|
326
|
-
}], message: [{
|
|
327
|
-
type: Input
|
|
328
|
-
}], branchIndex: [{
|
|
329
|
-
type: Input
|
|
330
|
-
}], numberOfBranches: [{
|
|
331
|
-
type: Input
|
|
332
|
-
}], additionalToolbarItems: [{
|
|
333
|
-
type: Input
|
|
334
|
-
}], inputClass: [{
|
|
335
|
-
type: Input
|
|
336
|
-
}], editMessage: [{
|
|
337
|
-
type: Output
|
|
338
|
-
}], switchToBranch: [{
|
|
339
|
-
type: Output
|
|
340
|
-
}] } });
|
|
341
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29waWxvdC1jaGF0LXVzZXItbWVzc2FnZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29tcG9uZW50cy9jaGF0L2NvcGlsb3QtY2hhdC11c2VyLW1lc3NhZ2UuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTC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S0gQ29weSBidXR0b24gLS0+XG4gICAgICAgICAgICBAaWYgKGNvcHlCdXR0b25UZW1wbGF0ZSB8fCBjb3B5QnV0dG9uQ29tcG9uZW50KSB7XG4gICAgICAgICAgICAgIDxjb3BpbG90LXNsb3RcbiAgICAgICAgICAgICAgICBbc2xvdF09XCJjb3B5QnV0dG9uVGVtcGxhdGUgfHwgY29weUJ1dHRvbkNvbXBvbmVudFwiXG4gICAgICAgICAgICAgICAgW2NvbnRleHRdPVwieyBjb250ZW50OiBtZXNzYWdlPy5jb250ZW50IHx8ICcnIH1cIlxuICAgICAgICAgICAgICAgIFtvdXRwdXRzXT1cImNvcHlCdXR0b25PdXRwdXRzXCJcbiAgICAgICAgICAgICAgICBbZGVmYXVsdENvbXBvbmVudF09XCJDb3BpbG90Q2hhdFVzZXJNZXNzYWdlQ29weUJ1dHRvbkNvbXBvbmVudFwiXG4gICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICA8L2NvcGlsb3Qtc2xvdD5cbiAgICAgICAgICAgIH0gQGVsc2Uge1xuICAgICAgICAgICAgICA8Y29waWxvdC1jaGF0LXVzZXItbWVzc2FnZS1jb3B5LWJ1dHRvblxuICAgICAgICAgICAgICAgIFtjb250ZW50XT1cIm1lc3NhZ2UuY29udGVudFwiXG4gICAgICAgICAgICAgICAgW2lucHV0Q2xhc3NdPVwiY29weUJ1dHRvbkNsYXNzXCJcbiAgICAgICAgICAgICAgICAoY2xpY2tlZCk9XCJoYW5kbGVDb3B5KClcIj5cbiAgICAgICAgICAgICAgPC9jb3BpbG90LWNoYXQtdXNlci1tZXNzYWdlLWNvcHktYnV0dG9uPlxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgXG4gICAgICAgICAgICA8IS0tIEVkaXQgYnV0dG9uIC0tPlxuICAgICAgICAgICAgQGlmIChlZGl0TWVzc2FnZS5vYnNlcnZlZCkge1xuICAgICAgICAgICAgICBAaWYgKGVkaXRCdXR0b25UZW1wbGF0ZSB8fCBlZGl0QnV0dG9uQ29tcG9uZW50KSB7XG4gICAgICAgICAgICAgICAgPGNvcGlsb3Qtc2xvdFxuICAgICAgICAgICAgICAgICAgW3Nsb3RdPVwiZWRpdEJ1dHRvblRlbXBsYXRlIHx8IGVkaXRCdXR0b25Db21wb25lbnRcIlxuICAgICAgICAgICAgICAgICAgW2NvbnRleHRdPVwie31cIlxuICAgICAgICAgICAgICAgICAgW291dHB1dHNdPVwiZWRpdEJ1dHRvbk91dHB1dHNcIlxuICAgICAgICAgICAgICAgICAgW2RlZmF1bHRDb21wb25lbnRdPVwiQ29waWxvdENoYXRVc2VyTWVzc2FnZUVkaXRCdXR0b25Db21wb25lbnRcIlxuICAgICAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIDwvY29waWxvdC1zbG90PlxuICAgICAgICAgICAgICB9IEBlbHNlIHtcbiAgICAgICAgICAgICAgICA8Y29waWxvdC1jaGF0LXVzZXItbWVzc2FnZS1lZGl0LWJ1dHRvblxuICAgICAgICAgICAgICAgICAgW2lucHV0Q2xhc3NdPVwiZWRpdEJ1dHRvbkNsYXNzXCJcbiAgICAgICAgICAgICAgICAgIChjbGlja2VkKT1cImhhbmRsZUVkaXQoKVwiPlxuICAgICAgICAgICAgICAgIDwvY29waWxvdC1jaGF0LXVzZXItbWVzc2FnZS1lZGl0LWJ1dHRvbj5cbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgXG4gICAgICAgICAgICA8IS0tIEJyYW5jaCBuYXZpZ2F0aW9uIC0tPlxuICAgICAgICAgICAgQGlmIChzaG93QnJhbmNoTmF2aWdhdGlvbigpKSB7XG4gICAgICAgICAgICAgIEBpZiAoYnJhbmNoTmF2aWdhdGlvblRlbXBsYXRlIHx8IGJyYW5jaE5hdmlnYXRpb25Db21wb25lbnQpIHtcbiAgICAgICAgICAgICAgICA8Y29waWxvdC1zbG90XG4gICAgICAgICAgICAgICAgICBbc2xvdF09XCJicmFuY2hOYXZpZ2F0aW9uVGVtcGxhdGUgfHwgYnJhbmNoTmF2aWdhdGlvbkNvbXBvbmVudFwiXG4gICAgICAgICAgICAgICAgICBbY29udGV4dF09XCJicmFuY2hOYXZpZ2F0aW9uQ29udGV4dCgpXCJcbiAgICAgICAgICAgICAgICAgIFtkZWZhdWx0Q29tcG9uZW50XT1cIkNvcGlsb3RDaGF0VXNlck1lc3NhZ2VCcmFuY2hOYXZpZ2F0aW9uQ29tcG9uZW50XCJcbiAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICA8L2NvcGlsb3Qtc2xvdD5cbiAgICAgICAgICAgICAgfSBAZWxzZSB7XG4gICAgICAgICAgICAgICAgPGNvcGlsb3QtY2hhdC11c2VyLW1lc3NhZ2UtYnJhbmNoLW5hdmlnYXRpb25cbiAgICAgICAgICAgICAgICAgIFtjdXJyZW50QnJhbmNoXT1cImJyYW5jaEluZGV4U2lnbmFsKClcIlxuICAgICAgICAgICAgICAgICAgW251bWJlck9mQnJhbmNoZXNdPVwibnVtYmVyT2ZCcmFuY2hlc1NpZ25hbCgpXCJcbiAgICAgICAgICAgICAgICAgIFttZXNzYWdlXT1cIm1lc3NhZ2VcIlxuICAgICAgICAgICAgICAgICAgW2lucHV0Q2xhc3NdPVwiYnJhbmNoTmF2aWdhdGlvbkNsYXNzXCJcbiAgICAgICAgICAgICAgICAgIChzd2l0Y2hUb0JyYW5jaCk9XCJoYW5kbGVTd2l0Y2hUb0JyYW5jaCgkZXZlbnQpXCI+XG4gICAgICAgICAgICAgICAgPC9jb3BpbG90LWNoYXQtdXNlci1tZXNzYWdlLWJyYW5jaC1uYXZpZ2F0aW9uPlxuICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgPC9kaXY+XG4gICAgICAgIDwvZGl2PlxuICAgICAgfVxuICAgIDwvZGl2PlxuICBgLFxuICBzdHlsZXM6IFtgXG4gICAgOmhvc3Qge1xuICAgICAgZGlzcGxheTogYmxvY2s7XG4gICAgICB3aWR0aDogMTA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ZXhwb3J0IGludGVyZmFjZSBCcmFuY2hOYXZpZ2F0aW9uQ29udGV4dCB7XG4gIGN1cnJlbnRCcmFuY2g6IG51bWJlcjtcbiAgbnVtYmVyT2ZCcmFuY2hlczogbnVtYmVyO1xuICBvblN3aXRjaFRvQnJhbmNoPzogKHByb3BzOiBDb3BpbG90Q2hhdFVzZXJNZXNzYWdlT25Td2l0Y2hUb0JyYW5jaFByb3BzKSA9PiB2b2lkO1xuICBtZXNzYWdlOiBVc2VyTWVzc2FnZTtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBUb29sYmFyQ29udGV4dCB7XG4gIGNoaWxkcmVuPzogYW55O1xufSJdfQ==
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Component, Input, ChangeDetectionStrategy, ViewEncapsulation, inject, } from "@angular/core";
|
|
2
|
-
import { CommonModule } from "@angular/common";
|
|
3
|
-
import { CopilotChatConfigurationService } from "../../core/chat-configuration/chat-configuration.service";
|
|
4
|
-
import { cn } from "../../lib/utils";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Disclaimer component for CopilotChatView
|
|
8
|
-
* Shows configurable disclaimer text below the input
|
|
9
|
-
* Integrates with CopilotChatConfigurationService for labels
|
|
10
|
-
*/
|
|
11
|
-
export class CopilotChatViewDisclaimerComponent {
|
|
12
|
-
inputClass;
|
|
13
|
-
text;
|
|
14
|
-
configService = inject(CopilotChatConfigurationService);
|
|
15
|
-
// Get disclaimer text from input or configuration
|
|
16
|
-
get disclaimerText() {
|
|
17
|
-
if (this.text) {
|
|
18
|
-
return this.text;
|
|
19
|
-
}
|
|
20
|
-
return this.configService.labels().chatDisclaimerText;
|
|
21
|
-
}
|
|
22
|
-
// Computed class matching React exactly
|
|
23
|
-
get computedClass() {
|
|
24
|
-
return cn("text-center text-xs text-muted-foreground py-3 px-4 max-w-3xl mx-auto", this.inputClass);
|
|
25
|
-
}
|
|
26
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatViewDisclaimerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CopilotChatViewDisclaimerComponent, isStandalone: true, selector: "copilot-chat-view-disclaimer", inputs: { inputClass: "inputClass", text: "text" }, ngImport: i0, template: `
|
|
28
|
-
<div [class]="computedClass">
|
|
29
|
-
{{ disclaimerText }}
|
|
30
|
-
</div>
|
|
31
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
32
|
-
}
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatViewDisclaimerComponent, decorators: [{
|
|
34
|
-
type: Component,
|
|
35
|
-
args: [{
|
|
36
|
-
selector: "copilot-chat-view-disclaimer",
|
|
37
|
-
standalone: true,
|
|
38
|
-
imports: [CommonModule],
|
|
39
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
40
|
-
encapsulation: ViewEncapsulation.None,
|
|
41
|
-
template: `
|
|
42
|
-
<div [class]="computedClass">
|
|
43
|
-
{{ disclaimerText }}
|
|
44
|
-
</div>
|
|
45
|
-
`,
|
|
46
|
-
}]
|
|
47
|
-
}], propDecorators: { inputClass: [{
|
|
48
|
-
type: Input
|
|
49
|
-
}], text: [{
|
|
50
|
-
type: Input
|
|
51
|
-
}] } });
|
|
52
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29waWxvdC1jaGF0LXZpZXctZGlzY2xhaW1lci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29tcG9uZW50cy9jaGF0L2NvcGlsb3QtY2hhdC12aW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|
|
|
1
|
-
import { Component, Input, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { cn } from '../../lib/utils';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Feather component for CopilotChatView
|
|
7
|
-
* Creates a gradient overlay effect between messages and input
|
|
8
|
-
* Matches React implementation exactly with same Tailwind classes
|
|
9
|
-
*/
|
|
10
|
-
export class CopilotChatViewFeatherComponent {
|
|
11
|
-
inputClass;
|
|
12
|
-
style;
|
|
13
|
-
// Computed class matching React exactly
|
|
14
|
-
get computedClass() {
|
|
15
|
-
return cn(
|
|
16
|
-
// Positioning
|
|
17
|
-
'absolute bottom-0 left-0 right-4 h-24 pointer-events-none z-10',
|
|
18
|
-
// Gradient
|
|
19
|
-
'bg-gradient-to-t',
|
|
20
|
-
// Light mode colors
|
|
21
|
-
'from-white via-white to-transparent',
|
|
22
|
-
// Dark mode colors
|
|
23
|
-
'dark:from-[rgb(33,33,33)] dark:via-[rgb(33,33,33)]',
|
|
24
|
-
// Custom classes
|
|
25
|
-
this.inputClass);
|
|
26
|
-
}
|
|
27
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatViewFeatherComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CopilotChatViewFeatherComponent, isStandalone: true, selector: "copilot-chat-view-feather", inputs: { inputClass: "inputClass", style: "style" }, ngImport: i0, template: `
|
|
29
|
-
<div
|
|
30
|
-
[class]="computedClass"
|
|
31
|
-
[style]="style">
|
|
32
|
-
</div>
|
|
33
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
34
|
-
}
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatViewFeatherComponent, decorators: [{
|
|
36
|
-
type: Component,
|
|
37
|
-
args: [{
|
|
38
|
-
selector: 'copilot-chat-view-feather',
|
|
39
|
-
standalone: true,
|
|
40
|
-
imports: [CommonModule],
|
|
41
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
42
|
-
encapsulation: ViewEncapsulation.None,
|
|
43
|
-
template: `
|
|
44
|
-
<div
|
|
45
|
-
[class]="computedClass"
|
|
46
|
-
[style]="style">
|
|
47
|
-
</div>
|
|
48
|
-
`
|
|
49
|
-
}]
|
|
50
|
-
}], propDecorators: { inputClass: [{
|
|
51
|
-
type: Input
|
|
52
|
-
}], style: [{
|
|
53
|
-
type: Input
|
|
54
|
-
}] } });
|
|
55
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29waWxvdC1jaGF0LXZpZXctZmVhdGhlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29tcG9uZW50cy9jaGF0L2NvcGlsb3QtY2hhdC12aWV3LWZlYXRoZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsS0FBSyxFQUNMLHVCQUF1QixFQUN2QixpQkFBaUIsRUFDbEIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxFQUFFLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7QUFFckM7Ozs7R0FJRztBQWNILE1BQU0sT0FBTywrQkFBK0I7SUFDakMsVUFBVSxDQUFVO0lBQ3BCLEtBQUssQ0FBMEI7SUFFeEMsd0NBQXdDO0lBQ3hDLEl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bS13aGl0ZSB2aWEtd2hpdGUgdG8tdHJhbnNwYXJlbnQnLFxuICAgICAgLy8gRGFyayBtb2RlIGNvbG9yc1xuICAgICAgJ2Rhcms6ZnJvbS1bcmdiKDMzLDMzLDMzKV0gZGFyazp2aWEtW3JnYigzMywzMywzMyldJyxcbiAgICAgIC8vIEN1c3RvbSBjbGFzc2VzXG4gICAgICB0aGlzLmlucHV0Q2xhc3NcbiAgICApO1xuICB9XG59XG4iXX0=
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Injectable, signal } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export class CopilotChatViewHandlersService {
|
|
4
|
-
// Assistant message handler availability
|
|
5
|
-
hasAssistantThumbsUpHandler = signal(false);
|
|
6
|
-
hasAssistantThumbsDownHandler = signal(false);
|
|
7
|
-
hasAssistantReadAloudHandler = signal(false);
|
|
8
|
-
hasAssistantRegenerateHandler = signal(false);
|
|
9
|
-
// User message handler availability
|
|
10
|
-
hasUserCopyHandler = signal(false);
|
|
11
|
-
hasUserEditHandler = signal(false);
|
|
12
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatViewHandlersService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
13
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatViewHandlersService, providedIn: 'root' });
|
|
14
|
-
}
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatViewHandlersService, decorators: [{
|
|
16
|
-
type: Injectable,
|
|
17
|
-
args: [{ providedIn: 'root' }]
|
|
18
|
-
}] });
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29waWxvdC1jaGF0LXZpZXctaGFuZGxlcnMuc2VydmljZS5qcyIs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lzdGFudFRodW1ic1VwSGFuZGxlciA9IHNpZ25hbChmYWxzZSk7XG4gIGhhc0Fzc2lzdGFudFRodW1ic0Rvd25IYW5kbGVyID0gc2lnbmFsKGZhbHNlKTtcbiAgaGFzQXNzaXN0YW50UmVhZEFsb3VkSGFuZGxlciA9IHNpZ25hbChmYWxzZSk7XG4gIGhhc0Fzc2lzdGFudFJlZ2VuZXJhdGVIYW5kbGVyID0gc2lnbmFsKGZhbHNlKTtcblxuICAvLyBVc2VyIG1lc3NhZ2UgaGFuZGxlciBhdmFpbGFiaWxpdHlcbiAgaGFzVXNlckNvcHlIYW5kbGVyID0gc2lnbmFsKGZhbHNlKTtcbiAgaGFzVXNlckVkaXRIYW5kbGVyID0gc2lnbmFsKGZhbHNlKTtcbn1cbiJdfQ==
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { Component, Input, ChangeDetectionStrategy, ViewEncapsulation, forwardRef, ElementRef } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { CopilotSlotComponent } from '../../lib/slots/copilot-slot.component';
|
|
4
|
-
import { CopilotChatInputComponent } from './copilot-chat-input.component';
|
|
5
|
-
import { CopilotChatViewDisclaimerComponent } from './copilot-chat-view-disclaimer.component';
|
|
6
|
-
import { cn } from '../../lib/utils';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* InputContainer component for CopilotChatView
|
|
10
|
-
* Container for input and disclaimer components
|
|
11
|
-
* Uses ForwardRef for DOM access
|
|
12
|
-
*/
|
|
13
|
-
export class CopilotChatViewInputContainerComponent extends ElementRef {
|
|
14
|
-
inputContainerClass;
|
|
15
|
-
// Input slot configuration
|
|
16
|
-
input;
|
|
17
|
-
inputClass;
|
|
18
|
-
// Disclaimer slot configuration
|
|
19
|
-
disclaimer;
|
|
20
|
-
disclaimerText;
|
|
21
|
-
disclaimerClass;
|
|
22
|
-
// Default components
|
|
23
|
-
defaultInputComponent = CopilotChatInputComponent;
|
|
24
|
-
defaultDisclaimerComponent = CopilotChatViewDisclaimerComponent;
|
|
25
|
-
constructor(elementRef) {
|
|
26
|
-
super(elementRef.nativeElement);
|
|
27
|
-
}
|
|
28
|
-
// Computed class matching React exactly
|
|
29
|
-
get computedClass() {
|
|
30
|
-
return cn('absolute bottom-0 left-0 right-0 z-20', this.inputContainerClass);
|
|
31
|
-
}
|
|
32
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatViewInputContainerComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
33
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CopilotChatViewInputContainerComponent, isStandalone: true, selector: "copilot-chat-view-input-container", inputs: { inputContainerClass: "inputContainerClass", input: "input", inputClass: "inputClass", disclaimer: "disclaimer", disclaimerText: "disclaimerText", disclaimerClass: "disclaimerClass" }, providers: [
|
|
34
|
-
{
|
|
35
|
-
provide: ElementRef,
|
|
36
|
-
useExisting: forwardRef(() => CopilotChatViewInputContainerComponent)
|
|
37
|
-
}
|
|
38
|
-
], usesInheritance: true, ngImport: i0, template: `
|
|
39
|
-
<div [class]="computedClass">
|
|
40
|
-
<!-- Input component -->
|
|
41
|
-
<div class="max-w-3xl mx-auto py-0 px-4 sm:px-0">
|
|
42
|
-
<copilot-slot
|
|
43
|
-
[slot]="input"
|
|
44
|
-
[context]="{ inputClass: inputClass }"
|
|
45
|
-
[defaultComponent]="defaultInputComponent">
|
|
46
|
-
</copilot-slot>
|
|
47
|
-
</div>
|
|
48
|
-
|
|
49
|
-
<!-- Disclaimer - always rendered like in React -->
|
|
50
|
-
<copilot-slot
|
|
51
|
-
[slot]="disclaimer"
|
|
52
|
-
[context]="{ text: disclaimerText, inputClass: disclaimerClass }"
|
|
53
|
-
[defaultComponent]="defaultDisclaimerComponent">
|
|
54
|
-
</copilot-slot>
|
|
55
|
-
</div>
|
|
56
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: CopilotSlotComponent, selector: "copilot-slot", inputs: ["slot", "context", "defaultComponent", "outputs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
57
|
-
}
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CopilotChatViewInputContainerComponent, decorators: [{
|
|
59
|
-
type: Component,
|
|
60
|
-
args: [{
|
|
61
|
-
selector: 'copilot-chat-view-input-container',
|
|
62
|
-
standalone: true,
|
|
63
|
-
imports: [
|
|
64
|
-
CommonModule,
|
|
65
|
-
CopilotSlotComponent,
|
|
66
|
-
CopilotChatInputComponent,
|
|
67
|
-
CopilotChatViewDisclaimerComponent
|
|
68
|
-
],
|
|
69
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
70
|
-
encapsulation: ViewEncapsulation.None,
|
|
71
|
-
providers: [
|
|
72
|
-
{
|
|
73
|
-
provide: ElementRef,
|
|
74
|
-
useExisting: forwardRef(() => CopilotChatViewInputContainerComponent)
|
|
75
|
-
}
|
|
76
|
-
],
|
|
77
|
-
template: `
|
|
78
|
-
<div [class]="computedClass">
|
|
79
|
-
<!-- Input component -->
|
|
80
|
-
<div class="max-w-3xl mx-auto py-0 px-4 sm:px-0">
|
|
81
|
-
<copilot-slot
|
|
82
|
-
[slot]="input"
|
|
83
|
-
[context]="{ inputClass: inputClass }"
|
|
84
|
-
[defaultComponent]="defaultInputComponent">
|
|
85
|
-
</copilot-slot>
|
|
86
|
-
</div>
|
|
87
|
-
|
|
88
|
-
<!-- Disclaimer - always rendered like in React -->
|
|
89
|
-
<copilot-slot
|
|
90
|
-
[slot]="disclaimer"
|
|
91
|
-
[context]="{ text: disclaimerText, inputClass: disclaimerClass }"
|
|
92
|
-
[defaultComponent]="defaultDisclaimerComponent">
|
|
93
|
-
</copilot-slot>
|
|
94
|
-
</div>
|
|
95
|
-
`
|
|
96
|
-
}]
|
|
97
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { inputContainerClass: [{
|
|
98
|
-
type: Input
|
|
99
|
-
}], input: [{
|
|
100
|
-
type: Input
|
|
101
|
-
}], inputClass: [{
|
|
102
|
-
type: Input
|
|
103
|
-
}], disclaimer: [{
|
|
104
|
-
type: Input
|
|
105
|
-
}], disclaimerText: [{
|
|
106
|
-
type: Input
|
|
107
|
-
}], disclaimerClass: [{
|
|
108
|
-
type: Input
|
|
109
|
-
}] } });
|
|
110
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29waWxvdC1jaGF0LXZpZXctaW5wdXQtY29udGFpbmVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb21wb25lbnRzL2NoYXQvY29waWxvdC1jaGF0LXZpZXctaW5wdXQtY29udGFpbmVyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsU0FBUyxFQUNULEtBQUssRUFDTCx1QkFBdUIsRUFDdkIsaUJBQWlCLEVBQ2pCLFVBQVUsRUFDVixVQUFVLEVBQ1gsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBQzlFLE9BQU8sRUFBRSx5QkFBeUIsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQzNFLE9BQU8sRUFBRSxrQ0FBa0MsRUFBRSxNQUFNLDBDQUEwQyxDQUFDO0FBQzlGLE9BQU8sRUFBRSxFQUFFLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQzs7QUFFckM7Ozs7R0FJR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