@memberjunction/ng-explorer-core 5.51.3 → 5.51.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/resource-wrappers/artifact-resource.component.d.ts +16 -1
- package/dist/lib/resource-wrappers/artifact-resource.component.d.ts.map +1 -1
- package/dist/lib/resource-wrappers/artifact-resource.component.js +27 -4
- package/dist/lib/resource-wrappers/artifact-resource.component.js.map +1 -1
- package/dist/lib/shell/shell.component.d.ts +2 -0
- package/dist/lib/shell/shell.component.d.ts.map +1 -1
- package/dist/lib/shell/shell.component.js +9 -2
- package/dist/lib/shell/shell.component.js.map +1 -1
- package/package.json +51 -51
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { DataSnapshot, UserInfo } from '@memberjunction/core';
|
|
1
|
+
import { CompositeKey, DataSnapshot, UserInfo } from '@memberjunction/core';
|
|
2
2
|
import { BaseResourceComponent } from '@memberjunction/ng-shared';
|
|
3
3
|
import { ResourceData } from '@memberjunction/core-entities';
|
|
4
|
+
import { NavigationRequest } from '@memberjunction/ng-artifacts';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
/**
|
|
6
7
|
* Artifact Resource - displays versioned content artifacts
|
|
@@ -32,6 +33,20 @@ export declare class ArtifactResource extends BaseResourceComponent {
|
|
|
32
33
|
artifactId: string;
|
|
33
34
|
snapshot: DataSnapshot;
|
|
34
35
|
}): Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* Opens an entity record requested by the artifact, e.g. an interactive component's
|
|
38
|
+
* OpenEntityRecord callback. Without this, record links in a standalone artifact tab do nothing.
|
|
39
|
+
*/
|
|
40
|
+
onOpenEntityRecord(event: {
|
|
41
|
+
entityName: string;
|
|
42
|
+
compositeKey: CompositeKey;
|
|
43
|
+
}): void;
|
|
44
|
+
/**
|
|
45
|
+
* Handles app-level navigation requested by an artifact viewer plugin.
|
|
46
|
+
* Opens the target nav item (switching apps if needed) then applies query params to the URL.
|
|
47
|
+
*/
|
|
48
|
+
onNavigationRequest(event: NavigationRequest): Promise<void>;
|
|
49
|
+
private resolveAppId;
|
|
35
50
|
GetResourceDisplayName(data: ResourceData): Promise<string>;
|
|
36
51
|
GetResourceIconClass(data: ResourceData): Promise<string>;
|
|
37
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArtifactResource, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact-resource.component.d.ts","sourceRoot":"","sources":["../../../src/lib/resource-wrappers/artifact-resource.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAY,QAAQ,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"artifact-resource.component.d.ts","sourceRoot":"","sources":["../../../src/lib/resource-wrappers/artifact-resource.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAY,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEtF,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,YAAY,EAA+B,MAAM,+BAA+B,CAAC;AAC1F,OAAO,EAAuD,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;;AAItH;;;;GAIG;AACH,qBAgCa,gBAAiB,SAAQ,qBAAqB;IACzD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAkC;IACjE,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAuC;IAEpE;;;;OAIG;IACG,oBAAoB,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAQhF,WAAW,EAAE,QAAQ,GAAG,IAAI,CAAQ;IACpC,UAAU,EAAE,MAAM,CAAM;IACxB,aAAa,EAAE,MAAM,CAAM;IAElC,QAAQ;IAoBR;;;;OAIG;IACG,kBAAkB,CAAC,KAAK,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,YAAY,CAAA;KAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAoB9F;;;OAGG;IACH,kBAAkB,CAAC,KAAK,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,YAAY,CAAA;KAAE,GAAG,IAAI;IAInF;;;OAGG;IACG,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAOlE,OAAO,CAAC,YAAY;IAKd,sBAAsB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;IAe3D,oBAAoB,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC;yCAzGpD,gBAAgB;2CAAhB,gBAAgB;CA4G5B"}
|
|
@@ -15,7 +15,7 @@ import * as i1 from "@memberjunction/ng-artifacts";
|
|
|
15
15
|
function ArtifactResource_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
16
16
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
17
17
|
i0.ɵɵelementStart(0, "mj-artifact-viewer-panel", 2);
|
|
18
|
-
i0.ɵɵlistener("analyzeRequested", function ArtifactResource_Conditional_1_Template_mj_artifact_viewer_panel_analyzeRequested_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onAnalyzeRequested($event)); })("applyFormRequested", function ArtifactResource_Conditional_1_Template_mj_artifact_viewer_panel_applyFormRequested_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onApplyFormRequested($event)); });
|
|
18
|
+
i0.ɵɵlistener("analyzeRequested", function ArtifactResource_Conditional_1_Template_mj_artifact_viewer_panel_analyzeRequested_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onAnalyzeRequested($event)); })("applyFormRequested", function ArtifactResource_Conditional_1_Template_mj_artifact_viewer_panel_applyFormRequested_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onApplyFormRequested($event)); })("openEntityRecord", function ArtifactResource_Conditional_1_Template_mj_artifact_viewer_panel_openEntityRecord_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onOpenEntityRecord($event)); })("navigationRequest", function ArtifactResource_Conditional_1_Template_mj_artifact_viewer_panel_navigationRequest_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onNavigationRequest($event)); });
|
|
19
19
|
i0.ɵɵelementEnd();
|
|
20
20
|
} if (rf & 2) {
|
|
21
21
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -80,6 +80,27 @@ let ArtifactResource = class ArtifactResource extends BaseResourceComponent {
|
|
|
80
80
|
MJNotificationService.Instance.CreateSimpleNotification(message, 'error', 5000);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
+
/**
|
|
84
|
+
* Opens an entity record requested by the artifact, e.g. an interactive component's
|
|
85
|
+
* OpenEntityRecord callback. Without this, record links in a standalone artifact tab do nothing.
|
|
86
|
+
*/
|
|
87
|
+
onOpenEntityRecord(event) {
|
|
88
|
+
this.navigationService.OpenEntityRecord(event.entityName, event.compositeKey);
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Handles app-level navigation requested by an artifact viewer plugin.
|
|
92
|
+
* Opens the target nav item (switching apps if needed) then applies query params to the URL.
|
|
93
|
+
*/
|
|
94
|
+
async onNavigationRequest(event) {
|
|
95
|
+
const appId = event.appName ? this.resolveAppId(event.appName) : undefined;
|
|
96
|
+
await this.navigationService.OpenNavItemByName(event.navItemName, undefined, appId, {
|
|
97
|
+
queryParams: event.queryParams
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
resolveAppId(appName) {
|
|
101
|
+
const app = this.ProviderToUse.Applications.find(a => a.Name.toLowerCase() === appName.toLowerCase());
|
|
102
|
+
return app?.ID;
|
|
103
|
+
}
|
|
83
104
|
async GetResourceDisplayName(data) {
|
|
84
105
|
// Try to load artifact name from database
|
|
85
106
|
if (data.ResourceRecordID) {
|
|
@@ -99,7 +120,7 @@ let ArtifactResource = class ArtifactResource extends BaseResourceComponent {
|
|
|
99
120
|
return 'fa-solid fa-file-code';
|
|
100
121
|
}
|
|
101
122
|
static ɵfac = /*@__PURE__*/ (() => { let ɵArtifactResource_BaseFactory; return function ArtifactResource_Factory(__ngFactoryType__) { return (ɵArtifactResource_BaseFactory || (ɵArtifactResource_BaseFactory = i0.ɵɵgetInheritedFactory(ArtifactResource)))(__ngFactoryType__ || ArtifactResource); }; })();
|
|
102
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ArtifactResource, selectors: [["mj-artifact-resource"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 1, consts: [[1, "artifact-container"], [3, "artifactId", "currentUser", "environmentId", "showSaveToCollection", "canShare", "canEdit"], [3, "analyzeRequested", "applyFormRequested", "artifactId", "currentUser", "environmentId", "showSaveToCollection", "canShare", "canEdit"]], template: function ArtifactResource_Template(rf, ctx) { if (rf & 1) {
|
|
123
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ArtifactResource, selectors: [["mj-artifact-resource"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 1, consts: [[1, "artifact-container"], [3, "artifactId", "currentUser", "environmentId", "showSaveToCollection", "canShare", "canEdit"], [3, "analyzeRequested", "applyFormRequested", "openEntityRecord", "navigationRequest", "artifactId", "currentUser", "environmentId", "showSaveToCollection", "canShare", "canEdit"]], template: function ArtifactResource_Template(rf, ctx) { if (rf & 1) {
|
|
103
124
|
i0.ɵɵelementStart(0, "div", 0);
|
|
104
125
|
i0.ɵɵconditionalCreate(1, ArtifactResource_Conditional_1_Template, 1, 6, "mj-artifact-viewer-panel", 1);
|
|
105
126
|
i0.ɵɵelementEnd();
|
|
@@ -125,11 +146,13 @@ export { ArtifactResource };
|
|
|
125
146
|
[canShare]="true"
|
|
126
147
|
[canEdit]="true"
|
|
127
148
|
(analyzeRequested)="onAnalyzeRequested($event)"
|
|
128
|
-
(applyFormRequested)="onApplyFormRequested($event)"
|
|
149
|
+
(applyFormRequested)="onApplyFormRequested($event)"
|
|
150
|
+
(openEntityRecord)="onOpenEntityRecord($event)"
|
|
151
|
+
(navigationRequest)="onNavigationRequest($event)">
|
|
129
152
|
</mj-artifact-viewer-panel>
|
|
130
153
|
}
|
|
131
154
|
</div>
|
|
132
155
|
`, encapsulation: ViewEncapsulation.None, styles: ["\n .artifact-container {\n display: flex;\n width: 100%;\n height: 100%;\n overflow: hidden;\n }\n "] }]
|
|
133
156
|
}], null, null); })();
|
|
134
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ArtifactResource, { className: "ArtifactResource", filePath: "src/lib/resource-wrappers/artifact-resource.component.ts", lineNumber:
|
|
157
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ArtifactResource, { className: "ArtifactResource", filePath: "src/lib/resource-wrappers/artifact-resource.component.ts", lineNumber: 47 }); })();
|
|
135
158
|
//# sourceMappingURL=artifact-resource.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact-resource.component.js","sourceRoot":"","sources":["../../../src/lib/resource-wrappers/artifact-resource.component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAErE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAgB,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,2BAA2B,
|
|
1
|
+
{"version":3,"file":"artifact-resource.component.js","sourceRoot":"","sources":["../../../src/lib/resource-wrappers/artifact-resource.component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAErE,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAgB,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAC1F,OAAO,EAAE,sBAAsB,EAAE,2BAA2B,EAAqB,MAAM,8BAA8B,CAAC;AAEtH,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;;;;;IAcjE,mDAUoD;IAAlD,AADA,AADA,AADA,kOAAoB,iCAA0B,KAAC,yNACzB,mCAA4B,KAAC,qNAC/B,iCAA0B,KAAC,uNAC1B,kCAA2B,KAAC;IACnD,iBAA2B;;;IALzB,AADA,AADA,AADA,AADA,AADA,8CAAyB,mCACE,uCACI,8BACF,kBACZ,iBACD;;AAlB1B;;;;GAIG;AAiCI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,qBAAqB;IACxC,cAAc,GAAG,MAAM,CAAC,sBAAsB,CAAC,CAAC;IAChD,YAAY,GAAG,MAAM,CAAC,2BAA2B,CAAC,CAAC;IAEpE;;;;OAIG;IACH,KAAK,CAAC,oBAAoB,CAAC,KAA4C;QACrE,MAAM,IAAI,CAAC,YAAY,CAAC,eAAe,CACrC,KAAK,CAAC,IAAqB,EAC3B,KAAK,CAAC,UAAU,EAChB,IAAI,CAAC,aAAa,CACnB,CAAC;IACJ,CAAC;IAEM,WAAW,GAAoB,IAAI,CAAC;IACpC,UAAU,GAAW,EAAE,CAAC;IACxB,aAAa,G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AAc,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAChE,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,KAAK,CAAC,8BAA8B,EAAE,KAAK,CAAC,CAAC;YACvD,CAAC;QACH,CAAC;QACD,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,KAAK,CAAC,oBAAoB,CAAC,IAAkB;QAC3C,OAAO,uBAAuB,CAAC;IACjC,CAAC;6OA3GU,gBAAgB,yBAAhB,gBAAgB;6DAAhB,gBAAgB;YA3BzB,8BAAgC;YAC9B,uGAAiC;YAcnC,iBAAM;;YAdJ,cAaC;YAbD,4DAaC;;;AAaM,gBAAgB;IAhC5B,aAAa,CAAC,qBAAqB,EAAE,kBAAkB,CAAC;GAgC5C,gBAAgB,CA4G5B;;iFA5GY,gBAAgB;cA/B5B,SAAS;6BACI,KAAK,YACP,sBAAsB,YACtB;;;;;;;;;;;;;;;;;KAiBP,iBASY,iBAAiB,CAAC,IAAI;;kFAE1B,gBAAgB","sourcesContent":["import { Component, ViewEncapsulation, inject } from '@angular/core';\nimport { CompositeKey, DataSnapshot, Metadata, UserInfo } from '@memberjunction/core';\nimport { RegisterClass } from '@memberjunction/global';\nimport { BaseResourceComponent } from '@memberjunction/ng-shared';\nimport { ResourceData, MJEnvironmentEntityExtended } from '@memberjunction/core-entities';\nimport { AnalyzeArtifactService, InteractiveFormApplyService, NavigationRequest } from '@memberjunction/ng-artifacts';\nimport type { ComponentSpec } from '@memberjunction/interactive-component-types';\nimport { MJNotificationService } from '@memberjunction/ng-notifications';\n\n/**\n * Artifact Resource - displays versioned content artifacts\n * Wraps the artifact-viewer-panel component for tab-based display\n * Supports reports, dashboards, forms, and other artifact types\n */\n@RegisterClass(BaseResourceComponent, 'ArtifactResource')\n@Component({\n standalone: false,\n selector: 'mj-artifact-resource',\n template: `\n <div class=\"artifact-container\">\n @if (currentUser && artifactId) {\n <mj-artifact-viewer-panel\n [artifactId]=\"artifactId\"\n [currentUser]=\"currentUser\"\n [environmentId]=\"environmentId\"\n [showSaveToCollection]=\"true\"\n [canShare]=\"true\"\n [canEdit]=\"true\"\n (analyzeRequested)=\"onAnalyzeRequested($event)\"\n (applyFormRequested)=\"onApplyFormRequested($event)\"\n (openEntityRecord)=\"onOpenEntityRecord($event)\"\n (navigationRequest)=\"onNavigationRequest($event)\">\n </mj-artifact-viewer-panel>\n }\n </div>\n `,\n styles: [`\n .artifact-container {\n display: flex;\n width: 100%;\n height: 100%;\n overflow: hidden;\n }\n `],\n encapsulation: ViewEncapsulation.None\n})\nexport class ArtifactResource extends BaseResourceComponent {\n private readonly analyzeService = inject(AnalyzeArtifactService);\n private readonly applyService = inject(InteractiveFormApplyService);\n\n /**\n * Apply-to-my-form handler — see InteractiveFormApplyService.\n * Confirms with the user, then routes to Create or Modify depending on\n * whether an Active override already exists for this entity+user.\n */\n async onApplyFormRequested(event: { spec: unknown; entityName: string }): Promise<void> {\n await this.applyService.ConfirmAndApply(\n event.spec as ComponentSpec,\n event.entityName,\n this.ProviderToUse,\n );\n }\n\n public currentUser: UserInfo | null = null;\n public artifactId: string = '';\n public environmentId: string = '';\n\n ngOnInit() {\n super.ngOnInit();\n const md = this.ProviderToUse;\n this.currentUser = md.CurrentUser;\n\n // Get artifact ID from resource data\n if (this.Data && this.Data.ResourceRecordID) {\n this.artifactId = this.Data.ResourceRecordID;\n }\n\n // Environment ID — use the configured environment if present, otherwise\n // fall back to the default environment. Must be a valid UUID since\n // downstream saves (e.g. AnalyzeArtifactService creating artifacts)\n // require a non-empty EnvironmentID.\n this.environmentId = (this.Data?.Configuration?.['environmentId'] as string | undefined)\n || MJEnvironmentEntityExtended.DefaultEnvironmentID;\n\n setTimeout(() => this.NotifyLoadComplete(), 100);\n }\n\n /**\n * Handler for the Analyze button on the artifact viewer panel.\n * Creates a Data Snapshot artifact from the live viewer state, opens a\n * new conversation with it attached as input, and routes the user there.\n */\n async onAnalyzeRequested(event: { artifactId: string; snapshot: DataSnapshot }): Promise<void> {\n if (!this.currentUser) return;\n\n try {\n const result = await this.analyzeService.StartAnalysisConversation({\n snapshot: event.snapshot,\n currentUser: this.currentUser,\n environmentId: this.environmentId,\n });\n\n // Route to the new conversation in the Conversations nav item\n await this.navigationService.OpenNavItemByName('Conversations', {\n conversationId: result.conversationId,\n });\n } catch (error) {\n const message = error instanceof Error ? error.message : 'Failed to start analysis conversation';\n MJNotificationService.Instance.CreateSimpleNotification(message, 'error', 5000);\n }\n }\n\n /**\n * Opens an entity record requested by the artifact, e.g. an interactive component's\n * OpenEntityRecord callback. Without this, record links in a standalone artifact tab do nothing.\n */\n onOpenEntityRecord(event: { entityName: string; compositeKey: CompositeKey }): void {\n this.navigationService.OpenEntityRecord(event.entityName, event.compositeKey);\n }\n\n /**\n * Handles app-level navigation requested by an artifact viewer plugin.\n * Opens the target nav item (switching apps if needed) then applies query params to the URL.\n */\n async onNavigationRequest(event: NavigationRequest): Promise<void> {\n const appId = event.appName ? this.resolveAppId(event.appName) : undefined;\n await this.navigationService.OpenNavItemByName(event.navItemName, undefined, appId, {\n queryParams: event.queryParams\n });\n }\n\n private resolveAppId(appName: string): string | undefined {\n const app = this.ProviderToUse.Applications.find(a => a.Name.toLowerCase() === appName.toLowerCase());\n return app?.ID;\n }\n\n async GetResourceDisplayName(data: ResourceData): Promise<string> {\n // Try to load artifact name from database\n if (data.ResourceRecordID) {\n try {\n const md = this.ProviderToUse;\n const artifact = await md.GetEntityObject<any>('MJ: Conversation Artifacts');\n await artifact.Load(data.ResourceRecordID);\n return artifact.Name || `Artifact - ${data.ResourceRecordID}`;\n } catch (error) {\n console.error('Error loading artifact name:', error);\n }\n }\n return 'Artifact';\n }\n\n async GetResourceIconClass(data: ResourceData): Promise<string> {\n return 'fa-solid fa-file-code';\n }\n}\n"]}
|
|
@@ -187,6 +187,8 @@ export declare class ShellComponent extends BaseAngularComponent implements OnIn
|
|
|
187
187
|
* (and their per-app UUIDsEqual checks) out of the per-CD-cycle hot path.
|
|
188
188
|
*/
|
|
189
189
|
private recomputeNavBarApps;
|
|
190
|
+
/** Warms the React runtime (CDN scripts) after login; see InitializeShell(). Field-injected so the constructor signature is unchanged. */
|
|
191
|
+
private reactAdapter;
|
|
190
192
|
constructor(appManager: ApplicationManager, workspaceManager: WorkspaceStateManager, layoutManager: GoldenLayoutManager, tabService: TabService, navigationService: NavigationService, route: ActivatedRoute, router: Router, authBase: MJAuthBase, cdr: ChangeDetectorRef, userAvatarService: UserAvatarService, userSharingCenterDialogService: UserSharingCenterDialogService, aboutDialogService: AboutDialogService, profileDialogService: ProfileDialogService, viewContainerRef: ViewContainerRef, titleService: TitleService, developerModeService: DeveloperModeService, startupValidationService: StartupValidationService, commandPaletteService: CommandPaletteService, themeService: ThemeService, homePinService: HomeAppPinService, fileOpenService: FileOpenService, feedbackDialogService: FeedbackDialogService, feedbackService: FeedbackService, activityService: ActivityService);
|
|
191
193
|
ngOnInit(): Promise<void>;
|
|
192
194
|
initializeShell(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shell.component.d.ts","sourceRoot":"","sources":["../../../src/lib/shell/shell.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAa,UAAU,
|
|
1
|
+
{"version":3,"file":"shell.component.d.ts","sourceRoot":"","sources":["../../../src/lib/shell/shell.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,SAAS,EAAE,aAAa,EAAE,iBAAiB,EAAE,gBAAgB,EAAa,UAAU,EAAwB,MAAM,eAAe,CAAC;AAE9J,OAAO,EAAE,cAAc,EAAE,MAAM,EAAiB,MAAM,iBAAiB,CAAC;AAGxE,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,UAAU,EAIV,OAAO,EACR,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAY,UAAU,EAAqD,MAAM,sBAA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,kBAAkB;yCAnrGrB,cAAc;2CAAd,cAAc;CA6rG1B"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Component, ViewChild, HostListener } from '@angular/core';
|
|
1
|
+
import { Component, ViewChild, HostListener, inject } from '@angular/core';
|
|
2
|
+
import { AngularAdapterService } from '@memberjunction/ng-react';
|
|
2
3
|
import { NavigationEnd } from '@angular/router';
|
|
3
4
|
import { combineLatest, Subject } from 'rxjs';
|
|
4
5
|
import { filter, takeUntil } from 'rxjs/operators';
|
|
@@ -770,6 +771,8 @@ export class ShellComponent extends BaseAngularComponent {
|
|
|
770
771
|
this.leftOfUserMenuApps = this.appManager.GetNavBarApps('Left of User Menu')
|
|
771
772
|
.filter(app => !(app.HideNavBarIconWhenActive && UUIDsEqual(app.ID, this.activeApp?.ID)));
|
|
772
773
|
}
|
|
774
|
+
/** Warms the React runtime (CDN scripts) after login; see InitializeShell(). Field-injected so the constructor signature is unchanged. */
|
|
775
|
+
reactAdapter = inject(AngularAdapterService);
|
|
773
776
|
constructor(appManager, workspaceManager, layoutManager, tabService, navigationService, route, router, authBase, cdr, userAvatarService, userSharingCenterDialogService, aboutDialogService, profileDialogService, viewContainerRef, titleService, developerModeService, startupValidationService, commandPaletteService, themeService, homePinService, fileOpenService, feedbackDialogService, feedbackService, activityService) {
|
|
774
777
|
super();
|
|
775
778
|
this.appManager = appManager;
|
|
@@ -1085,6 +1088,10 @@ export class ShellComponent extends BaseAngularComponent {
|
|
|
1085
1088
|
// state changes (apps loaded, searchableEntities populated, etc.) to prevent
|
|
1086
1089
|
// NG0100 ExpressionChangedAfterItHasBeenCheckedError in dev mode
|
|
1087
1090
|
this.cdr.detectChanges();
|
|
1091
|
+
// Explorer is a host where users routinely open interactive component artifacts, so warm the
|
|
1092
|
+
// React runtime in the background now that the user is signed in. ArtifactsModule no longer
|
|
1093
|
+
// does this on construction (#4802). Non-blocking; preload() logs and retries on demand.
|
|
1094
|
+
this.reactAdapter.preload();
|
|
1088
1095
|
}
|
|
1089
1096
|
/**
|
|
1090
1097
|
* Handle deep links from URL
|
|
@@ -3568,5 +3575,5 @@ export class ShellComponent extends BaseAngularComponent {
|
|
|
3568
3575
|
type: HostListener,
|
|
3569
3576
|
args: ['document:click']
|
|
3570
3577
|
}] }); })();
|
|
3571
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ShellComponent, { className: "ShellComponent", filePath: "src/lib/shell/shell.component.ts", lineNumber:
|
|
3578
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ShellComponent, { className: "ShellComponent", filePath: "src/lib/shell/shell.component.ts", lineNumber: 72 }); })();
|
|
3572
3579
|
//# sourceMappingURL=shell.component.js.map
|