@memberjunction/ng-artifacts 2.126.1 → 2.128.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/dist/lib/artifacts.module.d.ts +8 -7
- package/dist/lib/artifacts.module.d.ts.map +1 -1
- package/dist/lib/artifacts.module.js +7 -2
- package/dist/lib/artifacts.module.js.map +1 -1
- package/dist/lib/components/artifact-type-plugin-viewer.component.d.ts +2 -1
- package/dist/lib/components/artifact-type-plugin-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/artifact-type-plugin-viewer.component.js +15 -8
- package/dist/lib/components/artifact-type-plugin-viewer.component.js.map +1 -1
- package/dist/lib/components/artifact-viewer-panel.component.d.ts +34 -1
- package/dist/lib/components/artifact-viewer-panel.component.d.ts.map +1 -1
- package/dist/lib/components/artifact-viewer-panel.component.js +154 -58
- package/dist/lib/components/artifact-viewer-panel.component.js.map +1 -1
- package/dist/lib/components/base-artifact-viewer.component.d.ts +47 -3
- package/dist/lib/components/base-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/base-artifact-viewer.component.js +13 -1
- package/dist/lib/components/base-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/code-artifact-viewer.component.d.ts +4 -0
- package/dist/lib/components/plugins/code-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/code-artifact-viewer.component.js +6 -0
- package/dist/lib/components/plugins/code-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/component-artifact-viewer.component.d.ts +21 -0
- package/dist/lib/components/plugins/component-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/component-artifact-viewer.component.js +70 -30
- package/dist/lib/components/plugins/component-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/data-requirements-viewer/data-requirements-viewer.component.d.ts +34 -0
- package/dist/lib/components/plugins/data-requirements-viewer/data-requirements-viewer.component.d.ts.map +1 -0
- package/dist/lib/components/plugins/data-requirements-viewer/data-requirements-viewer.component.js +675 -0
- package/dist/lib/components/plugins/data-requirements-viewer/data-requirements-viewer.component.js.map +1 -0
- package/dist/lib/components/plugins/html-artifact-viewer.component.d.ts +4 -0
- package/dist/lib/components/plugins/html-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/html-artifact-viewer.component.js +6 -0
- package/dist/lib/components/plugins/html-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/json-artifact-viewer.component.d.ts +4 -0
- package/dist/lib/components/plugins/json-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/json-artifact-viewer.component.js +15 -5
- package/dist/lib/components/plugins/json-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/markdown-artifact-viewer.component.d.ts +4 -0
- package/dist/lib/components/plugins/markdown-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/markdown-artifact-viewer.component.js +15 -5
- package/dist/lib/components/plugins/markdown-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/svg-artifact-viewer.component.d.ts +4 -0
- package/dist/lib/components/plugins/svg-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/plugins/svg-artifact-viewer.component.js +6 -0
- package/dist/lib/components/plugins/svg-artifact-viewer.component.js.map +1 -1
- package/package.json +11 -11
|
@@ -9,12 +9,13 @@ import * as i7 from "./components/plugins/markdown-artifact-viewer.component";
|
|
|
9
9
|
import * as i8 from "./components/plugins/html-artifact-viewer.component";
|
|
10
10
|
import * as i9 from "./components/plugins/svg-artifact-viewer.component";
|
|
11
11
|
import * as i10 from "./components/plugins/component-artifact-viewer.component";
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "@angular/
|
|
14
|
-
import * as i13 from "@
|
|
15
|
-
import * as i14 from "@memberjunction/ng-
|
|
16
|
-
import * as i15 from "@memberjunction/ng-
|
|
17
|
-
import * as i16 from "@memberjunction/ng-
|
|
12
|
+
import * as i11 from "./components/plugins/data-requirements-viewer/data-requirements-viewer.component";
|
|
13
|
+
import * as i12 from "@angular/common";
|
|
14
|
+
import * as i13 from "@angular/forms";
|
|
15
|
+
import * as i14 from "@memberjunction/ng-markdown";
|
|
16
|
+
import * as i15 from "@memberjunction/ng-code-editor";
|
|
17
|
+
import * as i16 from "@memberjunction/ng-react";
|
|
18
|
+
import * as i17 from "@memberjunction/ng-notifications";
|
|
18
19
|
/**
|
|
19
20
|
* Module for artifact viewer plugin system.
|
|
20
21
|
* Provides components for viewing different types of artifacts (JSON, Code, Markdown, HTML, SVG, Components).
|
|
@@ -25,7 +26,7 @@ import * as i16 from "@memberjunction/ng-notifications";
|
|
|
25
26
|
export declare class ArtifactsModule {
|
|
26
27
|
constructor();
|
|
27
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArtifactsModule, never>;
|
|
28
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ArtifactsModule, [typeof i1.ArtifactTypePluginViewerComponent, typeof i2.ArtifactViewerPanelComponent, typeof i3.ArtifactVersionHistoryComponent, typeof i4.ArtifactMessageCardComponent, typeof i5.JsonArtifactViewerComponent, typeof i6.CodeArtifactViewerComponent, typeof i7.MarkdownArtifactViewerComponent, typeof i8.HtmlArtifactViewerComponent, typeof i9.SvgArtifactViewerComponent, typeof i10.ComponentArtifactViewerComponent], [typeof
|
|
29
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ArtifactsModule, [typeof i1.ArtifactTypePluginViewerComponent, typeof i2.ArtifactViewerPanelComponent, typeof i3.ArtifactVersionHistoryComponent, typeof i4.ArtifactMessageCardComponent, typeof i5.JsonArtifactViewerComponent, typeof i6.CodeArtifactViewerComponent, typeof i7.MarkdownArtifactViewerComponent, typeof i8.HtmlArtifactViewerComponent, typeof i9.SvgArtifactViewerComponent, typeof i10.ComponentArtifactViewerComponent, typeof i11.DataRequirementsViewerComponent], [typeof i12.CommonModule, typeof i13.FormsModule, typeof i14.MarkdownModule, typeof i15.CodeEditorModule, typeof i16.MJReactModule, typeof i17.MJNotificationsModule], [typeof i1.ArtifactTypePluginViewerComponent, typeof i2.ArtifactViewerPanelComponent, typeof i3.ArtifactVersionHistoryComponent, typeof i4.ArtifactMessageCardComponent, typeof i5.JsonArtifactViewerComponent, typeof i6.CodeArtifactViewerComponent, typeof i7.MarkdownArtifactViewerComponent, typeof i8.HtmlArtifactViewerComponent, typeof i9.SvgArtifactViewerComponent, typeof i10.ComponentArtifactViewerComponent]>;
|
|
29
30
|
static ɵinj: i0.ɵɵInjectorDeclaration<ArtifactsModule>;
|
|
30
31
|
}
|
|
31
32
|
//# sourceMappingURL=artifacts.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.module.d.ts","sourceRoot":"","sources":["../../src/lib/artifacts.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"artifacts.module.d.ts","sourceRoot":"","sources":["../../src/lib/artifacts.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAyBA;;;;;;GAMG;AACH,qBAkDa,eAAe;;yCAAf,eAAe;0CAAf,eAAe;0CAAf,eAAe;CAa3B"}
|
|
@@ -13,6 +13,7 @@ import { MarkdownArtifactViewerComponent } from './components/plugins/markdown-a
|
|
|
13
13
|
import { HtmlArtifactViewerComponent } from './components/plugins/html-artifact-viewer.component';
|
|
14
14
|
import { SvgArtifactViewerComponent } from './components/plugins/svg-artifact-viewer.component';
|
|
15
15
|
import { ComponentArtifactViewerComponent } from './components/plugins/component-artifact-viewer.component';
|
|
16
|
+
import { DataRequirementsViewerComponent } from './components/plugins/data-requirements-viewer/data-requirements-viewer.component';
|
|
16
17
|
// Import artifact type plugin viewer component
|
|
17
18
|
import { ArtifactTypePluginViewerComponent } from './components/artifact-type-plugin-viewer.component';
|
|
18
19
|
import { ArtifactVersionHistoryComponent } from './components/artifact-version-history.component';
|
|
@@ -64,7 +65,9 @@ export class ArtifactsModule {
|
|
|
64
65
|
MarkdownArtifactViewerComponent,
|
|
65
66
|
HtmlArtifactViewerComponent,
|
|
66
67
|
SvgArtifactViewerComponent,
|
|
67
|
-
ComponentArtifactViewerComponent
|
|
68
|
+
ComponentArtifactViewerComponent,
|
|
69
|
+
// Custom tab components (used by plugins via dynamic component tabs)
|
|
70
|
+
DataRequirementsViewerComponent
|
|
68
71
|
],
|
|
69
72
|
imports: [
|
|
70
73
|
CommonModule,
|
|
@@ -107,7 +110,9 @@ export class ArtifactsModule {
|
|
|
107
110
|
MarkdownArtifactViewerComponent,
|
|
108
111
|
HtmlArtifactViewerComponent,
|
|
109
112
|
SvgArtifactViewerComponent,
|
|
110
|
-
ComponentArtifactViewerComponent
|
|
113
|
+
ComponentArtifactViewerComponent,
|
|
114
|
+
// Custom tab components (used by plugins via dynamic component tabs)
|
|
115
|
+
DataRequirementsViewerComponent], imports: [CommonModule,
|
|
111
116
|
FormsModule,
|
|
112
117
|
MarkdownModule,
|
|
113
118
|
CodeEditorModule,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifacts.module.js","sourceRoot":"","sources":["../../src/lib/artifacts.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7D,oBAAoB;AACpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,+EAA+E;AAC/E,OAAO,EAAE,2BAA2B,EAAE,MAAM,qDAAqD,CAAC;AAClG,OAAO,EAAE,2BAA2B,EAAE,MAAM,qDAAqD,CAAC;AAClG,OAAO,EAAE,+BAA+B,EAAE,MAAM,yDAAyD,CAAC;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QAEhC,qEAAqE;QACrE,+BAA+B,aAG/B,YAAY;QACZ,WAAW;QACX,cAAc;QACd,gBAAgB;QAChB,aAAa;QACb,qBAAqB;QAGrB,qCAAqC;QACrC,iCAAiC;QAEjC,uCAAuC;QACvC,4BAA4B;QAC5B,+BAA+B;QAC/B,4BAA4B;QAE5B,2BAA2B;QAC3B,2BAA2B;QAC3B,2BAA2B;QAC3B,+BAA+B;QAC/B,2BAA2B;QAC3B,0BAA0B;QAC1B,gCAAgC"}
|
|
@@ -18,6 +18,7 @@ export declare class ArtifactTypePluginViewerComponent implements OnInit, OnChan
|
|
|
18
18
|
entityName: string;
|
|
19
19
|
compositeKey: CompositeKey;
|
|
20
20
|
}>;
|
|
21
|
+
pluginLoaded: EventEmitter<void>;
|
|
21
22
|
viewerContainer: ViewContainerRef;
|
|
22
23
|
isLoading: boolean;
|
|
23
24
|
error: string | null;
|
|
@@ -58,6 +59,6 @@ export declare class ArtifactTypePluginViewerComponent implements OnInit, OnChan
|
|
|
58
59
|
*/
|
|
59
60
|
private destroyCurrentViewer;
|
|
60
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArtifactTypePluginViewerComponent, never>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArtifactTypePluginViewerComponent, "mj-artifact-type-plugin-viewer", never, { "artifactVersion": { "alias": "artifactVersion"; "required": false; }; "artifactTypeName": { "alias": "artifactTypeName"; "required": false; }; "contentType": { "alias": "contentType"; "required": false; }; "height": { "alias": "height"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; }, { "openEntityRecord": "openEntityRecord"; }, never, never, false, never>;
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArtifactTypePluginViewerComponent, "mj-artifact-type-plugin-viewer", never, { "artifactVersion": { "alias": "artifactVersion"; "required": false; }; "artifactTypeName": { "alias": "artifactTypeName"; "required": false; }; "contentType": { "alias": "contentType"; "required": false; }; "height": { "alias": "height"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "cssClass": { "alias": "cssClass"; "required": false; }; }, { "openEntityRecord": "openEntityRecord"; "pluginLoaded": "pluginLoaded"; }, never, never, false, never>;
|
|
62
63
|
}
|
|
63
64
|
//# sourceMappingURL=artifact-type-plugin-viewer.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact-type-plugin-viewer.component.d.ts","sourceRoot":"","sources":["../../../src/lib/components/artifact-type-plugin-viewer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,YAAY,EACZ,MAAM,EACN,SAAS,EACT,aAAa,EAEb,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,qBAAqB,EAA8C,MAAM,+BAA+B,CAAC;AAClH,OAAO,EAA+B,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGjF,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;;AAErF;;;GAGG;AACH,qBAwDa,iCAAkC,YAAW,MAAM,EAAE,SAAS;IAChE,eAAe,EAAG,qBAAqB,CAAC;IACxC,gBAAgB,EAAG,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAQ;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAEjB,gBAAgB;oBAAiC,MAAM;sBAAgB,YAAY;OAAK;
|
|
1
|
+
{"version":3,"file":"artifact-type-plugin-viewer.component.d.ts","sourceRoot":"","sources":["../../../src/lib/components/artifact-type-plugin-viewer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,YAAY,EACZ,MAAM,EACN,SAAS,EACT,aAAa,EAEb,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,qBAAqB,EAA8C,MAAM,+BAA+B,CAAC;AAClH,OAAO,EAA+B,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGjF,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;;AAErF;;;GAGG;AACH,qBAwDa,iCAAkC,YAAW,MAAM,EAAE,SAAS;IAChE,eAAe,EAAG,qBAAqB,CAAC;IACxC,gBAAgB,EAAG,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAQ;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAEjB,gBAAgB;oBAAiC,MAAM;sBAAgB,YAAY;OAAK;IACxF,YAAY,qBAA4B;IAGlD,eAAe,EAAG,gBAAgB,CAAC;IAE5B,SAAS,UAAQ;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAQ;IAEnC,OAAO,CAAC,YAAY,CAAkC;IAEtD;;OAEG;IACH,IAAW,cAAc,IAAI,iCAAiC,GAAG,IAAI,CAEpE;IAEK,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAIzB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAOxD,WAAW,IAAI,IAAI;IAInB;;OAEG;YACW,UAAU;IA+FxB;;OAEG;YACW,eAAe;IAW7B;;;;;;OAMG;YACW,kBAAkB;IAyBhC;;OAEG;YACW,mBAAmB;IAiBjC;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAiBzB;;OAEG;IACH,OAAO,CAAC,oBAAoB;yCApOjB,iCAAiC;2CAAjC,iCAAiC;CA2O7C"}
|
|
@@ -35,6 +35,7 @@ export class ArtifactTypePluginViewerComponent {
|
|
|
35
35
|
readonly = true;
|
|
36
36
|
cssClass;
|
|
37
37
|
openEntityRecord = new EventEmitter();
|
|
38
|
+
pluginLoaded = new EventEmitter();
|
|
38
39
|
viewerContainer;
|
|
39
40
|
isLoading = true;
|
|
40
41
|
error = null;
|
|
@@ -102,22 +103,24 @@ export class ArtifactTypePluginViewerComponent {
|
|
|
102
103
|
this.destroyCurrentViewer();
|
|
103
104
|
// Create and configure the viewer component
|
|
104
105
|
this.componentRef = this.viewerContainer.createComponent(componentType);
|
|
105
|
-
|
|
106
|
-
//
|
|
107
|
-
|
|
106
|
+
// Set inputs using setInput() which properly triggers ngOnChanges
|
|
107
|
+
// This is critical for plugins like ComponentArtifactViewerComponent that
|
|
108
|
+
// need to process the artifactVersion in ngOnChanges before pluginLoaded fires
|
|
109
|
+
this.componentRef.setInput('artifactVersion', this.artifactVersion);
|
|
108
110
|
if (this.height !== undefined) {
|
|
109
|
-
|
|
111
|
+
this.componentRef.setInput('height', this.height);
|
|
110
112
|
}
|
|
111
113
|
if (this.readonly !== undefined) {
|
|
112
|
-
|
|
114
|
+
this.componentRef.setInput('readonly', this.readonly);
|
|
113
115
|
}
|
|
114
116
|
if (this.cssClass !== undefined) {
|
|
115
|
-
|
|
117
|
+
this.componentRef.setInput('cssClass', this.cssClass);
|
|
116
118
|
}
|
|
117
119
|
if (this.contentType !== undefined) {
|
|
118
|
-
|
|
120
|
+
this.componentRef.setInput('contentType', this.contentType);
|
|
119
121
|
}
|
|
120
122
|
// Subscribe to openEntityRecord event if the plugin emits it
|
|
123
|
+
const componentInstance = this.componentRef.instance;
|
|
121
124
|
if (componentInstance.openEntityRecord) {
|
|
122
125
|
componentInstance.openEntityRecord.subscribe((event) => {
|
|
123
126
|
this.openEntityRecord.emit(event);
|
|
@@ -126,6 +129,8 @@ export class ArtifactTypePluginViewerComponent {
|
|
|
126
129
|
// Trigger change detection
|
|
127
130
|
this.componentRef.changeDetectorRef.detectChanges();
|
|
128
131
|
this.isLoading = false;
|
|
132
|
+
// Notify parent that plugin has loaded (for tab selection timing)
|
|
133
|
+
this.pluginLoaded.emit();
|
|
129
134
|
}
|
|
130
135
|
catch (err) {
|
|
131
136
|
console.error('Error loading artifact viewer:', err);
|
|
@@ -230,7 +235,7 @@ export class ArtifactTypePluginViewerComponent {
|
|
|
230
235
|
} if (rf & 2) {
|
|
231
236
|
let _t;
|
|
232
237
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.viewerContainer = _t.first);
|
|
233
|
-
} }, inputs: { artifactVersion: "artifactVersion", artifactTypeName: "artifactTypeName", contentType: "contentType", height: "height", readonly: "readonly", cssClass: "cssClass" }, outputs: { openEntityRecord: "openEntityRecord" }, features: [i0.ɵɵNgOnChangesFeature], decls: 5, vars: 2, consts: [["viewerContainer", ""], [1, "artifact-type-plugin-viewer"], [1, "loading-state"], [1, "error-state"], [1, "fas", "fa-spinner", "fa-spin"], [1, "fas", "fa-exclamation-triangle"]], template: function ArtifactTypePluginViewerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
238
|
+
} }, inputs: { artifactVersion: "artifactVersion", artifactTypeName: "artifactTypeName", contentType: "contentType", height: "height", readonly: "readonly", cssClass: "cssClass" }, outputs: { openEntityRecord: "openEntityRecord", pluginLoaded: "pluginLoaded" }, features: [i0.ɵɵNgOnChangesFeature], decls: 5, vars: 2, consts: [["viewerContainer", ""], [1, "artifact-type-plugin-viewer"], [1, "loading-state"], [1, "error-state"], [1, "fas", "fa-spinner", "fa-spin"], [1, "fas", "fa-exclamation-triangle"]], template: function ArtifactTypePluginViewerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
234
239
|
i0.ɵɵelementStart(0, "div", 1);
|
|
235
240
|
i0.ɵɵtemplate(1, ArtifactTypePluginViewerComponent_Conditional_1_Template, 4, 0, "div", 2)(2, ArtifactTypePluginViewerComponent_Conditional_2_Template, 4, 1, "div", 3);
|
|
236
241
|
i0.ɵɵelementContainer(3, null, 0);
|
|
@@ -275,6 +280,8 @@ export class ArtifactTypePluginViewerComponent {
|
|
|
275
280
|
type: Input
|
|
276
281
|
}], openEntityRecord: [{
|
|
277
282
|
type: Output
|
|
283
|
+
}], pluginLoaded: [{
|
|
284
|
+
type: Output
|
|
278
285
|
}], viewerContainer: [{
|
|
279
286
|
type: ViewChild,
|
|
280
287
|
args: ['viewerContainer', { read: ViewContainerRef, static: true }]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact-type-plugin-viewer.component.js","sourceRoot":"","sources":["../../../src/lib/components/artifact-type-plugin-viewer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,MAAM,EACN,YAAY,EAIZ,SAAS,EACT,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAA6C,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAClH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAyB,MAAM,sBAAsB,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;;;;IAW7E,8BAA2B;IACzB,uBAAsC;IACtC,4BAAM;IAAA,0CAA0B;IAClC,AADkC,iBAAO,EACnC;;;IAGN,8BAAyB;IACvB,uBAA2C;IAC3C,4BAAM;IAAA,YAAW;IACnB,AADmB,iBAAO,EACpB;;;IADE,eAAW;IAAX,kCAAW;;AAjB3B;;;GAGG;AAyDH,MAAM,OAAO,iCAAiC;IACnC,eAAe,CAAyB;IACxC,gBAAgB,CAAU;IAC1B,WAAW,CAAU;IACrB,MAAM,CAAU;IAChB,QAAQ,GAAY,IAAI,CAAC;IACzB,QAAQ,CAAU;IAEjB,gBAAgB,GAAG,IAAI,YAAY,EAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"artifact-type-plugin-viewer.component.js","sourceRoot":"","sources":["../../../src/lib/components/artifact-type-plugin-viewer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,KAAK,EACL,MAAM,EACN,YAAY,EAIZ,SAAS,EACT,gBAAgB,EAGjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAA6C,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAClH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAyB,MAAM,sBAA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OnInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, OnChanges, OnDestroy, SimpleChanges, Type } from '@angular/core';
|
|
2
2
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
3
|
import { UserInfo, CompositeKey } from '@memberjunction/core';
|
|
4
4
|
import { ArtifactEntity, ArtifactVersionEntity, ArtifactVersionAttributeEntity, CollectionEntity, CollectionArtifactEntity, ConversationEntity } from '@memberjunction/core-entities';
|
|
5
5
|
import { MJNotificationService } from '@memberjunction/ng-notifications';
|
|
6
6
|
import { Subject } from 'rxjs';
|
|
7
7
|
import { ArtifactTypePluginViewerComponent } from './artifact-type-plugin-viewer.component';
|
|
8
|
+
import { ArtifactViewerTab } from './base-artifact-viewer.component';
|
|
8
9
|
import { ArtifactIconService } from '../services/artifact-icon.service';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare class ArtifactViewerPanelComponent implements OnInit, OnChanges, OnDestroy {
|
|
@@ -66,11 +67,33 @@ export declare class ArtifactViewerPanelComponent implements OnInit, OnChanges,
|
|
|
66
67
|
hasAccessToOriginConversation: boolean;
|
|
67
68
|
originConversationVersionId: string | null;
|
|
68
69
|
get allTabs(): string[];
|
|
70
|
+
/**
|
|
71
|
+
* Get the full tab definition for a given tab name.
|
|
72
|
+
* Returns the ArtifactViewerTab which may include component info for custom component tabs.
|
|
73
|
+
*/
|
|
74
|
+
GetTabDefinition(tabName: string): ArtifactViewerTab | null;
|
|
75
|
+
/**
|
|
76
|
+
* Get resolved tab content for string-based tabs (non-component tabs).
|
|
77
|
+
* For component tabs, use GetTabDefinition() and render the component directly.
|
|
78
|
+
*/
|
|
69
79
|
GetTabContent(tabName: string): {
|
|
70
80
|
type: string;
|
|
71
81
|
content: string;
|
|
72
82
|
language?: string;
|
|
73
83
|
} | null;
|
|
84
|
+
/**
|
|
85
|
+
* Check if a tab is a component tab (renders a custom Angular component)
|
|
86
|
+
*/
|
|
87
|
+
IsComponentTab(tabName: string): boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Get the component type for a component tab.
|
|
90
|
+
* Returns null if the tab is not a component tab (used for template type safety).
|
|
91
|
+
*/
|
|
92
|
+
GetComponentTabType(tabName: string): Type<any> | null;
|
|
93
|
+
/**
|
|
94
|
+
* Get the component inputs for a component tab
|
|
95
|
+
*/
|
|
96
|
+
GetComponentInputs(tabName: string): Record<string, any>;
|
|
74
97
|
private recentAccessService;
|
|
75
98
|
constructor(notificationService: MJNotificationService, sanitizer: DomSanitizer, artifactIconService: ArtifactIconService);
|
|
76
99
|
ngOnInit(): Promise<void>;
|
|
@@ -92,6 +115,16 @@ export declare class ArtifactViewerPanelComponent implements OnInit, OnChanges,
|
|
|
92
115
|
get contentType(): string | undefined;
|
|
93
116
|
get filteredAttributes(): ArtifactVersionAttributeEntity[];
|
|
94
117
|
setActiveTab(tab: 'display' | 'json' | 'details' | 'links'): void;
|
|
118
|
+
/**
|
|
119
|
+
* Sets the active tab to the first available tab in the list.
|
|
120
|
+
* Called when tabs change or when the currently active tab becomes unavailable.
|
|
121
|
+
*/
|
|
122
|
+
private setActiveTabToFirstAvailable;
|
|
123
|
+
/**
|
|
124
|
+
* Called when the plugin viewer finishes loading.
|
|
125
|
+
* Selects the first available tab now that plugin tabs are available.
|
|
126
|
+
*/
|
|
127
|
+
onPluginLoaded(): void;
|
|
95
128
|
private parseAttributeValue;
|
|
96
129
|
/**
|
|
97
130
|
* Clean up double-escaped characters that appear in LLM-generated HTML
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifact-viewer-panel.component.d.ts","sourceRoot":"","sources":["../../../src/lib/components/artifact-viewer-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"artifact-viewer-panel.component.d.ts","sourceRoot":"","sources":["../../../src/lib/components/artifact-viewer-panel.component.ts"],"names":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