@memberjunction/ng-explorer-core 6.2.2 → 6.3.0-edge.1
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 +1 -1
- package/dist/app-routing.module.d.ts.map +1 -1
- package/dist/app-routing.module.js +42 -7
- package/dist/app-routing.module.js.map +1 -1
- package/dist/generated/lazy-feature-config.d.ts +1 -1
- package/dist/generated/lazy-feature-config.d.ts.map +1 -1
- package/dist/generated/lazy-feature-config.js +60 -4
- package/dist/generated/lazy-feature-config.js.map +1 -1
- package/dist/lib/about/about-dialog.component.d.ts +2 -0
- package/dist/lib/about/about-dialog.component.d.ts.map +1 -1
- package/dist/lib/about/about-dialog.component.js +11 -2
- package/dist/lib/about/about-dialog.component.js.map +1 -1
- package/dist/lib/guards/moved-nav-item-redirect.d.ts +10 -0
- package/dist/lib/guards/moved-nav-item-redirect.d.ts.map +1 -1
- package/dist/lib/guards/moved-nav-item-redirect.js +20 -0
- package/dist/lib/guards/moved-nav-item-redirect.js.map +1 -1
- package/dist/lib/omnibar/index.d.ts +1 -0
- package/dist/lib/omnibar/index.d.ts.map +1 -1
- package/dist/lib/omnibar/index.js +1 -0
- package/dist/lib/omnibar/index.js.map +1 -1
- package/dist/lib/omnibar/omnibar-dashboard-matches.d.ts +1 -1
- package/dist/lib/omnibar/omnibar-dashboard-matches.d.ts.map +1 -1
- package/dist/lib/omnibar/omnibar-dashboard-matches.js.map +1 -1
- package/dist/lib/omnibar/omnibar-palette.component.d.ts +2 -0
- package/dist/lib/omnibar/omnibar-palette.component.d.ts.map +1 -1
- package/dist/lib/omnibar/omnibar-palette.component.js +49 -1
- package/dist/lib/omnibar/omnibar-palette.component.js.map +1 -1
- package/dist/lib/omnibar/omnibar-provider.d.ts +6 -0
- package/dist/lib/omnibar/omnibar-provider.d.ts.map +1 -1
- package/dist/lib/omnibar/omnibar-provider.js.map +1 -1
- package/dist/lib/omnibar/omnibar-semantic-index.service.d.ts +106 -0
- package/dist/lib/omnibar/omnibar-semantic-index.service.d.ts.map +1 -0
- package/dist/lib/omnibar/omnibar-semantic-index.service.js +362 -0
- package/dist/lib/omnibar/omnibar-semantic-index.service.js.map +1 -0
- package/dist/lib/omnibar/providers/omnibar-search.provider.d.ts +9 -0
- package/dist/lib/omnibar/providers/omnibar-search.provider.d.ts.map +1 -1
- package/dist/lib/omnibar/providers/omnibar-search.provider.js +75 -8
- package/dist/lib/omnibar/providers/omnibar-search.provider.js.map +1 -1
- package/dist/lib/profile/profile-dialog.component.js +4 -4
- package/dist/lib/profile/profile-dialog.component.js.map +1 -1
- package/dist/lib/public-guest/public-artifact-guest.component.d.ts +94 -0
- package/dist/lib/public-guest/public-artifact-guest.component.d.ts.map +1 -0
- package/dist/lib/public-guest/public-artifact-guest.component.js +691 -0
- package/dist/lib/public-guest/public-artifact-guest.component.js.map +1 -0
- package/dist/lib/resource-wrappers/artifact-resource.component.d.ts +31 -4
- package/dist/lib/resource-wrappers/artifact-resource.component.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/artifact-resource.component.js +154 -20
- package/dist/lib/resource-wrappers/artifact-resource.component.js.map +1 -1
- package/dist/lib/resource-wrappers/chat-collections-resource.component.d.ts +9 -190
- package/dist/lib/resource-wrappers/chat-collections-resource.component.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/chat-collections-resource.component.js +40 -580
- package/dist/lib/resource-wrappers/chat-collections-resource.component.js.map +1 -1
- package/dist/lib/resource-wrappers/chat-conversations-resource.component.d.ts +10 -1
- package/dist/lib/resource-wrappers/chat-conversations-resource.component.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/chat-conversations-resource.component.js +95 -18
- package/dist/lib/resource-wrappers/chat-conversations-resource.component.js.map +1 -1
- package/dist/lib/resource-wrappers/chat-export-artifact-link.d.ts +17 -0
- package/dist/lib/resource-wrappers/chat-export-artifact-link.d.ts.map +1 -0
- package/dist/lib/resource-wrappers/chat-export-artifact-link.js +28 -0
- package/dist/lib/resource-wrappers/chat-export-artifact-link.js.map +1 -0
- package/dist/lib/resource-wrappers/chat-search-routing.d.ts +1 -1
- package/dist/lib/resource-wrappers/chat-search-routing.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/chat-search-routing.js +2 -2
- package/dist/lib/resource-wrappers/chat-search-routing.js.map +1 -1
- package/dist/lib/resource-wrappers/chat-tasks-resource.component.d.ts +20 -10
- package/dist/lib/resource-wrappers/chat-tasks-resource.component.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/chat-tasks-resource.component.js +43 -21
- package/dist/lib/resource-wrappers/chat-tasks-resource.component.js.map +1 -1
- package/dist/lib/resource-wrappers/dashboard-resource.component.d.ts +1 -1
- package/dist/lib/resource-wrappers/dashboard-resource.component.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/dashboard-resource.component.js +2 -2
- package/dist/lib/resource-wrappers/dashboard-resource.component.js.map +1 -1
- package/dist/lib/resource-wrappers/human-handoff-console-resource.component.js +3 -3
- package/dist/lib/resource-wrappers/library-agent-context.d.ts +42 -0
- package/dist/lib/resource-wrappers/library-agent-context.d.ts.map +1 -0
- package/dist/lib/resource-wrappers/library-agent-context.js +296 -0
- package/dist/lib/resource-wrappers/library-agent-context.js.map +1 -0
- package/dist/lib/resource-wrappers/library-resource.component.d.ts +58 -0
- package/dist/lib/resource-wrappers/library-resource.component.d.ts.map +1 -0
- package/dist/lib/resource-wrappers/library-resource.component.js +326 -0
- package/dist/lib/resource-wrappers/library-resource.component.js.map +1 -0
- package/dist/lib/resource-wrappers/livekit-lazy-config.d.ts +8 -0
- package/dist/lib/resource-wrappers/livekit-lazy-config.d.ts.map +1 -0
- package/dist/lib/resource-wrappers/livekit-lazy-config.js +17 -0
- package/dist/lib/resource-wrappers/livekit-lazy-config.js.map +1 -0
- package/dist/lib/resource-wrappers/livekit-resources.module.d.ts +23 -0
- package/dist/lib/resource-wrappers/livekit-resources.module.d.ts.map +1 -0
- package/dist/lib/resource-wrappers/livekit-resources.module.js +68 -0
- package/dist/lib/resource-wrappers/livekit-resources.module.js.map +1 -0
- package/dist/lib/shell/components/header/app-switcher.component.js +2 -2
- package/dist/lib/shell/components/header/app-switcher.component.js.map +1 -1
- package/dist/lib/shell/components/tabs/tab-container.component.d.ts +41 -0
- package/dist/lib/shell/components/tabs/tab-container.component.d.ts.map +1 -1
- package/dist/lib/shell/components/tabs/tab-container.component.js +200 -5
- package/dist/lib/shell/components/tabs/tab-container.component.js.map +1 -1
- package/dist/lib/shell/services/sharing-center-dialog-host.component.d.ts.map +1 -1
- package/dist/lib/shell/services/sharing-center-dialog-host.component.js +2 -1
- package/dist/lib/shell/services/sharing-center-dialog-host.component.js.map +1 -1
- package/dist/lib/shell/shell.component.d.ts.map +1 -1
- package/dist/lib/shell/shell.component.js +28 -10
- package/dist/lib/shell/shell.component.js.map +1 -1
- package/dist/lib/shell/shell.module.d.ts +2 -2
- package/dist/lib/shell/shell.module.js +4 -4
- package/dist/lib/shell/shell.module.js.map +1 -1
- package/dist/lib/single-dashboard/Components/add-item/add-item.component.js +38 -40
- package/dist/lib/single-dashboard/Components/add-item/add-item.component.js.map +1 -1
- package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.js +3 -3
- package/dist/lib/single-dashboard/Components/delete-item/delete-item.component.js.map +1 -1
- package/dist/lib/single-list-detail/single-list-detail.component.js +1 -1
- package/dist/lib/single-list-detail/single-list-detail.component.js.map +1 -1
- package/dist/lib/user-notifications/user-notifications.component.d.ts +13 -0
- package/dist/lib/user-notifications/user-notifications.component.d.ts.map +1 -1
- package/dist/lib/user-notifications/user-notifications.component.js +41 -12
- package/dist/lib/user-notifications/user-notifications.component.js.map +1 -1
- package/dist/module.d.ts +57 -63
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +21 -45
- package/dist/module.js.map +1 -1
- package/dist/public-api.d.ts +5 -1
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +5 -1
- package/dist/public-api.js.map +1 -1
- package/package.json +60 -59
|
@@ -4,558 +4,46 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { Component
|
|
8
|
-
import { RunView } from '@memberjunction/core';
|
|
7
|
+
import { Component } from '@angular/core';
|
|
9
8
|
import { RegisterClass } from '@memberjunction/global';
|
|
10
9
|
import { BaseResourceComponent } from '@memberjunction/ng-shared';
|
|
11
|
-
import {
|
|
12
|
-
import { ArtifactStateService, ArtifactPermissionService, CollectionStateService } from '@memberjunction/ng-conversations';
|
|
13
|
-
import { AnalyzeArtifactService } from '@memberjunction/ng-artifacts';
|
|
14
|
-
import { MJNotificationService } from '@memberjunction/ng-notifications';
|
|
15
|
-
import { takeUntil, distinctUntilChanged, combineLatest } from 'rxjs';
|
|
10
|
+
import { LibraryResource } from './library-resource.component';
|
|
16
11
|
import * as i0 from "@angular/core";
|
|
17
12
|
import * as i1 from "@memberjunction/ng-conversations";
|
|
18
|
-
|
|
19
|
-
function ChatCollectionsResource_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
13
|
+
function ChatCollectionsResource_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
20
14
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
21
|
-
i0.ɵɵelementStart(0, "mj-
|
|
22
|
-
i0.ɵɵlistener("
|
|
15
|
+
i0.ɵɵelementStart(0, "mj-library-workspace", 2, 0);
|
|
16
|
+
i0.ɵɵlistener("StateChange", function ChatCollectionsResource_Conditional_0_Template_mj_library_workspace_StateChange_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnWorkspaceStateChange($event)); })("HostNavigate", function ChatCollectionsResource_Conditional_0_Template_mj_library_workspace_HostNavigate_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnHostNavigate($event)); })("LoadComplete", function ChatCollectionsResource_Conditional_0_Template_mj_library_workspace_LoadComplete_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnWorkspaceLoadComplete()); });
|
|
23
17
|
i0.ɵɵelementEnd();
|
|
24
18
|
} if (rf & 2) {
|
|
25
19
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
26
|
-
i0.ɵɵproperty("
|
|
27
|
-
} }
|
|
28
|
-
function ChatCollectionsResource_Conditional_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
29
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
30
|
-
i0.ɵɵelementStart(0, "div", 7);
|
|
31
|
-
i0.ɵɵlistener("mousedown", function ChatCollectionsResource_Conditional_3_Conditional_0_Template_div_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onResizeStart($event)); });
|
|
32
|
-
i0.ɵɵelementEnd();
|
|
33
|
-
} }
|
|
34
|
-
function ChatCollectionsResource_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
35
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
36
|
-
i0.ɵɵconditionalCreate(0, ChatCollectionsResource_Conditional_3_Conditional_0_Template, 1, 0, "div", 4);
|
|
37
|
-
i0.ɵɵelementStart(1, "div", 5)(2, "mj-artifact-viewer-panel", 6);
|
|
38
|
-
i0.ɵɵlistener("closed", function ChatCollectionsResource_Conditional_3_Template_mj_artifact_viewer_panel_closed_2_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.closeArtifactPanel()); })("maximizeToggled", function ChatCollectionsResource_Conditional_3_Template_mj_artifact_viewer_panel_maximizeToggled_2_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.toggleMaximizeArtifactPanel()); })("navigateToLink", function ChatCollectionsResource_Conditional_3_Template_mj_artifact_viewer_panel_navigateToLink_2_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onNavigateToLink($event)); })("openEntityRecord", function ChatCollectionsResource_Conditional_3_Template_mj_artifact_viewer_panel_openEntityRecord_2_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onOpenEntityRecord($event)); })("analyzeRequested", function ChatCollectionsResource_Conditional_3_Template_mj_artifact_viewer_panel_analyzeRequested_2_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onAnalyzeRequested($event)); });
|
|
39
|
-
i0.ɵɵelementEnd()();
|
|
40
|
-
} if (rf & 2) {
|
|
41
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
42
|
-
i0.ɵɵconditional(!ctx_r1.isArtifactPanelMaximized ? 0 : -1);
|
|
43
|
-
i0.ɵɵadvance();
|
|
44
|
-
i0.ɵɵstyleProp("width", ctx_r1.artifactPanelWidth, "%");
|
|
45
|
-
i0.ɵɵclassProp("maximized", ctx_r1.isArtifactPanelMaximized);
|
|
46
|
-
i0.ɵɵadvance();
|
|
47
|
-
i0.ɵɵproperty("artifactId", ctx_r1.activeArtifactId)("currentUser", ctx_r1.currentUser)("environmentId", ctx_r1.environmentId)("versionNumber", ctx_r1.activeVersionNumber ?? undefined)("showSaveToCollection", false)("viewContext", "collection")("contextCollectionId", ctx_r1.activeCollectionId ?? undefined)("canShare", ctx_r1.canShareActiveArtifact)("canEdit", ctx_r1.canEditActiveArtifact)("isMaximized", ctx_r1.isArtifactPanelMaximized);
|
|
20
|
+
i0.ɵɵproperty("Provider", ctx_r1.ProviderToUse)("CurrentUser", ctx_r1.CurrentUser)("EnvironmentId", ctx_r1.EnvironmentId)("InitialMode", ctx_r1.DefaultSurfaceMode)("InitialSection", ctx_r1.DefaultNavigatorSection);
|
|
48
21
|
} }
|
|
49
22
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
23
|
+
* Backward-compatible Explorer resource wrapper for saved `MJ: Workspaces` tabs referencing
|
|
24
|
+
* `ChatCollectionsResource` (previously nested under the Chat application).
|
|
25
|
+
*
|
|
26
|
+
* Delegates directly to the unified `LibraryResource` in Power Navigator mode so existing
|
|
27
|
+
* deep links and workspace tabs seamlessly upgrade to the full Library experience.
|
|
54
28
|
*/
|
|
55
|
-
let ChatCollectionsResource = class ChatCollectionsResource extends
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
/** @deprecated Use {@link CurrentUser}. */
|
|
62
|
-
set currentUser(value) {
|
|
63
|
-
this.CurrentUser = value;
|
|
64
|
-
}
|
|
65
|
-
// Artifact panel state
|
|
66
|
-
IsArtifactPanelOpen = false;
|
|
67
|
-
/** @deprecated Use {@link IsArtifactPanelOpen}. */
|
|
68
|
-
get isArtifactPanelOpen() {
|
|
69
|
-
return this.IsArtifactPanelOpen;
|
|
70
|
-
}
|
|
71
|
-
/** @deprecated Use {@link IsArtifactPanelOpen}. */
|
|
72
|
-
set isArtifactPanelOpen(value) {
|
|
73
|
-
this.IsArtifactPanelOpen = value;
|
|
74
|
-
}
|
|
75
|
-
ActiveCollectionId = null;
|
|
76
|
-
/** @deprecated Use {@link ActiveCollectionId}. */
|
|
77
|
-
get activeCollectionId() {
|
|
78
|
-
return this.ActiveCollectionId;
|
|
79
|
-
}
|
|
80
|
-
/** @deprecated Use {@link ActiveCollectionId}. */
|
|
81
|
-
set activeCollectionId(value) {
|
|
82
|
-
this.ActiveCollectionId = value;
|
|
83
|
-
}
|
|
84
|
-
ActiveArtifactId = null;
|
|
85
|
-
/** @deprecated Use {@link ActiveArtifactId}. */
|
|
86
|
-
get activeArtifactId() {
|
|
87
|
-
return this.ActiveArtifactId;
|
|
88
|
-
}
|
|
89
|
-
/** @deprecated Use {@link ActiveArtifactId}. */
|
|
90
|
-
set activeArtifactId(value) {
|
|
91
|
-
this.ActiveArtifactId = value;
|
|
92
|
-
}
|
|
93
|
-
ActiveVersionNumber = null;
|
|
94
|
-
/** @deprecated Use {@link ActiveVersionNumber}. */
|
|
95
|
-
get activeVersionNumber() {
|
|
96
|
-
return this.ActiveVersionNumber;
|
|
97
|
-
}
|
|
98
|
-
/** @deprecated Use {@link ActiveVersionNumber}. */
|
|
99
|
-
set activeVersionNumber(value) {
|
|
100
|
-
this.ActiveVersionNumber = value;
|
|
101
|
-
}
|
|
102
|
-
CanShareActiveArtifact = false;
|
|
103
|
-
/** @deprecated Use {@link CanShareActiveArtifact}. */
|
|
104
|
-
get canShareActiveArtifact() {
|
|
105
|
-
return this.CanShareActiveArtifact;
|
|
106
|
-
}
|
|
107
|
-
/** @deprecated Use {@link CanShareActiveArtifact}. */
|
|
108
|
-
set canShareActiveArtifact(value) {
|
|
109
|
-
this.CanShareActiveArtifact = value;
|
|
110
|
-
}
|
|
111
|
-
CanEditActiveArtifact = false;
|
|
112
|
-
/** @deprecated Use {@link CanEditActiveArtifact}. */
|
|
113
|
-
get canEditActiveArtifact() {
|
|
114
|
-
return this.CanEditActiveArtifact;
|
|
115
|
-
}
|
|
116
|
-
/** @deprecated Use {@link CanEditActiveArtifact}. */
|
|
117
|
-
set canEditActiveArtifact(value) {
|
|
118
|
-
this.CanEditActiveArtifact = value;
|
|
119
|
-
}
|
|
120
|
-
ArtifactPanelWidth = 40;
|
|
121
|
-
/** @deprecated Use {@link ArtifactPanelWidth}. */
|
|
122
|
-
get artifactPanelWidth() {
|
|
123
|
-
return this.ArtifactPanelWidth;
|
|
124
|
-
}
|
|
125
|
-
/** @deprecated Use {@link ArtifactPanelWidth}. */
|
|
126
|
-
set artifactPanelWidth(value) {
|
|
127
|
-
this.ArtifactPanelWidth = value;
|
|
128
|
-
} // Default 40% width (percentage-based)
|
|
129
|
-
IsArtifactPanelMaximized = false;
|
|
130
|
-
/** @deprecated Use {@link IsArtifactPanelMaximized}. */
|
|
131
|
-
get isArtifactPanelMaximized() {
|
|
132
|
-
return this.IsArtifactPanelMaximized;
|
|
133
|
-
}
|
|
134
|
-
/** @deprecated Use {@link IsArtifactPanelMaximized}. */
|
|
135
|
-
set isArtifactPanelMaximized(value) {
|
|
136
|
-
this.IsArtifactPanelMaximized = value;
|
|
137
|
-
}
|
|
138
|
-
artifactPanelWidthBeforeMaximize = 40; // Store width before maximizing
|
|
139
|
-
// Resize state
|
|
140
|
-
isResizing = false;
|
|
141
|
-
resizeStartX = 0;
|
|
142
|
-
resizeStartWidth = 0;
|
|
143
|
-
initializing = true; // Prevents URL updates during initialization
|
|
144
|
-
artifactState = inject(ArtifactStateService);
|
|
145
|
-
artifactPermissionService = inject(ArtifactPermissionService);
|
|
146
|
-
CollectionState = inject(CollectionStateService);
|
|
147
|
-
/** @deprecated Use {@link CollectionState}. */
|
|
148
|
-
get collectionState() {
|
|
149
|
-
return this.CollectionState;
|
|
150
|
-
}
|
|
151
|
-
/** @deprecated Use {@link CollectionState}. */
|
|
152
|
-
set collectionState(value) {
|
|
153
|
-
this.CollectionState = value;
|
|
154
|
-
}
|
|
155
|
-
cdr = inject(ChangeDetectorRef);
|
|
156
|
-
analyzeService = inject(AnalyzeArtifactService);
|
|
157
|
-
ngOnInit() {
|
|
158
|
-
super.ngOnInit();
|
|
159
|
-
const md = this.ProviderToUse;
|
|
160
|
-
this.CurrentUser = md.CurrentUser;
|
|
161
|
-
// Subscribe to artifact state changes
|
|
162
|
-
this.subscribeToArtifactState();
|
|
163
|
-
// Setup resize listeners
|
|
164
|
-
this.setupResizeListeners();
|
|
165
|
-
// Apply initial state from query params or tab config
|
|
166
|
-
this.applyInitialParams();
|
|
167
|
-
// Subscribe to state changes to push URL updates
|
|
168
|
-
this.subscribeToUrlStateChanges();
|
|
169
|
-
// Subscribe to collection and artifact changes to update tab title
|
|
170
|
-
this.CollectionState.activeCollectionId$
|
|
171
|
-
.pipe(takeUntil(this.destroy$), distinctUntilChanged())
|
|
172
|
-
.subscribe(collectionId => {
|
|
173
|
-
this.ActiveCollectionId = collectionId;
|
|
174
|
-
// Only update if no artifact is open (artifact title takes priority)
|
|
175
|
-
if (!this.ActiveArtifactId) {
|
|
176
|
-
this.updateCollectionTabTitle(collectionId);
|
|
177
|
-
}
|
|
178
|
-
this.cdr.detectChanges();
|
|
179
|
-
});
|
|
180
|
-
this.artifactState.activeArtifact$
|
|
181
|
-
.pipe(takeUntil(this.destroy$), distinctUntilChanged())
|
|
182
|
-
.subscribe(artifact => {
|
|
183
|
-
if (artifact && artifact.Name) {
|
|
184
|
-
this.NotifyDisplayNameChanged(artifact.Name);
|
|
185
|
-
}
|
|
186
|
-
else {
|
|
187
|
-
// Artifact closed — fall back to collection name
|
|
188
|
-
this.updateCollectionTabTitle(this.CollectionState.activeCollectionId);
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
// Enable URL updates after initialization
|
|
192
|
-
this.initializing = false;
|
|
193
|
-
// Push initial state to URL — but only if we actually have state to reflect.
|
|
194
|
-
// On a cold/direct deep-link load the params may arrive via the reactive
|
|
195
|
-
// OnQueryParamsChanged delivery slightly after ngOnInit; pushing empty params
|
|
196
|
-
// here would strip the deep link from the URL before that delivery lands.
|
|
197
|
-
// Once state is set (synchronously when params are already present, or via the
|
|
198
|
-
// reactive delivery), subscribeToUrlStateChanges() pushes the normalized URL.
|
|
199
|
-
if (this.CollectionState.activeCollectionId || this.ActiveArtifactId) {
|
|
200
|
-
this.pushStateToUrl();
|
|
201
|
-
}
|
|
202
|
-
// Notify load complete after user is set
|
|
203
|
-
setTimeout(() => {
|
|
204
|
-
this.NotifyLoadComplete();
|
|
205
|
-
}, 100);
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* Apply initial state from query params or tab configuration.
|
|
209
|
-
*/
|
|
210
|
-
applyInitialParams() {
|
|
211
|
-
const params = this.GetQueryParams();
|
|
212
|
-
const config = this.Data?.Configuration;
|
|
213
|
-
const collectionId = params['collectionId'] || config?.collectionId;
|
|
214
|
-
const artifactId = params['artifactId'] || config?.artifactId;
|
|
215
|
-
const versionNumber = params['versionNumber'] ? parseInt(params['versionNumber'], 10)
|
|
216
|
-
: config?.versionNumber ? config.versionNumber : undefined;
|
|
217
|
-
if (collectionId) {
|
|
218
|
-
this.CollectionState.setActiveCollection(collectionId);
|
|
219
|
-
}
|
|
220
|
-
if (artifactId) {
|
|
221
|
-
this.artifactState.openArtifact(artifactId, versionNumber);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* React to browser back/forward query param changes.
|
|
226
|
-
*/
|
|
227
|
-
OnQueryParamsChanged(params, source) {
|
|
228
|
-
const collectionId = params['collectionId'];
|
|
229
|
-
const artifactId = params['artifactId'];
|
|
230
|
-
const versionNumber = params['versionNumber'] ? parseInt(params['versionNumber'], 10) : undefined;
|
|
231
|
-
if (collectionId) {
|
|
232
|
-
this.CollectionState.setActiveCollection(collectionId);
|
|
233
|
-
}
|
|
234
|
-
else {
|
|
235
|
-
this.CollectionState.setActiveCollection(null);
|
|
236
|
-
}
|
|
237
|
-
if (artifactId) {
|
|
238
|
-
this.artifactState.openArtifact(artifactId, versionNumber);
|
|
239
|
-
}
|
|
240
|
-
else {
|
|
241
|
-
this.artifactState.closeArtifact();
|
|
242
|
-
}
|
|
29
|
+
let ChatCollectionsResource = class ChatCollectionsResource extends LibraryResource {
|
|
30
|
+
constructor() {
|
|
31
|
+
super();
|
|
32
|
+
this.DefaultSurfaceMode = 'navigator';
|
|
33
|
+
this.DefaultNavigatorSection = 'collections';
|
|
243
34
|
}
|
|
244
|
-
/**
|
|
245
|
-
* Subscribe to state changes for URL updates.
|
|
246
|
-
*/
|
|
247
|
-
subscribeToUrlStateChanges() {
|
|
248
|
-
combineLatest([
|
|
249
|
-
this.CollectionState.activeCollectionId$.pipe(distinctUntilChanged()),
|
|
250
|
-
this.artifactState.activeArtifactId$.pipe(distinctUntilChanged()),
|
|
251
|
-
this.artifactState.activeVersionNumber$.pipe(distinctUntilChanged())
|
|
252
|
-
])
|
|
253
|
-
.pipe(takeUntil(this.destroy$))
|
|
254
|
-
.subscribe(() => {
|
|
255
|
-
if (!this.initializing) {
|
|
256
|
-
this.pushStateToUrl();
|
|
257
|
-
}
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
/**
|
|
261
|
-
* Push current state to URL via framework query params.
|
|
262
|
-
*/
|
|
263
|
-
pushStateToUrl() {
|
|
264
|
-
const queryParams = {};
|
|
265
|
-
const collectionId = this.CollectionState.activeCollectionId;
|
|
266
|
-
queryParams['collectionId'] = collectionId || null;
|
|
267
|
-
if (this.ActiveArtifactId) {
|
|
268
|
-
queryParams['artifactId'] = this.ActiveArtifactId;
|
|
269
|
-
queryParams['versionNumber'] = this.ActiveVersionNumber ? this.ActiveVersionNumber.toString() : null;
|
|
270
|
-
}
|
|
271
|
-
else {
|
|
272
|
-
queryParams['artifactId'] = null;
|
|
273
|
-
queryParams['versionNumber'] = null;
|
|
274
|
-
}
|
|
275
|
-
this.UpdateQueryParams(queryParams);
|
|
276
|
-
}
|
|
277
|
-
/**
|
|
278
|
-
* Update the tab/browser title based on the active collection.
|
|
279
|
-
*/
|
|
280
|
-
async updateCollectionTabTitle(collectionId) {
|
|
281
|
-
if (!collectionId) {
|
|
282
|
-
this.NotifyDisplayNameChanged('Collections');
|
|
283
|
-
return;
|
|
284
|
-
}
|
|
285
|
-
try {
|
|
286
|
-
const rv = RunView.FromMetadataProvider(this.ProviderToUse);
|
|
287
|
-
const result = await rv.RunView({
|
|
288
|
-
EntityName: 'MJ: Collections',
|
|
289
|
-
Fields: ['Name'],
|
|
290
|
-
ExtraFilter: `ID='${collectionId}'`,
|
|
291
|
-
ResultType: 'simple'
|
|
292
|
-
});
|
|
293
|
-
if (result.Results?.length > 0 && result.Results[0].Name) {
|
|
294
|
-
this.NotifyDisplayNameChanged(result.Results[0].Name);
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
catch {
|
|
298
|
-
// Fall back to generic title
|
|
299
|
-
this.NotifyDisplayNameChanged('Collections');
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
ngOnDestroy() {
|
|
303
|
-
super.ngOnDestroy();
|
|
304
|
-
this.removeResizeListeners();
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* Subscribe to artifact state service for panel open/close
|
|
308
|
-
*/
|
|
309
|
-
subscribeToArtifactState() {
|
|
310
|
-
// Subscribe to panel open state
|
|
311
|
-
this.artifactState.isPanelOpen$
|
|
312
|
-
.pipe(takeUntil(this.destroy$))
|
|
313
|
-
.subscribe(isOpen => {
|
|
314
|
-
this.IsArtifactPanelOpen = isOpen;
|
|
315
|
-
this.cdr.detectChanges();
|
|
316
|
-
});
|
|
317
|
-
// Subscribe to active artifact ID
|
|
318
|
-
this.artifactState.activeArtifactId$
|
|
319
|
-
.pipe(takeUntil(this.destroy$))
|
|
320
|
-
.subscribe(async (id) => {
|
|
321
|
-
this.ActiveArtifactId = id;
|
|
322
|
-
if (id) {
|
|
323
|
-
await this.loadArtifactPermissions(id);
|
|
324
|
-
}
|
|
325
|
-
else {
|
|
326
|
-
this.CanShareActiveArtifact = false;
|
|
327
|
-
this.CanEditActiveArtifact = false;
|
|
328
|
-
}
|
|
329
|
-
this.cdr.detectChanges();
|
|
330
|
-
});
|
|
331
|
-
// Subscribe to active version number
|
|
332
|
-
this.artifactState.activeVersionNumber$
|
|
333
|
-
.pipe(takeUntil(this.destroy$))
|
|
334
|
-
.subscribe(versionNumber => {
|
|
335
|
-
this.ActiveVersionNumber = versionNumber;
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
/**
|
|
339
|
-
* Load permissions for the active artifact
|
|
340
|
-
*/
|
|
341
|
-
async loadArtifactPermissions(artifactId) {
|
|
342
|
-
if (!artifactId || !this.CurrentUser) {
|
|
343
|
-
this.CanShareActiveArtifact = false;
|
|
344
|
-
this.CanEditActiveArtifact = false;
|
|
345
|
-
return;
|
|
346
|
-
}
|
|
347
|
-
try {
|
|
348
|
-
const permissions = await this.artifactPermissionService.getUserPermissions(artifactId, this.CurrentUser);
|
|
349
|
-
this.CanShareActiveArtifact = permissions.canShare;
|
|
350
|
-
this.CanEditActiveArtifact = permissions.canEdit;
|
|
351
|
-
}
|
|
352
|
-
catch (error) {
|
|
353
|
-
console.error('Failed to load artifact permissions:', error);
|
|
354
|
-
this.CanShareActiveArtifact = false;
|
|
355
|
-
this.CanEditActiveArtifact = false;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
/**
|
|
359
|
-
* Close the artifact panel
|
|
360
|
-
*/
|
|
361
|
-
CloseArtifactPanel() {
|
|
362
|
-
this.artifactState.closeArtifact();
|
|
363
|
-
}
|
|
364
|
-
/** @deprecated Use {@link CloseArtifactPanel}. */
|
|
365
|
-
closeArtifactPanel() {
|
|
366
|
-
return this.CloseArtifactPanel();
|
|
367
|
-
}
|
|
368
|
-
/**
|
|
369
|
-
* Toggle maximize/restore state for artifact panel
|
|
370
|
-
*/
|
|
371
|
-
ToggleMaximizeArtifactPanel() {
|
|
372
|
-
if (this.IsArtifactPanelMaximized) {
|
|
373
|
-
// Restore to previous width
|
|
374
|
-
this.ArtifactPanelWidth = this.artifactPanelWidthBeforeMaximize;
|
|
375
|
-
this.IsArtifactPanelMaximized = false;
|
|
376
|
-
}
|
|
377
|
-
else {
|
|
378
|
-
// Maximize - store current width and set to 100%
|
|
379
|
-
this.artifactPanelWidthBeforeMaximize = this.ArtifactPanelWidth;
|
|
380
|
-
this.ArtifactPanelWidth = 100;
|
|
381
|
-
this.IsArtifactPanelMaximized = true;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
/** @deprecated Use {@link ToggleMaximizeArtifactPanel}. */
|
|
385
|
-
toggleMaximizeArtifactPanel() {
|
|
386
|
-
return this.ToggleMaximizeArtifactPanel();
|
|
387
|
-
}
|
|
388
|
-
/**
|
|
389
|
-
* Handle navigation request from artifact viewer panel.
|
|
390
|
-
* Converts the link event to a generic navigation request and uses NavigationService.
|
|
391
|
-
*/
|
|
392
|
-
OnNavigateToLink(event) {
|
|
393
|
-
// Map the link type to the nav item name
|
|
394
|
-
const navItemName = event.type === 'conversation' ? 'Conversations' : 'Collections';
|
|
395
|
-
// Build configuration params to pass to the target resource
|
|
396
|
-
const params = {};
|
|
397
|
-
if (event.type === 'conversation') {
|
|
398
|
-
params['conversationId'] = event.id;
|
|
399
|
-
}
|
|
400
|
-
else {
|
|
401
|
-
params['collectionId'] = event.id;
|
|
402
|
-
}
|
|
403
|
-
// Include artifact info so destination can open it
|
|
404
|
-
if (event.artifactId) {
|
|
405
|
-
params['artifactId'] = event.artifactId;
|
|
406
|
-
if (event.versionNumber) {
|
|
407
|
-
params['versionNumber'] = event.versionNumber;
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
// Also deliver as query params so an already-open/cached target tab applies them
|
|
411
|
-
// (configuration alone is only read by a fresh tab's ngOnInit).
|
|
412
|
-
const queryParams = {};
|
|
413
|
-
for (const [key, value] of Object.entries(params)) {
|
|
414
|
-
if (value != null)
|
|
415
|
-
queryParams[key] = String(value);
|
|
416
|
-
}
|
|
417
|
-
// Navigate using the generic nav item method
|
|
418
|
-
this.navigationService.OpenNavItemByName(navItemName, params, undefined, { queryParams });
|
|
419
|
-
}
|
|
420
|
-
/** @deprecated Use {@link OnNavigateToLink}. */
|
|
421
|
-
onNavigateToLink(event) {
|
|
422
|
-
return this.OnNavigateToLink(event);
|
|
423
|
-
}
|
|
424
|
-
/**
|
|
425
|
-
* Open the conversation an artifact was produced in (from the Collections view's
|
|
426
|
-
* right-click "Open source conversation"). Routes to the Conversations nav item.
|
|
427
|
-
*/
|
|
428
|
-
OnOpenConversation(event) {
|
|
429
|
-
// Pass conversationId BOTH as configuration (read by a fresh tab's ngOnInit) AND as
|
|
430
|
-
// queryParams (drives OnQueryParamsChanged on the already-open/cached Conversations tab).
|
|
431
|
-
// Without the queryParams, switching to an existing Conversations tab opens the app but
|
|
432
|
-
// never selects the conversation, since the cached component doesn't re-run ngOnInit.
|
|
433
|
-
this.navigationService.OpenNavItemByName('Conversations', { conversationId: event.conversationId }, undefined, { queryParams: { conversationId: event.conversationId } });
|
|
434
|
-
}
|
|
435
|
-
/** @deprecated Use {@link OnOpenConversation}. */
|
|
436
|
-
onOpenConversation(event) {
|
|
437
|
-
return this.OnOpenConversation(event);
|
|
438
|
-
}
|
|
439
|
-
/**
|
|
440
|
-
* Handle entity record open request from artifact viewer (from React component grids).
|
|
441
|
-
* Uses NavigationService to open the record in a new tab.
|
|
442
|
-
*/
|
|
443
|
-
OnOpenEntityRecord(event) {
|
|
444
|
-
this.navigationService.OpenEntityRecord(event.entityName, event.compositeKey);
|
|
445
|
-
}
|
|
446
|
-
/** @deprecated Use {@link OnOpenEntityRecord}. */
|
|
447
|
-
onOpenEntityRecord(event) {
|
|
448
|
-
return this.OnOpenEntityRecord(event);
|
|
449
|
-
}
|
|
450
|
-
/**
|
|
451
|
-
* Handler for the Analyze button on the artifact viewer panel.
|
|
452
|
-
* Captures the live DataSnapshot, creates a new analysis conversation
|
|
453
|
-
* with the snapshot attached as an input artifact, and routes the user
|
|
454
|
-
* to the Conversations nav item for the new conversation.
|
|
455
|
-
*/
|
|
456
|
-
async OnAnalyzeRequested(event) {
|
|
457
|
-
if (!this.CurrentUser)
|
|
458
|
-
return;
|
|
459
|
-
try {
|
|
460
|
-
const result = await this.analyzeService.StartAnalysisConversation({
|
|
461
|
-
snapshot: event.snapshot,
|
|
462
|
-
currentUser: this.CurrentUser,
|
|
463
|
-
environmentId: this.EnvironmentId,
|
|
464
|
-
});
|
|
465
|
-
await this.navigationService.OpenNavItemByName('Conversations', { conversationId: result.conversationId }, undefined, { queryParams: { conversationId: result.conversationId } });
|
|
466
|
-
}
|
|
467
|
-
catch (error) {
|
|
468
|
-
const message = error instanceof Error ? error.message : 'Failed to start analysis conversation';
|
|
469
|
-
MJNotificationService.Instance.CreateSimpleNotification(message, 'error', 5000);
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
/** @deprecated Use {@link OnAnalyzeRequested}. */
|
|
473
|
-
async onAnalyzeRequested(event) {
|
|
474
|
-
return this.OnAnalyzeRequested(event);
|
|
475
|
-
}
|
|
476
|
-
/**
|
|
477
|
-
* Get the environment ID from configuration or use default
|
|
478
|
-
*/
|
|
479
|
-
get EnvironmentId() {
|
|
480
|
-
return this.Data?.Configuration?.environmentId || MJEnvironmentEntityExtended.DefaultEnvironmentID;
|
|
481
|
-
}
|
|
482
|
-
/** @deprecated Use {@link EnvironmentId}. */
|
|
483
|
-
get environmentId() {
|
|
484
|
-
return this.EnvironmentId;
|
|
485
|
-
}
|
|
486
|
-
/**
|
|
487
|
-
* Get the display name for chat collections
|
|
488
|
-
*/
|
|
489
35
|
async GetResourceDisplayName(data) {
|
|
490
|
-
return '
|
|
491
|
-
}
|
|
492
|
-
/**
|
|
493
|
-
* Get the icon class for chat collections
|
|
494
|
-
*/
|
|
495
|
-
async GetResourceIconClass(data) {
|
|
496
|
-
return 'fa-solid fa-folder-open';
|
|
497
|
-
}
|
|
498
|
-
// Resize handling
|
|
499
|
-
setupResizeListeners() {
|
|
500
|
-
this.boundOnResizeMove = this.onResizeMove.bind(this);
|
|
501
|
-
this.boundOnResizeEnd = this.onResizeEnd.bind(this);
|
|
502
|
-
}
|
|
503
|
-
removeResizeListeners() {
|
|
504
|
-
window.removeEventListener('mousemove', this.boundOnResizeMove);
|
|
505
|
-
window.removeEventListener('mouseup', this.boundOnResizeEnd);
|
|
506
|
-
}
|
|
507
|
-
boundOnResizeMove = () => { };
|
|
508
|
-
boundOnResizeEnd = () => { };
|
|
509
|
-
OnResizeStart(event) {
|
|
510
|
-
this.isResizing = true;
|
|
511
|
-
this.resizeStartX = event.clientX;
|
|
512
|
-
this.resizeStartWidth = this.ArtifactPanelWidth;
|
|
513
|
-
window.addEventListener('mousemove', this.boundOnResizeMove);
|
|
514
|
-
window.addEventListener('mouseup', this.boundOnResizeEnd);
|
|
515
|
-
event.preventDefault();
|
|
516
|
-
document.body.style.cursor = 'col-resize';
|
|
517
|
-
document.body.style.userSelect = 'none';
|
|
518
|
-
}
|
|
519
|
-
/** @deprecated Use {@link OnResizeStart}. */
|
|
520
|
-
onResizeStart(event) {
|
|
521
|
-
return this.OnResizeStart(event);
|
|
522
|
-
}
|
|
523
|
-
onResizeMove(event) {
|
|
524
|
-
if (!this.isResizing)
|
|
525
|
-
return;
|
|
526
|
-
const container = document.querySelector('.chat-collections-container');
|
|
527
|
-
if (!container)
|
|
528
|
-
return;
|
|
529
|
-
const containerWidth = container.offsetWidth;
|
|
530
|
-
const deltaX = event.clientX - this.resizeStartX;
|
|
531
|
-
const deltaPercent = (deltaX / containerWidth) * -100; // Negative because we're pulling from the right
|
|
532
|
-
let newWidth = this.resizeStartWidth + deltaPercent;
|
|
533
|
-
// Constrain between 20% and 80%
|
|
534
|
-
newWidth = Math.max(20, Math.min(80, newWidth));
|
|
535
|
-
this.ArtifactPanelWidth = newWidth;
|
|
36
|
+
return data?.Name || 'Library';
|
|
536
37
|
}
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
window.removeEventListener('mousemove', this.boundOnResizeMove);
|
|
540
|
-
window.removeEventListener('mouseup', this.boundOnResizeEnd);
|
|
541
|
-
document.body.style.cursor = '';
|
|
542
|
-
document.body.style.userSelect = '';
|
|
38
|
+
async GetResourceIconClass(_data) {
|
|
39
|
+
return 'fa-solid fa-book-open';
|
|
543
40
|
}
|
|
544
|
-
static ɵfac =
|
|
545
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ChatCollectionsResource, selectors: [["mj-chat-collections-resource"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
546
|
-
i0.ɵɵ
|
|
547
|
-
i0.ɵɵconditionalCreate(2, ChatCollectionsResource_Conditional_2_Template, 1, 2, "mj-collections-full-view", 2);
|
|
548
|
-
i0.ɵɵelementEnd();
|
|
549
|
-
i0.ɵɵconditionalCreate(3, ChatCollectionsResource_Conditional_3_Template, 3, 15);
|
|
550
|
-
i0.ɵɵelementEnd();
|
|
41
|
+
static ɵfac = function ChatCollectionsResource_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ChatCollectionsResource)(); };
|
|
42
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ChatCollectionsResource, selectors: [["mj-chat-collections-resource"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["workspace", ""], [3, "Provider", "CurrentUser", "EnvironmentId", "InitialMode", "InitialSection"], [3, "StateChange", "HostNavigate", "LoadComplete", "Provider", "CurrentUser", "EnvironmentId", "InitialMode", "InitialSection"]], template: function ChatCollectionsResource_Template(rf, ctx) { if (rf & 1) {
|
|
43
|
+
i0.ɵɵconditionalCreate(0, ChatCollectionsResource_Conditional_0_Template, 2, 5, "mj-library-workspace", 1);
|
|
551
44
|
} if (rf & 2) {
|
|
552
|
-
i0.ɵɵ
|
|
553
|
-
|
|
554
|
-
i0.ɵɵadvance();
|
|
555
|
-
i0.ɵɵconditional(ctx.currentUser ? 2 : -1);
|
|
556
|
-
i0.ɵɵadvance();
|
|
557
|
-
i0.ɵɵconditional(ctx.isArtifactPanelOpen && ctx.activeArtifactId ? 3 : -1);
|
|
558
|
-
} }, dependencies: [i1.CollectionsFullViewComponent, i2.ArtifactViewerPanelComponent], styles: ["\n /* :host doesn't work with ViewEncapsulation.None \u2014 use the element selector */\n mj-chat-collections-resource {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n }\n\n .chat-collections-container {\n display: flex;\n width: 100%;\n height: 100%;\n flex: 1;\n overflow: hidden;\n position: relative; /* Required for absolute positioning of maximized panel */\n }\n\n .collections-main {\n flex: 1;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n\n .collections-main.with-artifact-panel {\n /* When artifact panel is open, main area shrinks */\n }\n\n .artifact-panel-resize-handle {\n width: 8px;\n cursor: col-resize;\n background: transparent;\n transition: background 150ms ease;\n flex-shrink: 0;\n }\n\n .artifact-panel-resize-handle:hover {\n background: var(--mj-brand-primary);\n }\n\n .artifact-panel-resize-handle:active {\n background: var(--mj-brand-primary-hover);\n }\n\n .artifact-panel {\n border-left: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-card);\n transition: width 0.2s ease;\n }\n\n .artifact-panel.maximized {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n width: 100% !important;\n z-index: 100;\n }\n "], encapsulation: 2 });
|
|
45
|
+
i0.ɵɵconditional(ctx.CurrentUser ? 0 : -1);
|
|
46
|
+
} }, dependencies: [i1.LibraryWorkspaceComponent], styles: ["[_nghost-%COMP%] {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 0;\n min-width: 0;\n }"] });
|
|
559
47
|
};
|
|
560
48
|
ChatCollectionsResource = __decorate([
|
|
561
49
|
RegisterClass(BaseResourceComponent, 'ChatCollectionsResource')
|
|
@@ -564,48 +52,20 @@ export { ChatCollectionsResource };
|
|
|
564
52
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ChatCollectionsResource, [{
|
|
565
53
|
type: Component,
|
|
566
54
|
args: [{ standalone: false, selector: 'mj-chat-collections-resource', template: `
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
(mousedown)="onResizeStart($event)"></div>
|
|
584
|
-
}
|
|
585
|
-
<div class="artifact-panel"
|
|
586
|
-
[style.width.%]="artifactPanelWidth"
|
|
587
|
-
[class.maximized]="isArtifactPanelMaximized">
|
|
588
|
-
<mj-artifact-viewer-panel
|
|
589
|
-
[artifactId]="activeArtifactId"
|
|
590
|
-
[currentUser]="currentUser"
|
|
591
|
-
[environmentId]="environmentId"
|
|
592
|
-
[versionNumber]="activeVersionNumber ?? undefined"
|
|
593
|
-
[showSaveToCollection]="false"
|
|
594
|
-
[viewContext]="'collection'"
|
|
595
|
-
[contextCollectionId]="activeCollectionId ?? undefined"
|
|
596
|
-
[canShare]="canShareActiveArtifact"
|
|
597
|
-
[canEdit]="canEditActiveArtifact"
|
|
598
|
-
[isMaximized]="isArtifactPanelMaximized"
|
|
599
|
-
(closed)="closeArtifactPanel()"
|
|
600
|
-
(maximizeToggled)="toggleMaximizeArtifactPanel()"
|
|
601
|
-
(navigateToLink)="onNavigateToLink($event)"
|
|
602
|
-
(openEntityRecord)="onOpenEntityRecord($event)"
|
|
603
|
-
(analyzeRequested)="onAnalyzeRequested($event)">
|
|
604
|
-
</mj-artifact-viewer-panel>
|
|
605
|
-
</div>
|
|
606
|
-
}
|
|
607
|
-
</div>
|
|
608
|
-
`, encapsulation: ViewEncapsulation.None, styles: ["\n /* :host doesn't work with ViewEncapsulation.None \u2014 use the element selector */\n mj-chat-collections-resource {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n }\n\n .chat-collections-container {\n display: flex;\n width: 100%;\n height: 100%;\n flex: 1;\n overflow: hidden;\n position: relative; /* Required for absolute positioning of maximized panel */\n }\n\n .collections-main {\n flex: 1;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n min-width: 0;\n }\n\n .collections-main.with-artifact-panel {\n /* When artifact panel is open, main area shrinks */\n }\n\n .artifact-panel-resize-handle {\n width: 8px;\n cursor: col-resize;\n background: transparent;\n transition: background 150ms ease;\n flex-shrink: 0;\n }\n\n .artifact-panel-resize-handle:hover {\n background: var(--mj-brand-primary);\n }\n\n .artifact-panel-resize-handle:active {\n background: var(--mj-brand-primary-hover);\n }\n\n .artifact-panel {\n border-left: 1px solid var(--mj-border-default);\n background: var(--mj-bg-surface-card);\n transition: width 0.2s ease;\n }\n\n .artifact-panel.maximized {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n width: 100% !important;\n z-index: 100;\n }\n "] }]
|
|
609
|
-
}], null, null); })();
|
|
610
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ChatCollectionsResource, { className: "ChatCollectionsResource", filePath: "src/lib/resource-wrappers/chat-collections-resource.component.ts", lineNumber: 126 }); })();
|
|
55
|
+
@if (CurrentUser) {
|
|
56
|
+
<mj-library-workspace
|
|
57
|
+
#workspace
|
|
58
|
+
[Provider]="ProviderToUse"
|
|
59
|
+
[CurrentUser]="CurrentUser"
|
|
60
|
+
[EnvironmentId]="EnvironmentId"
|
|
61
|
+
[InitialMode]="DefaultSurfaceMode"
|
|
62
|
+
[InitialSection]="DefaultNavigatorSection"
|
|
63
|
+
(StateChange)="OnWorkspaceStateChange($event)"
|
|
64
|
+
(HostNavigate)="OnHostNavigate($event)"
|
|
65
|
+
(LoadComplete)="OnWorkspaceLoadComplete()"
|
|
66
|
+
></mj-library-workspace>
|
|
67
|
+
}
|
|
68
|
+
`, styles: ["\n :host {\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n min-height: 0;\n min-width: 0;\n }\n "] }]
|
|
69
|
+
}], () => [], null); })();
|
|
70
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ChatCollectionsResource, { className: "ChatCollectionsResource", filePath: "src/lib/resource-wrappers/chat-collections-resource.component.ts", lineNumber: 46 }); })();
|
|
611
71
|
//# sourceMappingURL=chat-collections-resource.component.js.map
|