@memberjunction/ng-conversations 2.104.0
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/README.md +197 -0
- package/dist/lib/components/active-tasks/active-tasks-panel.component.d.ts +20 -0
- package/dist/lib/components/active-tasks/active-tasks-panel.component.d.ts.map +1 -0
- package/dist/lib/components/active-tasks/active-tasks-panel.component.js +125 -0
- package/dist/lib/components/active-tasks/active-tasks-panel.component.js.map +1 -0
- package/dist/lib/components/agent/active-agent-indicator.component.d.ts +48 -0
- package/dist/lib/components/agent/active-agent-indicator.component.d.ts.map +1 -0
- package/dist/lib/components/agent/active-agent-indicator.component.js +199 -0
- package/dist/lib/components/agent/active-agent-indicator.component.js.map +1 -0
- package/dist/lib/components/agent/agent-process-panel.component.d.ts +30 -0
- package/dist/lib/components/agent/agent-process-panel.component.d.ts.map +1 -0
- package/dist/lib/components/agent/agent-process-panel.component.js +333 -0
- package/dist/lib/components/agent/agent-process-panel.component.js.map +1 -0
- package/dist/lib/components/artifact/artifact-panel.component.d.ts +22 -0
- package/dist/lib/components/artifact/artifact-panel.component.d.ts.map +1 -0
- package/dist/lib/components/artifact/artifact-panel.component.js +237 -0
- package/dist/lib/components/artifact/artifact-panel.component.js.map +1 -0
- package/dist/lib/components/artifact/artifact-upload-modal.component.d.ts +39 -0
- package/dist/lib/components/artifact/artifact-upload-modal.component.d.ts.map +1 -0
- package/dist/lib/components/artifact/artifact-upload-modal.component.js +384 -0
- package/dist/lib/components/artifact/artifact-upload-modal.component.js.map +1 -0
- package/dist/lib/components/artifact/artifact-version-history.component.d.ts +28 -0
- package/dist/lib/components/artifact/artifact-version-history.component.d.ts.map +1 -0
- package/dist/lib/components/artifact/artifact-version-history.component.js +280 -0
- package/dist/lib/components/artifact/artifact-version-history.component.js.map +1 -0
- package/dist/lib/components/artifact/artifact-viewer-panel.component.d.ts +22 -0
- package/dist/lib/components/artifact/artifact-viewer-panel.component.d.ts.map +1 -0
- package/dist/lib/components/artifact/artifact-viewer-panel.component.js +182 -0
- package/dist/lib/components/artifact/artifact-viewer-panel.component.js.map +1 -0
- package/dist/lib/components/artifact/artifact-viewer.component.d.ts +27 -0
- package/dist/lib/components/artifact/artifact-viewer.component.d.ts.map +1 -0
- package/dist/lib/components/artifact/artifact-viewer.component.js +266 -0
- package/dist/lib/components/artifact/artifact-viewer.component.js.map +1 -0
- package/dist/lib/components/artifact/inline-artifact.component.d.ts +46 -0
- package/dist/lib/components/artifact/inline-artifact.component.d.ts.map +1 -0
- package/dist/lib/components/artifact/inline-artifact.component.js +447 -0
- package/dist/lib/components/artifact/inline-artifact.component.js.map +1 -0
- package/dist/lib/components/collection/collection-artifact-card.component.d.ts +18 -0
- package/dist/lib/components/collection/collection-artifact-card.component.d.ts.map +1 -0
- package/dist/lib/components/collection/collection-artifact-card.component.js +147 -0
- package/dist/lib/components/collection/collection-artifact-card.component.js.map +1 -0
- package/dist/lib/components/collection/collection-form-modal.component.d.ts +33 -0
- package/dist/lib/components/collection/collection-form-modal.component.d.ts.map +1 -0
- package/dist/lib/components/collection/collection-form-modal.component.js +245 -0
- package/dist/lib/components/collection/collection-form-modal.component.js.map +1 -0
- package/dist/lib/components/collection/collection-tree.component.d.ts +42 -0
- package/dist/lib/components/collection/collection-tree.component.d.ts.map +1 -0
- package/dist/lib/components/collection/collection-tree.component.js +482 -0
- package/dist/lib/components/collection/collection-tree.component.js.map +1 -0
- package/dist/lib/components/collection/collection-view.component.d.ts +31 -0
- package/dist/lib/components/collection/collection-view.component.d.ts.map +1 -0
- package/dist/lib/components/collection/collection-view.component.js +254 -0
- package/dist/lib/components/collection/collection-view.component.js.map +1 -0
- package/dist/lib/components/collection/collections-full-view.component.d.ts +55 -0
- package/dist/lib/components/collection/collections-full-view.component.d.ts.map +1 -0
- package/dist/lib/components/collection/collections-full-view.component.js +578 -0
- package/dist/lib/components/collection/collections-full-view.component.js.map +1 -0
- package/dist/lib/components/conversation/conversation-chat-area.component.d.ts +160 -0
- package/dist/lib/components/conversation/conversation-chat-area.component.d.ts.map +1 -0
- package/dist/lib/components/conversation/conversation-chat-area.component.js +891 -0
- package/dist/lib/components/conversation/conversation-chat-area.component.js.map +1 -0
- package/dist/lib/components/conversation/conversation-list.component.d.ts +29 -0
- package/dist/lib/components/conversation/conversation-list.component.d.ts.map +1 -0
- package/dist/lib/components/conversation/conversation-list.component.js +255 -0
- package/dist/lib/components/conversation/conversation-list.component.js.map +1 -0
- package/dist/lib/components/dialogs/input-dialog.component.d.ts +17 -0
- package/dist/lib/components/dialogs/input-dialog.component.d.ts.map +1 -0
- package/dist/lib/components/dialogs/input-dialog.component.js +122 -0
- package/dist/lib/components/dialogs/input-dialog.component.js.map +1 -0
- package/dist/lib/components/export/export-modal.component.d.ts +37 -0
- package/dist/lib/components/export/export-modal.component.d.ts.map +1 -0
- package/dist/lib/components/export/export-modal.component.js +414 -0
- package/dist/lib/components/export/export-modal.component.js.map +1 -0
- package/dist/lib/components/library/library-full-view.component.d.ts +36 -0
- package/dist/lib/components/library/library-full-view.component.d.ts.map +1 -0
- package/dist/lib/components/library/library-full-view.component.js +270 -0
- package/dist/lib/components/library/library-full-view.component.js.map +1 -0
- package/dist/lib/components/members/members-modal.component.d.ts +42 -0
- package/dist/lib/components/members/members-modal.component.d.ts.map +1 -0
- package/dist/lib/components/members/members-modal.component.js +352 -0
- package/dist/lib/components/members/members-modal.component.js.map +1 -0
- package/dist/lib/components/mention/mention-dropdown.component.d.ts +44 -0
- package/dist/lib/components/mention/mention-dropdown.component.d.ts.map +1 -0
- package/dist/lib/components/mention/mention-dropdown.component.js +194 -0
- package/dist/lib/components/mention/mention-dropdown.component.js.map +1 -0
- package/dist/lib/components/message/message-input.component.d.ts +137 -0
- package/dist/lib/components/message/message-input.component.d.ts.map +1 -0
- package/dist/lib/components/message/message-input.component.js +1159 -0
- package/dist/lib/components/message/message-input.component.js.map +1 -0
- package/dist/lib/components/message/message-item.component.d.ts +140 -0
- package/dist/lib/components/message/message-item.component.d.ts.map +1 -0
- package/dist/lib/components/message/message-item.component.js +817 -0
- package/dist/lib/components/message/message-item.component.js.map +1 -0
- package/dist/lib/components/message/message-list.component.d.ts +77 -0
- package/dist/lib/components/message/message-list.component.d.ts.map +1 -0
- package/dist/lib/components/message/message-list.component.js +316 -0
- package/dist/lib/components/message/message-list.component.js.map +1 -0
- package/dist/lib/components/navigation/conversation-navigation.component.d.ts +13 -0
- package/dist/lib/components/navigation/conversation-navigation.component.d.ts.map +1 -0
- package/dist/lib/components/navigation/conversation-navigation.component.js +88 -0
- package/dist/lib/components/navigation/conversation-navigation.component.js.map +1 -0
- package/dist/lib/components/notification/activity-indicator.component.d.ts +11 -0
- package/dist/lib/components/notification/activity-indicator.component.d.ts.map +1 -0
- package/dist/lib/components/notification/activity-indicator.component.js +56 -0
- package/dist/lib/components/notification/activity-indicator.component.js.map +1 -0
- package/dist/lib/components/notification/notification-badge.component.d.ts +27 -0
- package/dist/lib/components/notification/notification-badge.component.d.ts.map +1 -0
- package/dist/lib/components/notification/notification-badge.component.js +160 -0
- package/dist/lib/components/notification/notification-badge.component.js.map +1 -0
- package/dist/lib/components/project/project-form-modal.component.d.ts +34 -0
- package/dist/lib/components/project/project-form-modal.component.d.ts.map +1 -0
- package/dist/lib/components/project/project-form-modal.component.js +357 -0
- package/dist/lib/components/project/project-form-modal.component.js.map +1 -0
- package/dist/lib/components/project/project-selector.component.d.ts +36 -0
- package/dist/lib/components/project/project-selector.component.d.ts.map +1 -0
- package/dist/lib/components/project/project-selector.component.js +317 -0
- package/dist/lib/components/project/project-selector.component.js.map +1 -0
- package/dist/lib/components/search/search-panel.component.d.ts +120 -0
- package/dist/lib/components/search/search-panel.component.d.ts.map +1 -0
- package/dist/lib/components/search/search-panel.component.js +714 -0
- package/dist/lib/components/search/search-panel.component.js.map +1 -0
- package/dist/lib/components/share/share-modal.component.d.ts +46 -0
- package/dist/lib/components/share/share-modal.component.d.ts.map +1 -0
- package/dist/lib/components/share/share-modal.component.js +431 -0
- package/dist/lib/components/share/share-modal.component.js.map +1 -0
- package/dist/lib/components/sidebar/conversation-sidebar.component.d.ts +18 -0
- package/dist/lib/components/sidebar/conversation-sidebar.component.d.ts.map +1 -0
- package/dist/lib/components/sidebar/conversation-sidebar.component.js +81 -0
- package/dist/lib/components/sidebar/conversation-sidebar.component.js.map +1 -0
- package/dist/lib/components/task/task-form-modal.component.d.ts +42 -0
- package/dist/lib/components/task/task-form-modal.component.d.ts.map +1 -0
- package/dist/lib/components/task/task-form-modal.component.js +329 -0
- package/dist/lib/components/task/task-form-modal.component.js.map +1 -0
- package/dist/lib/components/task/task-item.component.d.ts +22 -0
- package/dist/lib/components/task/task-item.component.d.ts.map +1 -0
- package/dist/lib/components/task/task-item.component.js +234 -0
- package/dist/lib/components/task/task-item.component.js.map +1 -0
- package/dist/lib/components/task/task-list.component.d.ts +32 -0
- package/dist/lib/components/task/task-list.component.d.ts.map +1 -0
- package/dist/lib/components/task/task-list.component.js +290 -0
- package/dist/lib/components/task/task-list.component.js.map +1 -0
- package/dist/lib/components/tasks/tasks-dropdown.component.d.ts +27 -0
- package/dist/lib/components/tasks/tasks-dropdown.component.d.ts.map +1 -0
- package/dist/lib/components/tasks/tasks-dropdown.component.js +254 -0
- package/dist/lib/components/tasks/tasks-dropdown.component.js.map +1 -0
- package/dist/lib/components/thread/thread-panel.component.d.ts +65 -0
- package/dist/lib/components/thread/thread-panel.component.d.ts.map +1 -0
- package/dist/lib/components/thread/thread-panel.component.js +325 -0
- package/dist/lib/components/thread/thread-panel.component.js.map +1 -0
- package/dist/lib/components/toast/toast.component.d.ts +26 -0
- package/dist/lib/components/toast/toast.component.d.ts.map +1 -0
- package/dist/lib/components/toast/toast.component.js +108 -0
- package/dist/lib/components/toast/toast.component.js.map +1 -0
- package/dist/lib/components/workspace/conversation-workspace.component.d.ts +75 -0
- package/dist/lib/components/workspace/conversation-workspace.component.d.ts.map +1 -0
- package/dist/lib/components/workspace/conversation-workspace.component.js +299 -0
- package/dist/lib/components/workspace/conversation-workspace.component.js.map +1 -0
- package/dist/lib/conversations.module.d.ts +62 -0
- package/dist/lib/conversations.module.d.ts.map +1 -0
- package/dist/lib/conversations.module.js +248 -0
- package/dist/lib/conversations.module.js.map +1 -0
- package/dist/lib/directives/search-shortcut.directive.d.ts +17 -0
- package/dist/lib/directives/search-shortcut.directive.d.ts.map +1 -0
- package/dist/lib/directives/search-shortcut.directive.js +39 -0
- package/dist/lib/directives/search-shortcut.directive.js.map +1 -0
- package/dist/lib/models/conversation-state.model.d.ts +72 -0
- package/dist/lib/models/conversation-state.model.d.ts.map +1 -0
- package/dist/lib/models/conversation-state.model.js +2 -0
- package/dist/lib/models/conversation-state.model.js.map +1 -0
- package/dist/lib/models/notification.model.d.ts +89 -0
- package/dist/lib/models/notification.model.d.ts.map +1 -0
- package/dist/lib/models/notification.model.js +11 -0
- package/dist/lib/models/notification.model.js.map +1 -0
- package/dist/lib/services/active-tasks.service.d.ts +65 -0
- package/dist/lib/services/active-tasks.service.d.ts.map +1 -0
- package/dist/lib/services/active-tasks.service.js +95 -0
- package/dist/lib/services/active-tasks.service.js.map +1 -0
- package/dist/lib/services/agent-state.service.d.ts +78 -0
- package/dist/lib/services/agent-state.service.d.ts.map +1 -0
- package/dist/lib/services/agent-state.service.js +213 -0
- package/dist/lib/services/agent-state.service.js.map +1 -0
- package/dist/lib/services/artifact-state.service.d.ts +114 -0
- package/dist/lib/services/artifact-state.service.d.ts.map +1 -0
- package/dist/lib/services/artifact-state.service.js +288 -0
- package/dist/lib/services/artifact-state.service.js.map +1 -0
- package/dist/lib/services/conversation-agent.service.d.ts +79 -0
- package/dist/lib/services/conversation-agent.service.d.ts.map +1 -0
- package/dist/lib/services/conversation-agent.service.js +259 -0
- package/dist/lib/services/conversation-agent.service.js.map +1 -0
- package/dist/lib/services/conversation-state.service.d.ts +122 -0
- package/dist/lib/services/conversation-state.service.d.ts.map +1 -0
- package/dist/lib/services/conversation-state.service.js +255 -0
- package/dist/lib/services/conversation-state.service.js.map +1 -0
- package/dist/lib/services/dialog.service.d.ts +54 -0
- package/dist/lib/services/dialog.service.d.ts.map +1 -0
- package/dist/lib/services/dialog.service.js +157 -0
- package/dist/lib/services/dialog.service.js.map +1 -0
- package/dist/lib/services/export.service.d.ts +25 -0
- package/dist/lib/services/export.service.d.ts.map +1 -0
- package/dist/lib/services/export.service.js +237 -0
- package/dist/lib/services/export.service.js.map +1 -0
- package/dist/lib/services/mention-autocomplete.service.d.ts +59 -0
- package/dist/lib/services/mention-autocomplete.service.d.ts.map +1 -0
- package/dist/lib/services/mention-autocomplete.service.js +160 -0
- package/dist/lib/services/mention-autocomplete.service.js.map +1 -0
- package/dist/lib/services/mention-parser.service.d.ts +46 -0
- package/dist/lib/services/mention-parser.service.d.ts.map +1 -0
- package/dist/lib/services/mention-parser.service.js +156 -0
- package/dist/lib/services/mention-parser.service.js.map +1 -0
- package/dist/lib/services/notification.service.d.ts +108 -0
- package/dist/lib/services/notification.service.d.ts.map +1 -0
- package/dist/lib/services/notification.service.js +431 -0
- package/dist/lib/services/notification.service.js.map +1 -0
- package/dist/lib/services/search.service.d.ts +144 -0
- package/dist/lib/services/search.service.d.ts.map +1 -0
- package/dist/lib/services/search.service.js +370 -0
- package/dist/lib/services/search.service.js.map +1 -0
- package/dist/lib/services/toast.service.d.ts +46 -0
- package/dist/lib/services/toast.service.d.ts.map +1 -0
- package/dist/lib/services/toast.service.js +76 -0
- package/dist/lib/services/toast.service.js.map +1 -0
- package/dist/public-api.d.ts +42 -0
- package/dist/public-api.d.ts.map +1 -0
- package/dist/public-api.js +49 -0
- package/dist/public-api.js.map +1 -0
- package/package.json +54 -0
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
+
import { RunView } from '@memberjunction/core';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "../../services/artifact-state.service";
|
|
6
|
+
import * as i2 from "@angular/common";
|
|
7
|
+
function InlineArtifactComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
8
|
+
i0.ɵɵelementStart(0, "div", 1);
|
|
9
|
+
i0.ɵɵelement(1, "div", 4)(2, "div", 5)(3, "div", 6);
|
|
10
|
+
i0.ɵɵelementEnd();
|
|
11
|
+
} }
|
|
12
|
+
function InlineArtifactComponent_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
13
|
+
i0.ɵɵelementStart(0, "div", 2);
|
|
14
|
+
i0.ɵɵelement(1, "i", 7);
|
|
15
|
+
i0.ɵɵelementStart(2, "span");
|
|
16
|
+
i0.ɵɵtext(3, "Failed to load artifact");
|
|
17
|
+
i0.ɵɵelementEnd()();
|
|
18
|
+
} }
|
|
19
|
+
function InlineArtifactComponent_Conditional_3_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
+
i0.ɵɵelementStart(0, "span", 15);
|
|
21
|
+
i0.ɵɵtext(1, "NEW");
|
|
22
|
+
i0.ɵɵelementEnd();
|
|
23
|
+
} }
|
|
24
|
+
function InlineArtifactComponent_Conditional_3_Conditional_14_Template(rf, ctx) { if (rf & 1) {
|
|
25
|
+
i0.ɵɵelementStart(0, "span", 19);
|
|
26
|
+
i0.ɵɵtext(1);
|
|
27
|
+
i0.ɵɵelementEnd();
|
|
28
|
+
} if (rf & 2) {
|
|
29
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
30
|
+
i0.ɵɵadvance();
|
|
31
|
+
i0.ɵɵtextInterpolate(ctx_r1.artifact.Description);
|
|
32
|
+
} }
|
|
33
|
+
function InlineArtifactComponent_Conditional_3_Conditional_16_For_2_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
34
|
+
i0.ɵɵelementStart(0, "span", 37);
|
|
35
|
+
i0.ɵɵtext(1);
|
|
36
|
+
i0.ɵɵelementEnd();
|
|
37
|
+
} if (rf & 2) {
|
|
38
|
+
const ɵ$index_57_r3 = i0.ɵɵnextContext().$index;
|
|
39
|
+
i0.ɵɵadvance();
|
|
40
|
+
i0.ɵɵtextInterpolate(ɵ$index_57_r3 + 1);
|
|
41
|
+
} }
|
|
42
|
+
function InlineArtifactComponent_Conditional_3_Conditional_16_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
43
|
+
i0.ɵɵelementStart(0, "div", 35);
|
|
44
|
+
i0.ɵɵtemplate(1, InlineArtifactComponent_Conditional_3_Conditional_16_For_2_Conditional_1_Template, 2, 1, "span", 37);
|
|
45
|
+
i0.ɵɵelementStart(2, "span", 38);
|
|
46
|
+
i0.ɵɵtext(3);
|
|
47
|
+
i0.ɵɵelementEnd()();
|
|
48
|
+
} if (rf & 2) {
|
|
49
|
+
const line_r4 = ctx.$implicit;
|
|
50
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
51
|
+
i0.ɵɵadvance();
|
|
52
|
+
i0.ɵɵconditional(ctx_r1.isCodeArtifact ? 1 : -1);
|
|
53
|
+
i0.ɵɵadvance(2);
|
|
54
|
+
i0.ɵɵtextInterpolate(line_r4);
|
|
55
|
+
} }
|
|
56
|
+
function InlineArtifactComponent_Conditional_3_Conditional_16_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
57
|
+
i0.ɵɵelementStart(0, "div", 36)(1, "span");
|
|
58
|
+
i0.ɵɵtext(2);
|
|
59
|
+
i0.ɵɵelementEnd()();
|
|
60
|
+
} if (rf & 2) {
|
|
61
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
62
|
+
i0.ɵɵadvance(2);
|
|
63
|
+
i0.ɵɵtextInterpolate1("Show ", ctx_r1.remainingLines, " more lines...");
|
|
64
|
+
} }
|
|
65
|
+
function InlineArtifactComponent_Conditional_3_Conditional_16_Template(rf, ctx) { if (rf & 1) {
|
|
66
|
+
i0.ɵɵelementStart(0, "div", 34);
|
|
67
|
+
i0.ɵɵrepeaterCreate(1, InlineArtifactComponent_Conditional_3_Conditional_16_For_2_Template, 4, 2, "div", 35, i0.ɵɵrepeaterTrackByIndex);
|
|
68
|
+
i0.ɵɵtemplate(3, InlineArtifactComponent_Conditional_3_Conditional_16_Conditional_3_Template, 3, 1, "div", 36);
|
|
69
|
+
i0.ɵɵelementEnd();
|
|
70
|
+
} if (rf & 2) {
|
|
71
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
72
|
+
i0.ɵɵclassProp("code-preview", ctx_r1.isCodeArtifact);
|
|
73
|
+
i0.ɵɵadvance();
|
|
74
|
+
i0.ɵɵrepeater(ctx_r1.previewLines);
|
|
75
|
+
i0.ɵɵadvance(2);
|
|
76
|
+
i0.ɵɵconditional(ctx_r1.hasMoreContent ? 3 : -1);
|
|
77
|
+
} }
|
|
78
|
+
function InlineArtifactComponent_Conditional_3_Conditional_17_Template(rf, ctx) { if (rf & 1) {
|
|
79
|
+
i0.ɵɵelementStart(0, "div", 22);
|
|
80
|
+
i0.ɵɵelement(1, "i", 39);
|
|
81
|
+
i0.ɵɵelementStart(2, "span");
|
|
82
|
+
i0.ɵɵtext(3, "No preview available");
|
|
83
|
+
i0.ɵɵelementEnd()();
|
|
84
|
+
} }
|
|
85
|
+
function InlineArtifactComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
86
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
87
|
+
i0.ɵɵelementStart(0, "div", 8);
|
|
88
|
+
i0.ɵɵlistener("click", function InlineArtifactComponent_Conditional_3_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.openFullView()); });
|
|
89
|
+
i0.ɵɵelementStart(1, "div", 9)(2, "div", 10)(3, "div", 11);
|
|
90
|
+
i0.ɵɵelement(4, "i", 12);
|
|
91
|
+
i0.ɵɵelementEnd();
|
|
92
|
+
i0.ɵɵelementStart(5, "div", 13)(6, "span", 14);
|
|
93
|
+
i0.ɵɵtext(7);
|
|
94
|
+
i0.ɵɵelementEnd();
|
|
95
|
+
i0.ɵɵtemplate(8, InlineArtifactComponent_Conditional_3_Conditional_8_Template, 2, 0, "span", 15);
|
|
96
|
+
i0.ɵɵelementEnd()();
|
|
97
|
+
i0.ɵɵelementStart(9, "div", 16)(10, "span", 17);
|
|
98
|
+
i0.ɵɵtext(11);
|
|
99
|
+
i0.ɵɵelementEnd();
|
|
100
|
+
i0.ɵɵelementStart(12, "span", 18);
|
|
101
|
+
i0.ɵɵtext(13);
|
|
102
|
+
i0.ɵɵelementEnd();
|
|
103
|
+
i0.ɵɵtemplate(14, InlineArtifactComponent_Conditional_3_Conditional_14_Template, 2, 1, "span", 19);
|
|
104
|
+
i0.ɵɵelementEnd()();
|
|
105
|
+
i0.ɵɵelementStart(15, "div", 20);
|
|
106
|
+
i0.ɵɵtemplate(16, InlineArtifactComponent_Conditional_3_Conditional_16_Template, 4, 3, "div", 21)(17, InlineArtifactComponent_Conditional_3_Conditional_17_Template, 4, 0, "div", 22);
|
|
107
|
+
i0.ɵɵelementEnd();
|
|
108
|
+
i0.ɵɵelementStart(18, "div", 23);
|
|
109
|
+
i0.ɵɵlistener("click", function InlineArtifactComponent_Conditional_3_Template_div_click_18_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView($event.stopPropagation()); });
|
|
110
|
+
i0.ɵɵelementStart(19, "button", 24);
|
|
111
|
+
i0.ɵɵlistener("click", function InlineArtifactComponent_Conditional_3_Template_button_click_19_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.saveToLibrary($event)); });
|
|
112
|
+
i0.ɵɵelement(20, "i", 25);
|
|
113
|
+
i0.ɵɵelementStart(21, "span");
|
|
114
|
+
i0.ɵɵtext(22, "Save");
|
|
115
|
+
i0.ɵɵelementEnd()();
|
|
116
|
+
i0.ɵɵelementStart(23, "button", 26);
|
|
117
|
+
i0.ɵɵlistener("click", function InlineArtifactComponent_Conditional_3_Template_button_click_23_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.forkArtifact($event)); });
|
|
118
|
+
i0.ɵɵelement(24, "i", 27);
|
|
119
|
+
i0.ɵɵelementStart(25, "span");
|
|
120
|
+
i0.ɵɵtext(26, "Fork");
|
|
121
|
+
i0.ɵɵelementEnd()();
|
|
122
|
+
i0.ɵɵelementStart(27, "button", 28);
|
|
123
|
+
i0.ɵɵlistener("click", function InlineArtifactComponent_Conditional_3_Template_button_click_27_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.viewHistory($event)); });
|
|
124
|
+
i0.ɵɵelement(28, "i", 29);
|
|
125
|
+
i0.ɵɵelementStart(29, "span");
|
|
126
|
+
i0.ɵɵtext(30, "History");
|
|
127
|
+
i0.ɵɵelementEnd()();
|
|
128
|
+
i0.ɵɵelementStart(31, "button", 30);
|
|
129
|
+
i0.ɵɵlistener("click", function InlineArtifactComponent_Conditional_3_Template_button_click_31_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.shareArtifact($event)); });
|
|
130
|
+
i0.ɵɵelement(32, "i", 31);
|
|
131
|
+
i0.ɵɵelementStart(33, "span");
|
|
132
|
+
i0.ɵɵtext(34, "Share");
|
|
133
|
+
i0.ɵɵelementEnd()();
|
|
134
|
+
i0.ɵɵelementStart(35, "button", 32);
|
|
135
|
+
i0.ɵɵlistener("click", function InlineArtifactComponent_Conditional_3_Template_button_click_35_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.openFullView($event)); });
|
|
136
|
+
i0.ɵɵelement(36, "i", 33);
|
|
137
|
+
i0.ɵɵelementStart(37, "span");
|
|
138
|
+
i0.ɵɵtext(38, "Open");
|
|
139
|
+
i0.ɵɵelementEnd()()()();
|
|
140
|
+
} if (rf & 2) {
|
|
141
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
142
|
+
i0.ɵɵadvance(4);
|
|
143
|
+
i0.ɵɵproperty("ngClass", ctx_r1.getArtifactIcon());
|
|
144
|
+
i0.ɵɵadvance(3);
|
|
145
|
+
i0.ɵɵtextInterpolate(ctx_r1.artifact.Name);
|
|
146
|
+
i0.ɵɵadvance();
|
|
147
|
+
i0.ɵɵconditional(ctx_r1.isNew ? 8 : -1);
|
|
148
|
+
i0.ɵɵadvance(2);
|
|
149
|
+
i0.ɵɵstyleProp("background", ctx_r1.getTypeBadgeColor());
|
|
150
|
+
i0.ɵɵadvance();
|
|
151
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.artifact.Type, " ");
|
|
152
|
+
i0.ɵɵadvance(2);
|
|
153
|
+
i0.ɵɵtextInterpolate1("v", (ctx_r1.currentVersion == null ? null : ctx_r1.currentVersion.VersionNumber) || 1, "");
|
|
154
|
+
i0.ɵɵadvance();
|
|
155
|
+
i0.ɵɵconditional(ctx_r1.artifact.Description ? 14 : -1);
|
|
156
|
+
i0.ɵɵadvance(2);
|
|
157
|
+
i0.ɵɵconditional(ctx_r1.previewLines.length > 0 ? 16 : 17);
|
|
158
|
+
} }
|
|
159
|
+
/**
|
|
160
|
+
* Inline artifact display component that embeds rich artifact cards in conversation messages
|
|
161
|
+
* Shows artifact preview, type badge, quick actions, and metadata
|
|
162
|
+
*/
|
|
163
|
+
export class InlineArtifactComponent {
|
|
164
|
+
artifactState;
|
|
165
|
+
artifactId;
|
|
166
|
+
versionNumber;
|
|
167
|
+
currentUser;
|
|
168
|
+
actionPerformed = new EventEmitter();
|
|
169
|
+
artifact = null;
|
|
170
|
+
currentVersion = null;
|
|
171
|
+
loading = true;
|
|
172
|
+
error = false;
|
|
173
|
+
previewLines = [];
|
|
174
|
+
hasMoreContent = false;
|
|
175
|
+
remainingLines = 0;
|
|
176
|
+
PREVIEW_LINES = 10;
|
|
177
|
+
destroy$ = new Subject();
|
|
178
|
+
constructor(artifactState) {
|
|
179
|
+
this.artifactState = artifactState;
|
|
180
|
+
}
|
|
181
|
+
async ngOnInit() {
|
|
182
|
+
await this.loadArtifact();
|
|
183
|
+
}
|
|
184
|
+
ngOnDestroy() {
|
|
185
|
+
this.destroy$.next();
|
|
186
|
+
this.destroy$.complete();
|
|
187
|
+
}
|
|
188
|
+
async loadArtifact() {
|
|
189
|
+
if (!this.artifactId) {
|
|
190
|
+
this.error = true;
|
|
191
|
+
this.loading = false;
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
try {
|
|
195
|
+
this.loading = true;
|
|
196
|
+
this.error = false;
|
|
197
|
+
// Load artifact
|
|
198
|
+
this.artifact = await this.artifactState.loadArtifact(this.artifactId, this.currentUser);
|
|
199
|
+
if (!this.artifact) {
|
|
200
|
+
this.error = true;
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
// Load version content
|
|
204
|
+
await this.loadVersionContent();
|
|
205
|
+
}
|
|
206
|
+
catch (err) {
|
|
207
|
+
console.error('Error loading artifact:', err);
|
|
208
|
+
this.error = true;
|
|
209
|
+
}
|
|
210
|
+
finally {
|
|
211
|
+
this.loading = false;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
async loadVersionContent() {
|
|
215
|
+
if (!this.artifact)
|
|
216
|
+
return;
|
|
217
|
+
try {
|
|
218
|
+
const rv = new RunView();
|
|
219
|
+
const filter = this.versionNumber
|
|
220
|
+
? `ArtifactID='${this.artifact.ID}' AND VersionNumber=${this.versionNumber}`
|
|
221
|
+
: `ArtifactID='${this.artifact.ID}'`;
|
|
222
|
+
const result = await rv.RunView({
|
|
223
|
+
EntityName: 'MJ: Artifact Versions',
|
|
224
|
+
ExtraFilter: filter,
|
|
225
|
+
OrderBy: 'VersionNumber DESC',
|
|
226
|
+
MaxRows: 1,
|
|
227
|
+
ResultType: 'entity_object'
|
|
228
|
+
}, this.currentUser);
|
|
229
|
+
if (result.Success && result.Results && result.Results.length > 0) {
|
|
230
|
+
this.currentVersion = result.Results[0];
|
|
231
|
+
this.generatePreview();
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
catch (err) {
|
|
235
|
+
console.error('Error loading version content:', err);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
generatePreview() {
|
|
239
|
+
if (!this.currentVersion?.Content) {
|
|
240
|
+
this.previewLines = [];
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
const lines = this.currentVersion.Content.split('\n');
|
|
244
|
+
this.previewLines = lines.slice(0, this.PREVIEW_LINES);
|
|
245
|
+
this.hasMoreContent = lines.length > this.PREVIEW_LINES;
|
|
246
|
+
this.remainingLines = Math.max(0, lines.length - this.PREVIEW_LINES);
|
|
247
|
+
}
|
|
248
|
+
get isNew() {
|
|
249
|
+
if (!this.artifact)
|
|
250
|
+
return false;
|
|
251
|
+
const createdAt = new Date(this.artifact.__mj_CreatedAt);
|
|
252
|
+
const now = new Date();
|
|
253
|
+
const hoursDiff = (now.getTime() - createdAt.getTime()) / (1000 * 60 * 60);
|
|
254
|
+
return hoursDiff < 24;
|
|
255
|
+
}
|
|
256
|
+
get isCodeArtifact() {
|
|
257
|
+
if (!this.artifact)
|
|
258
|
+
return false;
|
|
259
|
+
const name = this.artifact.Name?.toLowerCase() || '';
|
|
260
|
+
const codeExtensions = ['.js', '.ts', '.jsx', '.tsx', '.py', '.java', '.cs', '.cpp', '.c', '.go', '.rs', '.sql', '.html', '.css', '.scss'];
|
|
261
|
+
return codeExtensions.some(ext => name.endsWith(ext));
|
|
262
|
+
}
|
|
263
|
+
getArtifactIcon() {
|
|
264
|
+
if (!this.artifact)
|
|
265
|
+
return 'fa-file';
|
|
266
|
+
const name = this.artifact.Name?.toLowerCase() || '';
|
|
267
|
+
const type = this.artifact.Type?.toLowerCase() || '';
|
|
268
|
+
if (type.includes('code') || this.isCodeArtifact)
|
|
269
|
+
return 'fa-file-code';
|
|
270
|
+
if (type.includes('report'))
|
|
271
|
+
return 'fa-chart-line';
|
|
272
|
+
if (type.includes('dashboard'))
|
|
273
|
+
return 'fa-chart-bar';
|
|
274
|
+
if (type.includes('document') || name.endsWith('.md'))
|
|
275
|
+
return 'fa-file-lines';
|
|
276
|
+
if (name.endsWith('.json'))
|
|
277
|
+
return 'fa-file-code';
|
|
278
|
+
if (name.endsWith('.html'))
|
|
279
|
+
return 'fa-file-code';
|
|
280
|
+
return 'fa-file';
|
|
281
|
+
}
|
|
282
|
+
getTypeBadgeColor() {
|
|
283
|
+
if (!this.artifact)
|
|
284
|
+
return '#6B7280';
|
|
285
|
+
const type = this.artifact.Type?.toLowerCase() || '';
|
|
286
|
+
if (type.includes('code'))
|
|
287
|
+
return '#8B5CF6'; // Purple
|
|
288
|
+
if (type.includes('report'))
|
|
289
|
+
return '#3B82F6'; // Blue
|
|
290
|
+
if (type.includes('dashboard'))
|
|
291
|
+
return '#10B981'; // Green
|
|
292
|
+
if (type.includes('document'))
|
|
293
|
+
return '#F59E0B'; // Orange
|
|
294
|
+
return '#6B7280'; // Gray
|
|
295
|
+
}
|
|
296
|
+
openFullView(event) {
|
|
297
|
+
if (event) {
|
|
298
|
+
event.stopPropagation();
|
|
299
|
+
}
|
|
300
|
+
if (this.artifact) {
|
|
301
|
+
this.artifactState.openArtifact(this.artifact.ID, this.versionNumber);
|
|
302
|
+
this.actionPerformed.emit({ action: 'open', artifact: this.artifact });
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
saveToLibrary(event) {
|
|
306
|
+
event.stopPropagation();
|
|
307
|
+
if (this.artifact) {
|
|
308
|
+
this.actionPerformed.emit({ action: 'save', artifact: this.artifact });
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
forkArtifact(event) {
|
|
312
|
+
event.stopPropagation();
|
|
313
|
+
if (this.artifact) {
|
|
314
|
+
this.actionPerformed.emit({ action: 'fork', artifact: this.artifact });
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
viewHistory(event) {
|
|
318
|
+
event.stopPropagation();
|
|
319
|
+
if (this.artifact) {
|
|
320
|
+
this.artifactState.openArtifact(this.artifact.ID);
|
|
321
|
+
this.artifactState.setPanelMode('view');
|
|
322
|
+
// Note: Parent component should switch to history tab
|
|
323
|
+
this.actionPerformed.emit({ action: 'history', artifact: this.artifact });
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
shareArtifact(event) {
|
|
327
|
+
event.stopPropagation();
|
|
328
|
+
if (this.artifact) {
|
|
329
|
+
this.actionPerformed.emit({ action: 'share', artifact: this.artifact });
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
static ɵfac = function InlineArtifactComponent_Factory(t) { return new (t || InlineArtifactComponent)(i0.ɵɵdirectiveInject(i1.ArtifactStateService)); };
|
|
333
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: InlineArtifactComponent, selectors: [["mj-inline-artifact"]], inputs: { artifactId: "artifactId", versionNumber: "versionNumber", currentUser: "currentUser" }, outputs: { actionPerformed: "actionPerformed" }, decls: 4, vars: 5, consts: [[1, "inline-artifact-card"], [1, "artifact-skeleton"], [1, "artifact-error"], [1, "artifact-card"], [1, "skeleton-header"], [1, "skeleton-content"], [1, "skeleton-actions"], [1, "fa-solid", "fa-exclamation-circle"], [1, "artifact-card", 3, "click"], [1, "artifact-header"], [1, "artifact-title-row"], [1, "artifact-icon"], [1, "fa-solid", 3, "ngClass"], [1, "artifact-title"], [1, "artifact-name"], [1, "new-badge"], [1, "artifact-meta"], [1, "artifact-type-badge"], [1, "artifact-version"], [1, "artifact-description"], [1, "artifact-preview"], [1, "preview-content", 3, "code-preview"], [1, "preview-empty"], [1, "artifact-actions", 3, "click"], ["title", "Save to Library", 1, "action-btn", 3, "click"], [1, "fa-solid", "fa-bookmark"], ["title", "Fork", 1, "action-btn", 3, "click"], [1, "fa-solid", "fa-code-branch"], ["title", "View History", 1, "action-btn", 3, "click"], [1, "fa-solid", "fa-history"], ["title", "Share", 1, "action-btn", 3, "click"], [1, "fa-solid", "fa-share-nodes"], ["title", "View Full Artifact", 1, "action-btn", "primary", 3, "click"], [1, "fa-solid", "fa-arrow-up-right-from-square"], [1, "preview-content"], [1, "preview-line"], [1, "preview-more"], [1, "line-number"], [1, "line-content"], [1, "fa-solid", "fa-file"]], template: function InlineArtifactComponent_Template(rf, ctx) { if (rf & 1) {
|
|
334
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
335
|
+
i0.ɵɵtemplate(1, InlineArtifactComponent_Conditional_1_Template, 4, 0, "div", 1)(2, InlineArtifactComponent_Conditional_2_Template, 4, 0, "div", 2)(3, InlineArtifactComponent_Conditional_3_Template, 39, 9, "div", 3);
|
|
336
|
+
i0.ɵɵelementEnd();
|
|
337
|
+
} if (rf & 2) {
|
|
338
|
+
i0.ɵɵclassProp("loading", ctx.loading)("error", ctx.error);
|
|
339
|
+
i0.ɵɵadvance();
|
|
340
|
+
i0.ɵɵconditional(ctx.loading ? 1 : ctx.error ? 2 : ctx.artifact ? 3 : -1);
|
|
341
|
+
} }, dependencies: [i2.NgClass], styles: [".inline-artifact-card[_ngcontent-%COMP%] {\n margin: 12px 0;\n border-radius: 8px;\n overflow: hidden;\n transition: all 200ms ease;\n }\n\n .artifact-skeleton[_ngcontent-%COMP%] {\n padding: 16px;\n background: #F9FAFB;\n border: 1px solid #E5E7EB;\n border-radius: 8px;\n }\n\n .skeleton-header[_ngcontent-%COMP%] {\n height: 24px;\n width: 60%;\n background: #E5E7EB;\n border-radius: 4px;\n margin-bottom: 12px;\n animation: _ngcontent-%COMP%_pulse 1.5s ease-in-out infinite;\n }\n\n .skeleton-content[_ngcontent-%COMP%] {\n height: 80px;\n background: #E5E7EB;\n border-radius: 4px;\n margin-bottom: 12px;\n animation: _ngcontent-%COMP%_pulse 1.5s ease-in-out infinite;\n }\n\n .skeleton-actions[_ngcontent-%COMP%] {\n height: 32px;\n width: 40%;\n background: #E5E7EB;\n border-radius: 4px;\n animation: _ngcontent-%COMP%_pulse 1.5s ease-in-out infinite;\n }\n\n @keyframes _ngcontent-%COMP%_pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n }\n\n .artifact-error[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 16px;\n background: #FEE2E2;\n border: 1px solid #FECACA;\n border-radius: 8px;\n color: #DC2626;\n }\n\n .artifact-error[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 18px;\n }\n\n .artifact-card[_ngcontent-%COMP%] {\n background: white;\n border: 1px solid #E5E7EB;\n border-radius: 8px;\n cursor: pointer;\n transition: all 200ms ease;\n }\n\n .artifact-card[_ngcontent-%COMP%]:hover {\n border-color: #1e40af;\n box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);\n }\n\n \n\n .artifact-header[_ngcontent-%COMP%] {\n padding: 16px;\n border-bottom: 1px solid #E5E7EB;\n }\n\n .artifact-title-row[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 12px;\n margin-bottom: 8px;\n }\n\n .artifact-icon[_ngcontent-%COMP%] {\n width: 40px;\n height: 40px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #F3F4F6;\n border-radius: 6px;\n color: #6B7280;\n font-size: 18px;\n }\n\n .artifact-title[_ngcontent-%COMP%] {\n flex: 1;\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .artifact-name[_ngcontent-%COMP%] {\n font-size: 15px;\n font-weight: 600;\n color: #111827;\n }\n\n .new-badge[_ngcontent-%COMP%] {\n display: inline-block;\n padding: 2px 8px;\n background: #10B981;\n color: white;\n font-size: 10px;\n font-weight: 700;\n letter-spacing: 0.5px;\n border-radius: 4px;\n }\n\n .artifact-meta[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 12px;\n flex-wrap: wrap;\n }\n\n .artifact-type-badge[_ngcontent-%COMP%] {\n display: inline-block;\n padding: 4px 10px;\n color: white;\n font-size: 11px;\n font-weight: 600;\n letter-spacing: 0.5px;\n border-radius: 4px;\n text-transform: uppercase;\n }\n\n .artifact-version[_ngcontent-%COMP%] {\n font-size: 12px;\n color: #6B7280;\n font-weight: 500;\n }\n\n .artifact-description[_ngcontent-%COMP%] {\n font-size: 13px;\n color: #6B7280;\n flex: 1;\n }\n\n \n\n .artifact-preview[_ngcontent-%COMP%] {\n padding: 16px;\n background: #FAFAFA;\n max-height: 200px;\n overflow: hidden;\n }\n\n .preview-content[_ngcontent-%COMP%] {\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 13px;\n line-height: 1.5;\n }\n\n .preview-content.code-preview[_ngcontent-%COMP%] {\n background: #1E1E1E;\n padding: 12px;\n border-radius: 6px;\n color: #D4D4D4;\n }\n\n .preview-line[_ngcontent-%COMP%] {\n display: flex;\n align-items: flex-start;\n white-space: pre;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .line-number[_ngcontent-%COMP%] {\n display: inline-block;\n width: 40px;\n text-align: right;\n margin-right: 16px;\n color: #858585;\n user-select: none;\n }\n\n .line-content[_ngcontent-%COMP%] {\n flex: 1;\n word-break: break-all;\n }\n\n .preview-more[_ngcontent-%COMP%] {\n margin-top: 8px;\n padding: 8px;\n background: rgba(30, 64, 175, 0.05);\n border-radius: 4px;\n text-align: center;\n color: #1e40af;\n font-size: 12px;\n font-weight: 500;\n }\n\n .preview-empty[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 24px;\n color: #9CA3AF;\n }\n\n .preview-empty[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 32px;\n margin-bottom: 8px;\n opacity: 0.5;\n }\n\n .preview-empty[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n font-size: 13px;\n }\n\n \n\n .artifact-actions[_ngcontent-%COMP%] {\n display: flex;\n gap: 8px;\n padding: 12px 16px;\n border-top: 1px solid #E5E7EB;\n background: white;\n }\n\n .action-btn[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 6px 12px;\n background: transparent;\n border: 1px solid #E5E7EB;\n border-radius: 6px;\n color: #6B7280;\n font-size: 13px;\n font-weight: 500;\n cursor: pointer;\n transition: all 150ms ease;\n }\n\n .action-btn[_ngcontent-%COMP%]:hover {\n background: #F9FAFB;\n border-color: #D1D5DB;\n color: #111827;\n }\n\n .action-btn.primary[_ngcontent-%COMP%] {\n background: #1e40af;\n border-color: #1e40af;\n color: white;\n }\n\n .action-btn.primary[_ngcontent-%COMP%]:hover {\n background: #1e3a8a;\n border-color: #1e3a8a;\n }\n\n .action-btn[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n font-size: 14px;\n }"] });
|
|
342
|
+
}
|
|
343
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InlineArtifactComponent, [{
|
|
344
|
+
type: Component,
|
|
345
|
+
args: [{ selector: 'mj-inline-artifact', template: `
|
|
346
|
+
<div class="inline-artifact-card" [class.loading]="loading" [class.error]="error">
|
|
347
|
+
@if (loading) {
|
|
348
|
+
<div class="artifact-skeleton">
|
|
349
|
+
<div class="skeleton-header"></div>
|
|
350
|
+
<div class="skeleton-content"></div>
|
|
351
|
+
<div class="skeleton-actions"></div>
|
|
352
|
+
</div>
|
|
353
|
+
} @else if (error) {
|
|
354
|
+
<div class="artifact-error">
|
|
355
|
+
<i class="fa-solid fa-exclamation-circle"></i>
|
|
356
|
+
<span>Failed to load artifact</span>
|
|
357
|
+
</div>
|
|
358
|
+
} @else if (artifact) {
|
|
359
|
+
<div class="artifact-card" (click)="openFullView()">
|
|
360
|
+
<!-- Header -->
|
|
361
|
+
<div class="artifact-header">
|
|
362
|
+
<div class="artifact-title-row">
|
|
363
|
+
<div class="artifact-icon">
|
|
364
|
+
<i class="fa-solid" [ngClass]="getArtifactIcon()"></i>
|
|
365
|
+
</div>
|
|
366
|
+
<div class="artifact-title">
|
|
367
|
+
<span class="artifact-name">{{ artifact.Name }}</span>
|
|
368
|
+
@if (isNew) {
|
|
369
|
+
<span class="new-badge">NEW</span>
|
|
370
|
+
}
|
|
371
|
+
</div>
|
|
372
|
+
</div>
|
|
373
|
+
<div class="artifact-meta">
|
|
374
|
+
<span class="artifact-type-badge" [style.background]="getTypeBadgeColor()">
|
|
375
|
+
{{ artifact.Type }}
|
|
376
|
+
</span>
|
|
377
|
+
<span class="artifact-version">v{{ currentVersion?.VersionNumber || 1 }}</span>
|
|
378
|
+
@if (artifact.Description) {
|
|
379
|
+
<span class="artifact-description">{{ artifact.Description }}</span>
|
|
380
|
+
}
|
|
381
|
+
</div>
|
|
382
|
+
</div>
|
|
383
|
+
|
|
384
|
+
<!-- Preview Content -->
|
|
385
|
+
<div class="artifact-preview">
|
|
386
|
+
@if (previewLines.length > 0) {
|
|
387
|
+
<div class="preview-content" [class.code-preview]="isCodeArtifact">
|
|
388
|
+
@for (line of previewLines; track $index; let i = $index) {
|
|
389
|
+
<div class="preview-line">
|
|
390
|
+
@if (isCodeArtifact) {
|
|
391
|
+
<span class="line-number">{{ i + 1 }}</span>
|
|
392
|
+
}
|
|
393
|
+
<span class="line-content">{{ line }}</span>
|
|
394
|
+
</div>
|
|
395
|
+
}
|
|
396
|
+
@if (hasMoreContent) {
|
|
397
|
+
<div class="preview-more">
|
|
398
|
+
<span>Show {{ remainingLines }} more lines...</span>
|
|
399
|
+
</div>
|
|
400
|
+
}
|
|
401
|
+
</div>
|
|
402
|
+
} @else {
|
|
403
|
+
<div class="preview-empty">
|
|
404
|
+
<i class="fa-solid fa-file"></i>
|
|
405
|
+
<span>No preview available</span>
|
|
406
|
+
</div>
|
|
407
|
+
}
|
|
408
|
+
</div>
|
|
409
|
+
|
|
410
|
+
<!-- Quick Actions Bar -->
|
|
411
|
+
<div class="artifact-actions" (click)="$event.stopPropagation()">
|
|
412
|
+
<button class="action-btn" (click)="saveToLibrary($event)" title="Save to Library">
|
|
413
|
+
<i class="fa-solid fa-bookmark"></i>
|
|
414
|
+
<span>Save</span>
|
|
415
|
+
</button>
|
|
416
|
+
<button class="action-btn" (click)="forkArtifact($event)" title="Fork">
|
|
417
|
+
<i class="fa-solid fa-code-branch"></i>
|
|
418
|
+
<span>Fork</span>
|
|
419
|
+
</button>
|
|
420
|
+
<button class="action-btn" (click)="viewHistory($event)" title="View History">
|
|
421
|
+
<i class="fa-solid fa-history"></i>
|
|
422
|
+
<span>History</span>
|
|
423
|
+
</button>
|
|
424
|
+
<button class="action-btn" (click)="shareArtifact($event)" title="Share">
|
|
425
|
+
<i class="fa-solid fa-share-nodes"></i>
|
|
426
|
+
<span>Share</span>
|
|
427
|
+
</button>
|
|
428
|
+
<button class="action-btn primary" (click)="openFullView($event)" title="View Full Artifact">
|
|
429
|
+
<i class="fa-solid fa-arrow-up-right-from-square"></i>
|
|
430
|
+
<span>Open</span>
|
|
431
|
+
</button>
|
|
432
|
+
</div>
|
|
433
|
+
</div>
|
|
434
|
+
}
|
|
435
|
+
</div>
|
|
436
|
+
`, styles: ["\n .inline-artifact-card {\n margin: 12px 0;\n border-radius: 8px;\n overflow: hidden;\n transition: all 200ms ease;\n }\n\n .artifact-skeleton {\n padding: 16px;\n background: #F9FAFB;\n border: 1px solid #E5E7EB;\n border-radius: 8px;\n }\n\n .skeleton-header {\n height: 24px;\n width: 60%;\n background: #E5E7EB;\n border-radius: 4px;\n margin-bottom: 12px;\n animation: pulse 1.5s ease-in-out infinite;\n }\n\n .skeleton-content {\n height: 80px;\n background: #E5E7EB;\n border-radius: 4px;\n margin-bottom: 12px;\n animation: pulse 1.5s ease-in-out infinite;\n }\n\n .skeleton-actions {\n height: 32px;\n width: 40%;\n background: #E5E7EB;\n border-radius: 4px;\n animation: pulse 1.5s ease-in-out infinite;\n }\n\n @keyframes pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n }\n\n .artifact-error {\n display: flex;\n align-items: center;\n gap: 8px;\n padding: 16px;\n background: #FEE2E2;\n border: 1px solid #FECACA;\n border-radius: 8px;\n color: #DC2626;\n }\n\n .artifact-error i {\n font-size: 18px;\n }\n\n .artifact-card {\n background: white;\n border: 1px solid #E5E7EB;\n border-radius: 8px;\n cursor: pointer;\n transition: all 200ms ease;\n }\n\n .artifact-card:hover {\n border-color: #1e40af;\n box-shadow: 0 4px 12px rgba(30, 64, 175, 0.1);\n }\n\n /* Header */\n .artifact-header {\n padding: 16px;\n border-bottom: 1px solid #E5E7EB;\n }\n\n .artifact-title-row {\n display: flex;\n align-items: center;\n gap: 12px;\n margin-bottom: 8px;\n }\n\n .artifact-icon {\n width: 40px;\n height: 40px;\n display: flex;\n align-items: center;\n justify-content: center;\n background: #F3F4F6;\n border-radius: 6px;\n color: #6B7280;\n font-size: 18px;\n }\n\n .artifact-title {\n flex: 1;\n display: flex;\n align-items: center;\n gap: 8px;\n }\n\n .artifact-name {\n font-size: 15px;\n font-weight: 600;\n color: #111827;\n }\n\n .new-badge {\n display: inline-block;\n padding: 2px 8px;\n background: #10B981;\n color: white;\n font-size: 10px;\n font-weight: 700;\n letter-spacing: 0.5px;\n border-radius: 4px;\n }\n\n .artifact-meta {\n display: flex;\n align-items: center;\n gap: 12px;\n flex-wrap: wrap;\n }\n\n .artifact-type-badge {\n display: inline-block;\n padding: 4px 10px;\n color: white;\n font-size: 11px;\n font-weight: 600;\n letter-spacing: 0.5px;\n border-radius: 4px;\n text-transform: uppercase;\n }\n\n .artifact-version {\n font-size: 12px;\n color: #6B7280;\n font-weight: 500;\n }\n\n .artifact-description {\n font-size: 13px;\n color: #6B7280;\n flex: 1;\n }\n\n /* Preview */\n .artifact-preview {\n padding: 16px;\n background: #FAFAFA;\n max-height: 200px;\n overflow: hidden;\n }\n\n .preview-content {\n font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;\n font-size: 13px;\n line-height: 1.5;\n }\n\n .preview-content.code-preview {\n background: #1E1E1E;\n padding: 12px;\n border-radius: 6px;\n color: #D4D4D4;\n }\n\n .preview-line {\n display: flex;\n align-items: flex-start;\n white-space: pre;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .line-number {\n display: inline-block;\n width: 40px;\n text-align: right;\n margin-right: 16px;\n color: #858585;\n user-select: none;\n }\n\n .line-content {\n flex: 1;\n word-break: break-all;\n }\n\n .preview-more {\n margin-top: 8px;\n padding: 8px;\n background: rgba(30, 64, 175, 0.05);\n border-radius: 4px;\n text-align: center;\n color: #1e40af;\n font-size: 12px;\n font-weight: 500;\n }\n\n .preview-empty {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n padding: 24px;\n color: #9CA3AF;\n }\n\n .preview-empty i {\n font-size: 32px;\n margin-bottom: 8px;\n opacity: 0.5;\n }\n\n .preview-empty span {\n font-size: 13px;\n }\n\n /* Actions */\n .artifact-actions {\n display: flex;\n gap: 8px;\n padding: 12px 16px;\n border-top: 1px solid #E5E7EB;\n background: white;\n }\n\n .action-btn {\n display: flex;\n align-items: center;\n gap: 6px;\n padding: 6px 12px;\n background: transparent;\n border: 1px solid #E5E7EB;\n border-radius: 6px;\n color: #6B7280;\n font-size: 13px;\n font-weight: 500;\n cursor: pointer;\n transition: all 150ms ease;\n }\n\n .action-btn:hover {\n background: #F9FAFB;\n border-color: #D1D5DB;\n color: #111827;\n }\n\n .action-btn.primary {\n background: #1e40af;\n border-color: #1e40af;\n color: white;\n }\n\n .action-btn.primary:hover {\n background: #1e3a8a;\n border-color: #1e3a8a;\n }\n\n .action-btn i {\n font-size: 14px;\n }\n "] }]
|
|
437
|
+
}], () => [{ type: i1.ArtifactStateService }], { artifactId: [{
|
|
438
|
+
type: Input
|
|
439
|
+
}], versionNumber: [{
|
|
440
|
+
type: Input
|
|
441
|
+
}], currentUser: [{
|
|
442
|
+
type: Input
|
|
443
|
+
}], actionPerformed: [{
|
|
444
|
+
type: Output
|
|
445
|
+
}] }); })();
|
|
446
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(InlineArtifactComponent, { className: "InlineArtifactComponent", filePath: "src/lib/components/artifact/inline-artifact.component.ts", lineNumber: 377 }); })();
|
|
447
|
+
//# sourceMappingURL=inline-artifact.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inline-artifact.component.js","sourceRoot":"","sources":["../../../../src/lib/components/artifact/inline-artifact.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAqB,MAAM,eAAe,CAAC;AAE1F,OAAO,EAAY,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;;;;;IAYvB,8BAA+B;IAG7B,AADA,AADA,yBAAmC,aACC,aACA;IACtC,iBAAM;;;IAEN,8BAA4B;IAC1B,uBAA8C;IAC9C,4BAAM;IAAA,uCAAuB;IAC/B,AAD+B,iBAAO,EAChC;;;IAYI,gCAAwB;IAAA,mBAAG;IAAA,iBAAO;;;IAUpC,gCAAmC;IAAA,YAA0B;IAAA,iBAAO;;;IAAjC,cAA0B;IAA1B,iDAA0B;;;IAYvD,gCAA0B;IAAA,YAAW;IAAA,iBAAO;;;IAAlB,cAAW;IAAX,uCAAW;;;IAFzC,+BAA0B;IACxB,qHAAsB;IAGtB,gCAA2B;IAAA,YAAU;IACvC,AADuC,iBAAO,EACxC;;;;IAJJ,cAEC;IAFD,gDAEC;IAC0B,eAAU;IAAV,6BAAU;;;IAKrC,AADF,+BAA0B,WAClB;IAAA,YAAuC;IAC/C,AAD+C,iBAAO,EAChD;;;IADE,eAAuC;IAAvC,uEAAuC;;;IAXnD,+BAAmE;IACjE,uIAOC;IACD,8GAAsB;IAKxB,iBAAM;;;IAduB,qDAAqC;IAChE,cAOC;IAPD,kCAOC;IACD,eAIC;IAJD,gDAIC;;;IAGH,+BAA2B;IACzB,wBAAgC;IAChC,4BAAM;IAAA,oCAAoB;IAC5B,AAD4B,iBAAO,EAC7B;;;;IA/CZ,8BAAoD;IAAzB,wLAAS,qBAAc,KAAC;IAI7C,AAD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AAe,EAAE,CAAC;QACxB,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;YAClD,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;YACxC,sDAAsD;YACtD,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC5E,CAAC;IACH,CAAC;IAEM,aAAa,CAAC,KAAY;QAC/B,KAAK,CAAC,eAAe,EAAE,CAAC;QACxB,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC1E,CAAC;IACH,CAAC;iFApLU,uBAAuB;6DAAvB,uBAAuB;YA1WhC,8BAAkF;YAY9E,AALA,AANF,gFAAe,mEAMK,oEAKG;YA6EzB,iBAAM;;YAzFsD,AAA1B,sCAAyB,oBAAsB;YAC/E,cAuFC;YAvFD,yEAuFC;;;iFAkRM,uBAAuB;cA7WnC,SAAS;2BACE,oBAAoB,YACpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2FT;qDAiRQ,UAAU;kBAAlB,KAAK;YACG,aAAa;kBAArB,KAAK;YACG,WAAW;kBAAnB,KAAK;YACI,eAAe;kBAAxB,MAAM;;kFAJI,uBAAuB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ArtifactEntity } from '@memberjunction/core-entities';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CollectionArtifactCardComponent {
|
|
5
|
+
artifact: ArtifactEntity;
|
|
6
|
+
selected: EventEmitter<ArtifactEntity>;
|
|
7
|
+
viewed: EventEmitter<ArtifactEntity>;
|
|
8
|
+
edited: EventEmitter<ArtifactEntity>;
|
|
9
|
+
removed: EventEmitter<ArtifactEntity>;
|
|
10
|
+
getIconClass(): string;
|
|
11
|
+
onSelect(): void;
|
|
12
|
+
onView(event: Event): void;
|
|
13
|
+
onEdit(event: Event): void;
|
|
14
|
+
onRemove(event: Event): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CollectionArtifactCardComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CollectionArtifactCardComponent, "mj-collection-artifact-card", never, { "artifact": { "alias": "artifact"; "required": false; }; }, { "selected": "selected"; "viewed": "viewed"; "edited": "edited"; "removed": "removed"; }, never, never, false, never>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=collection-artifact-card.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collection-artifact-card.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/collection/collection-artifact-card.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;;AAE/D,qBAwDa,+BAA+B;IACjC,QAAQ,EAAG,cAAc,CAAC;IAEzB,QAAQ,+BAAsC;IAC9C,MAAM,+BAAsC;IAC5C,MAAM,+BAAsC;IAC5C,OAAO,+BAAsC;IAEvD,YAAY,IAAI,MAAM;IAYtB,QAAQ,IAAI,IAAI;IAIhB,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAK1B,MAAM,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAK1B,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;yCAlCjB,+BAA+B;2CAA/B,+BAA+B;CAsC3C"}
|