@memberjunction/ng-artifacts 5.1.0 → 5.3.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 +13 -8
- package/dist/lib/artifacts.module.d.ts.map +1 -1
- package/dist/lib/artifacts.module.js +27 -6
- package/dist/lib/artifacts.module.js.map +1 -1
- package/dist/lib/components/artifact-type-plugin-viewer.component.d.ts +4 -2
- package/dist/lib/components/artifact-type-plugin-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/artifact-type-plugin-viewer.component.js +19 -1
- package/dist/lib/components/artifact-type-plugin-viewer.component.js.map +1 -1
- package/dist/lib/components/artifact-viewer-panel.component.d.ts +14 -2
- package/dist/lib/components/artifact-viewer-panel.component.d.ts.map +1 -1
- package/dist/lib/components/artifact-viewer-panel.component.js +39 -3
- package/dist/lib/components/artifact-viewer-panel.component.js.map +1 -1
- package/dist/lib/components/base-artifact-viewer.component.d.ts +34 -1
- package/dist/lib/components/base-artifact-viewer.component.d.ts.map +1 -1
- package/dist/lib/components/base-artifact-viewer.component.js +16 -1
- package/dist/lib/components/base-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/component-artifact-viewer.component.d.ts +6 -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 +14 -3
- package/dist/lib/components/plugins/component-artifact-viewer.component.js.map +1 -1
- package/dist/lib/components/plugins/data-artifact-viewer.component.d.ts +207 -0
- package/dist/lib/components/plugins/data-artifact-viewer.component.d.ts.map +1 -0
- package/dist/lib/components/plugins/data-artifact-viewer.component.js +826 -0
- package/dist/lib/components/plugins/data-artifact-viewer.component.js.map +1 -0
- package/dist/lib/components/plugins/save-query-dialog.component.d.ts +57 -0
- package/dist/lib/components/plugins/save-query-dialog.component.d.ts.map +1 -0
- package/dist/lib/components/plugins/save-query-dialog.component.js +563 -0
- package/dist/lib/components/plugins/save-query-dialog.component.js.map +1 -0
- package/dist/public-api.d.ts +1 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +1 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +18 -12
|
@@ -9,13 +9,18 @@ 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 "./components/plugins/data-
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "
|
|
15
|
-
import * as i14 from "@
|
|
16
|
-
import * as i15 from "@
|
|
17
|
-
import * as i16 from "@memberjunction/ng-
|
|
18
|
-
import * as i17 from "@memberjunction/ng-
|
|
12
|
+
import * as i11 from "./components/plugins/data-artifact-viewer.component";
|
|
13
|
+
import * as i12 from "./components/plugins/save-query-dialog.component";
|
|
14
|
+
import * as i13 from "./components/plugins/data-requirements-viewer/data-requirements-viewer.component";
|
|
15
|
+
import * as i14 from "@angular/common";
|
|
16
|
+
import * as i15 from "@angular/forms";
|
|
17
|
+
import * as i16 from "@memberjunction/ng-markdown";
|
|
18
|
+
import * as i17 from "@memberjunction/ng-code-editor";
|
|
19
|
+
import * as i18 from "@memberjunction/ng-react";
|
|
20
|
+
import * as i19 from "@memberjunction/ng-notifications";
|
|
21
|
+
import * as i20 from "@memberjunction/ng-query-viewer";
|
|
22
|
+
import * as i21 from "@memberjunction/ng-shared-generic";
|
|
23
|
+
import * as i22 from "@memberjunction/ng-trees";
|
|
19
24
|
/**
|
|
20
25
|
* Module for artifact viewer plugin system.
|
|
21
26
|
* Provides components for viewing different types of artifacts (JSON, Code, Markdown, HTML, SVG, Components).
|
|
@@ -26,7 +31,7 @@ import * as i17 from "@memberjunction/ng-notifications";
|
|
|
26
31
|
export declare class ArtifactsModule {
|
|
27
32
|
constructor();
|
|
28
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArtifactsModule, never>;
|
|
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
|
|
34
|
+
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.DataArtifactViewerComponent, typeof i12.SaveQueryPanelComponent, typeof i13.DataRequirementsViewerComponent], [typeof i14.CommonModule, typeof i15.FormsModule, typeof i16.MarkdownModule, typeof i17.CodeEditorModule, typeof i18.MJReactModule, typeof i19.MJNotificationsModule, typeof i20.QueryViewerModule, typeof i21.SharedGenericModule, typeof i22.NgTreesModule], [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.DataArtifactViewerComponent]>;
|
|
30
35
|
static ɵinj: i0.ɵɵInjectorDeclaration<ArtifactsModule>;
|
|
31
36
|
}
|
|
32
37
|
//# 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":";;;;;;;;;;;;;;;;;;;;;;;AA8BA;;;;;;GAMG;AACH,qBAwDa,eAAe;;yCAAf,eAAe;0CAAf,eAAe;0CAAf,eAAe;CAc3B"}
|
|
@@ -6,6 +6,9 @@ import { MarkdownModule } from '@memberjunction/ng-markdown';
|
|
|
6
6
|
import { CodeEditorModule } from '@memberjunction/ng-code-editor';
|
|
7
7
|
import { MJReactModule } from '@memberjunction/ng-react';
|
|
8
8
|
import { MJNotificationsModule } from '@memberjunction/ng-notifications';
|
|
9
|
+
import { QueryViewerModule } from '@memberjunction/ng-query-viewer';
|
|
10
|
+
import { SharedGenericModule } from '@memberjunction/ng-shared-generic';
|
|
11
|
+
import { NgTreesModule } from '@memberjunction/ng-trees';
|
|
9
12
|
// Import plugin components (note: base component is abstract and NOT declared)
|
|
10
13
|
import { JsonArtifactViewerComponent } from './components/plugins/json-artifact-viewer.component';
|
|
11
14
|
import { CodeArtifactViewerComponent } from './components/plugins/code-artifact-viewer.component';
|
|
@@ -13,6 +16,8 @@ import { MarkdownArtifactViewerComponent } from './components/plugins/markdown-a
|
|
|
13
16
|
import { HtmlArtifactViewerComponent } from './components/plugins/html-artifact-viewer.component';
|
|
14
17
|
import { SvgArtifactViewerComponent } from './components/plugins/svg-artifact-viewer.component';
|
|
15
18
|
import { ComponentArtifactViewerComponent } from './components/plugins/component-artifact-viewer.component';
|
|
19
|
+
import { DataArtifactViewerComponent } from './components/plugins/data-artifact-viewer.component';
|
|
20
|
+
import { SaveQueryPanelComponent } from './components/plugins/save-query-dialog.component';
|
|
16
21
|
import { DataRequirementsViewerComponent } from './components/plugins/data-requirements-viewer/data-requirements-viewer.component';
|
|
17
22
|
// Import artifact type plugin viewer component
|
|
18
23
|
import { ArtifactTypePluginViewerComponent } from './components/artifact-type-plugin-viewer.component';
|
|
@@ -37,7 +42,8 @@ export class ArtifactsModule {
|
|
|
37
42
|
MarkdownArtifactViewerComponent,
|
|
38
43
|
HtmlArtifactViewerComponent,
|
|
39
44
|
SvgArtifactViewerComponent,
|
|
40
|
-
ComponentArtifactViewerComponent
|
|
45
|
+
ComponentArtifactViewerComponent,
|
|
46
|
+
DataArtifactViewerComponent
|
|
41
47
|
];
|
|
42
48
|
}
|
|
43
49
|
static ɵfac = function ArtifactsModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ArtifactsModule)(); };
|
|
@@ -47,7 +53,10 @@ export class ArtifactsModule {
|
|
|
47
53
|
MarkdownModule,
|
|
48
54
|
CodeEditorModule,
|
|
49
55
|
MJReactModule,
|
|
50
|
-
MJNotificationsModule
|
|
56
|
+
MJNotificationsModule,
|
|
57
|
+
QueryViewerModule,
|
|
58
|
+
SharedGenericModule,
|
|
59
|
+
NgTreesModule] });
|
|
51
60
|
}
|
|
52
61
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ArtifactsModule, [{
|
|
53
62
|
type: NgModule,
|
|
@@ -66,6 +75,8 @@ export class ArtifactsModule {
|
|
|
66
75
|
HtmlArtifactViewerComponent,
|
|
67
76
|
SvgArtifactViewerComponent,
|
|
68
77
|
ComponentArtifactViewerComponent,
|
|
78
|
+
DataArtifactViewerComponent,
|
|
79
|
+
SaveQueryPanelComponent,
|
|
69
80
|
// Custom tab components (used by plugins via dynamic component tabs)
|
|
70
81
|
DataRequirementsViewerComponent
|
|
71
82
|
],
|
|
@@ -75,7 +86,10 @@ export class ArtifactsModule {
|
|
|
75
86
|
MarkdownModule,
|
|
76
87
|
CodeEditorModule,
|
|
77
88
|
MJReactModule,
|
|
78
|
-
MJNotificationsModule
|
|
89
|
+
MJNotificationsModule,
|
|
90
|
+
QueryViewerModule,
|
|
91
|
+
SharedGenericModule,
|
|
92
|
+
NgTreesModule
|
|
79
93
|
],
|
|
80
94
|
exports: [
|
|
81
95
|
// Export artifact type plugin viewer
|
|
@@ -90,7 +104,8 @@ export class ArtifactsModule {
|
|
|
90
104
|
MarkdownArtifactViewerComponent,
|
|
91
105
|
HtmlArtifactViewerComponent,
|
|
92
106
|
SvgArtifactViewerComponent,
|
|
93
|
-
ComponentArtifactViewerComponent
|
|
107
|
+
ComponentArtifactViewerComponent,
|
|
108
|
+
DataArtifactViewerComponent
|
|
94
109
|
],
|
|
95
110
|
providers: [
|
|
96
111
|
// Plugins are registered via @RegisterClass decorator on component classes, no providers needed
|
|
@@ -111,13 +126,18 @@ export class ArtifactsModule {
|
|
|
111
126
|
HtmlArtifactViewerComponent,
|
|
112
127
|
SvgArtifactViewerComponent,
|
|
113
128
|
ComponentArtifactViewerComponent,
|
|
129
|
+
DataArtifactViewerComponent,
|
|
130
|
+
SaveQueryPanelComponent,
|
|
114
131
|
// Custom tab components (used by plugins via dynamic component tabs)
|
|
115
132
|
DataRequirementsViewerComponent], imports: [CommonModule,
|
|
116
133
|
FormsModule,
|
|
117
134
|
MarkdownModule,
|
|
118
135
|
CodeEditorModule,
|
|
119
136
|
MJReactModule,
|
|
120
|
-
MJNotificationsModule
|
|
137
|
+
MJNotificationsModule,
|
|
138
|
+
QueryViewerModule,
|
|
139
|
+
SharedGenericModule,
|
|
140
|
+
NgTreesModule], exports: [
|
|
121
141
|
// Export artifact type plugin viewer
|
|
122
142
|
ArtifactTypePluginViewerComponent,
|
|
123
143
|
// Export artifact viewer UI components
|
|
@@ -130,5 +150,6 @@ export class ArtifactsModule {
|
|
|
130
150
|
MarkdownArtifactViewerComponent,
|
|
131
151
|
HtmlArtifactViewerComponent,
|
|
132
152
|
SvgArtifactViewerComponent,
|
|
133
|
-
ComponentArtifactViewerComponent
|
|
153
|
+
ComponentArtifactViewerComponent,
|
|
154
|
+
DataArtifactViewerComponent] }); })();
|
|
134
155
|
//# sourceMappingURL=artifacts.module.js.map
|
|
@@ -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;
|
|
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;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAEzD,+EAA+E;AAC/E,OAAO,EAAE,2BAA2B,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,7 @@
|
|
|
1
1
|
import { EventEmitter, OnInit, OnChanges, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { MJArtifactVersionEntity } from '@memberjunction/core-entities';
|
|
3
3
|
import { CompositeKey } from '@memberjunction/core';
|
|
4
|
-
import { BaseArtifactViewerPluginComponent } from './base-artifact-viewer.component';
|
|
4
|
+
import { BaseArtifactViewerPluginComponent, NavigationRequest } from './base-artifact-viewer.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
7
|
* Artifact type plugin viewer that loads the appropriate plugin based on the artifact's DriverClass.
|
|
@@ -18,7 +18,9 @@ export declare class ArtifactTypePluginViewerComponent implements OnInit, OnChan
|
|
|
18
18
|
entityName: string;
|
|
19
19
|
compositeKey: CompositeKey;
|
|
20
20
|
}>;
|
|
21
|
+
navigationRequest: EventEmitter<NavigationRequest>;
|
|
21
22
|
pluginLoaded: EventEmitter<void>;
|
|
23
|
+
tabsChanged: EventEmitter<void>;
|
|
22
24
|
viewerContainer: ViewContainerRef;
|
|
23
25
|
isLoading: boolean;
|
|
24
26
|
error: string | null;
|
|
@@ -65,6 +67,6 @@ export declare class ArtifactTypePluginViewerComponent implements OnInit, OnChan
|
|
|
65
67
|
*/
|
|
66
68
|
private destroyCurrentViewer;
|
|
67
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArtifactTypePluginViewerComponent, never>;
|
|
68
|
-
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>;
|
|
70
|
+
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"; "navigationRequest": "navigationRequest"; "pluginLoaded": "pluginLoaded"; "tabsChanged": "tabsChanged"; }, never, never, false, never>;
|
|
69
71
|
}
|
|
70
72
|
//# 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,uBAAuB,EAAgD,MAAM,+BAA+B,CAAC;AACtH,OAAO,EAA+B,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGjF,OAAO,EAAE,iCAAiC,EAAE,MAAM,kCAAkC,CAAC;;
|
|
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,uBAAuB,EAAgD,MAAM,+BAA+B,CAAC;AACtH,OAAO,EAA+B,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGjF,OAAO,EAAE,iCAAiC,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;;AAExG;;;GAGG;AACH,qBA2Fa,iCAAkC,YAAW,MAAM,EAAE,SAAS;IAChE,eAAe,EAAG,uBAAuB,CAAC;IAC1C,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,iBAAiB,kCAAyC;IAC1D,YAAY,qBAA4B;IACxC,WAAW,qBAA4B;IAGjD,eAAe,EAAG,gBAAgB,CAAC;IAE5B,SAAS,UAAQ;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAQ;IAC5B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAQ;IACnC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAQ;IAExC,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;IAyIxB;;OAEG;IACH,OAAO,CAAC,QAAQ;IAMhB;;OAEG;YACW,eAAe;IAW7B;;;;;;OAMG;YACW,kBAAkB;IAyBhC;;OAEG;YACW,mBAAmB;IAiBjC;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAiBzB;;OAEG;IACH,OAAO,CAAC,oBAAoB;yCA3RjB,iCAAiC;2CAAjC,iCAAiC;CAkS7C"}
|
|
@@ -60,7 +60,9 @@ export class ArtifactTypePluginViewerComponent {
|
|
|
60
60
|
readonly = true;
|
|
61
61
|
cssClass;
|
|
62
62
|
openEntityRecord = new EventEmitter();
|
|
63
|
+
navigationRequest = new EventEmitter();
|
|
63
64
|
pluginLoaded = new EventEmitter();
|
|
65
|
+
tabsChanged = new EventEmitter();
|
|
64
66
|
viewerContainer;
|
|
65
67
|
isLoading = true;
|
|
66
68
|
error = null;
|
|
@@ -155,6 +157,18 @@ export class ArtifactTypePluginViewerComponent {
|
|
|
155
157
|
this.openEntityRecord.emit(event);
|
|
156
158
|
});
|
|
157
159
|
}
|
|
160
|
+
// Subscribe to navigationRequest event if the plugin emits it
|
|
161
|
+
if (componentInstance.navigationRequest) {
|
|
162
|
+
componentInstance.navigationRequest.subscribe((event) => {
|
|
163
|
+
this.navigationRequest.emit(event);
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
// Subscribe to tabsChanged event if the plugin emits it (e.g., after async spec loading)
|
|
167
|
+
if (componentInstance.tabsChanged) {
|
|
168
|
+
componentInstance.tabsChanged.subscribe(() => {
|
|
169
|
+
this.tabsChanged.emit();
|
|
170
|
+
});
|
|
171
|
+
}
|
|
158
172
|
// Trigger change detection
|
|
159
173
|
this.componentRef.changeDetectorRef.detectChanges();
|
|
160
174
|
this.isLoading = false;
|
|
@@ -274,7 +288,7 @@ export class ArtifactTypePluginViewerComponent {
|
|
|
274
288
|
} if (rf & 2) {
|
|
275
289
|
let _t;
|
|
276
290
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.viewerContainer = _t.first);
|
|
277
|
-
} }, inputs: { artifactVersion: "artifactVersion", artifactTypeName: "artifactTypeName", contentType: "contentType", height: "height", readonly: "readonly", cssClass: "cssClass" }, outputs: { openEntityRecord: "openEntityRecord", pluginLoaded: "pluginLoaded" }, standalone: false, 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"], [1, "error-title"], [1, "error-details"], [1, "error-tech-details"]], template: function ArtifactTypePluginViewerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
291
|
+
} }, inputs: { artifactVersion: "artifactVersion", artifactTypeName: "artifactTypeName", contentType: "contentType", height: "height", readonly: "readonly", cssClass: "cssClass" }, outputs: { openEntityRecord: "openEntityRecord", navigationRequest: "navigationRequest", pluginLoaded: "pluginLoaded", tabsChanged: "tabsChanged" }, standalone: false, 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"], [1, "error-title"], [1, "error-details"], [1, "error-tech-details"]], template: function ArtifactTypePluginViewerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
278
292
|
i0.ɵɵelementStart(0, "div", 1);
|
|
279
293
|
i0.ɵɵconditionalCreate(1, ArtifactTypePluginViewerComponent_Conditional_1_Template, 4, 0, "div", 2);
|
|
280
294
|
i0.ɵɵconditionalCreate(2, ArtifactTypePluginViewerComponent_Conditional_2_Template, 6, 3, "div", 3);
|
|
@@ -326,8 +340,12 @@ export class ArtifactTypePluginViewerComponent {
|
|
|
326
340
|
type: Input
|
|
327
341
|
}], openEntityRecord: [{
|
|
328
342
|
type: Output
|
|
343
|
+
}], navigationRequest: [{
|
|
344
|
+
type: Output
|
|
329
345
|
}], pluginLoaded: [{
|
|
330
346
|
type: Output
|
|
347
|
+
}], tabsChanged: [{
|
|
348
|
+
type: Output
|
|
331
349
|
}], viewerContainer: [{
|
|
332
350
|
type: ViewChild,
|
|
333
351
|
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,EAAiD,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACtH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAyB,MAAM,sBAAsB,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,OAAO,EAAE,iCAAiC,
|
|
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,EAAiD,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACtH,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAyB,MAAM,sBAAsB,CAAC;AACjF,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAElD,OAAO,EAAE,iCAAiC,EAAqB,MAAM,kCAAkC,CAAC;;;;IAYhG,8BAA2B;IACzB,uBAAsC;IACtC,4BAAM;IAAA,0CAA0B;IAClC,AADkC,iBAAO,EACnC;;;IAMF,8BAAyB;IAAA,YAAgB;IAAA,iBAAM;;;IAAtB,cAAgB;IAAhB,uCAAgB;;;IAIzC,8BAAgC;IAAA,YAAkB;IAAA,iBAAM;;;IAAxB,cAAkB;IAAlB,yCAAkB;;;IAPtD,8BAAyB;IACvB,uBAA2C;IAC3C,iHAAkB;IAGlB,8BAA2B;IAAA,YAAW;IAAA,iBAAM;IAC5C,iHAAoB;IAGtB,iBAAM;;;IAPJ,eAEC;IAFD,4CAEC;IAC0B,eAAW;IAAX,kCAAW;IACtC,cAEC;IAFD,8CAEC;;AAxBX;;;GAGG;AA4FH,MAAM,OAAO,iCAAiC;IACnC,eAAe,CAA2B;IAC1C,gBAAgB,CAAU;IAC1B,WAAW,CAAU;IACrB,MAAM,CAAU;IAChB,QAAQ,GAAY,IAAI,CAAC;IACzB,QAAQ,C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,YAAY,EAAE,CAAC;YACtB,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC;YAC5B,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QAC3B,CAAC;QACD,IAAI,CAAC,eAAe,CAAC,KAAK,EAAE,CAAC;IAC/B,CAAC;2HAjSU,iCAAiC;6DAAjC,iCAAiC;mCAaN,gBAAgB;;;;;YApGpD,8BAAyC;YACvC,mGAAiB;YAMjB,mGAAa;YAYb,iCAA8C;YAChD,iBAAM;;YAnBJ,cAKC;YALD,wCAKC;YACD,cAWC;YAXD,oCAWC;;;iFAqEM,iCAAiC;cA3F7C,SAAS;6BACI,KAAK,YACP,gCAAgC,YAChC;;;;;;;;;;;;;;;;;;;;;;GAsBT;;kBAmEA,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAEL,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBACN,MAAM;;kBAEN,SAAS;mBAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,MAAM,EAAE,IAAI,EAAE;;kFAb3D,iCAAiC"}
|
|
@@ -5,7 +5,7 @@ import { MJArtifactEntity, MJArtifactVersionEntity, MJArtifactVersionAttributeEn
|
|
|
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
|
+
import { ArtifactViewerTab, NavigationRequest } from './base-artifact-viewer.component';
|
|
9
9
|
import { ArtifactIconService } from '../services/artifact-icon.service';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export declare class ArtifactViewerPanelComponent implements OnInit, OnChanges, OnDestroy {
|
|
@@ -49,6 +49,7 @@ export declare class ArtifactViewerPanelComponent implements OnInit, OnChanges,
|
|
|
49
49
|
entityName: string;
|
|
50
50
|
compositeKey: CompositeKey;
|
|
51
51
|
}>;
|
|
52
|
+
navigationRequest: EventEmitter<NavigationRequest>;
|
|
52
53
|
pluginViewer?: ArtifactTypePluginViewerComponent;
|
|
53
54
|
private destroy$;
|
|
54
55
|
artifact: MJArtifactEntity | null;
|
|
@@ -125,6 +126,12 @@ export declare class ArtifactViewerPanelComponent implements OnInit, OnChanges,
|
|
|
125
126
|
* Called when tabs change or when the currently active tab becomes unavailable.
|
|
126
127
|
*/
|
|
127
128
|
private setActiveTabToFirstAvailable;
|
|
129
|
+
/**
|
|
130
|
+
* Called when a plugin's async tab data changes (e.g., ComponentArtifactViewer loads
|
|
131
|
+
* the full spec from the registry after initial render with a stripped spec).
|
|
132
|
+
* Forces re-evaluation of allTabs so new tab labels render correctly.
|
|
133
|
+
*/
|
|
134
|
+
onTabsChanged(): void;
|
|
128
135
|
/**
|
|
129
136
|
* Called when the plugin viewer finishes loading.
|
|
130
137
|
* Selects the first available tab now that plugin tabs are available.
|
|
@@ -185,6 +192,11 @@ export declare class ArtifactViewerPanelComponent implements OnInit, OnChanges,
|
|
|
185
192
|
entityName: string;
|
|
186
193
|
compositeKey: CompositeKey;
|
|
187
194
|
}): void;
|
|
195
|
+
/**
|
|
196
|
+
* Handle navigation request from artifact viewer plugin.
|
|
197
|
+
* Propagates the event up to parent components for app-level navigation.
|
|
198
|
+
*/
|
|
199
|
+
onNavigationRequest(event: NavigationRequest): void;
|
|
188
200
|
/**
|
|
189
201
|
* Resolves the DriverClass for an artifact type by traversing up the parent hierarchy.
|
|
190
202
|
* Returns the first DriverClass found, or null if none found in the hierarchy.
|
|
@@ -216,6 +228,6 @@ export declare class ArtifactViewerPanelComponent implements OnInit, OnChanges,
|
|
|
216
228
|
*/
|
|
217
229
|
getArtifactIcon(): string;
|
|
218
230
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArtifactViewerPanelComponent, never>;
|
|
219
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArtifactViewerPanelComponent, "mj-artifact-viewer-panel", never, { "artifactId": { "alias": "artifactId"; "required": false; }; "currentUser": { "alias": "currentUser"; "required": false; }; "environmentId": { "alias": "environmentId"; "required": false; }; "versionNumber": { "alias": "versionNumber"; "required": false; }; "showSaveToCollection": { "alias": "showSaveToCollection"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "showTabs": { "alias": "showTabs"; "required": false; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; }; "showMaximizeButton": { "alias": "showMaximizeButton"; "required": false; }; "refreshTrigger": { "alias": "refreshTrigger"; "required": false; }; "viewContext": { "alias": "viewContext"; "required": false; }; "contextCollectionId": { "alias": "contextCollectionId"; "required": false; }; "canShare": { "alias": "canShare"; "required": false; }; "canEdit": { "alias": "canEdit"; "required": false; }; "isMaximized": { "alias": "isMaximized"; "required": false; }; }, { "closed": "closed"; "saveToCollectionRequested": "saveToCollectionRequested"; "navigateToLink": "navigateToLink"; "shareRequested": "shareRequested"; "maximizeToggled": "maximizeToggled"; "openEntityRecord": "openEntityRecord"; }, never, never, false, never>;
|
|
231
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArtifactViewerPanelComponent, "mj-artifact-viewer-panel", never, { "artifactId": { "alias": "artifactId"; "required": false; }; "currentUser": { "alias": "currentUser"; "required": false; }; "environmentId": { "alias": "environmentId"; "required": false; }; "versionNumber": { "alias": "versionNumber"; "required": false; }; "showSaveToCollection": { "alias": "showSaveToCollection"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; "showTabs": { "alias": "showTabs"; "required": false; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; }; "showMaximizeButton": { "alias": "showMaximizeButton"; "required": false; }; "refreshTrigger": { "alias": "refreshTrigger"; "required": false; }; "viewContext": { "alias": "viewContext"; "required": false; }; "contextCollectionId": { "alias": "contextCollectionId"; "required": false; }; "canShare": { "alias": "canShare"; "required": false; }; "canEdit": { "alias": "canEdit"; "required": false; }; "isMaximized": { "alias": "isMaximized"; "required": false; }; }, { "closed": "closed"; "saveToCollectionRequested": "saveToCollectionRequested"; "navigateToLink": "navigateToLink"; "shareRequested": "shareRequested"; "maximizeToggled": "maximizeToggled"; "openEntityRecord": "openEntityRecord"; "navigationRequest": "navigationRequest"; }, never, never, false, never>;
|
|
220
232
|
}
|
|
221
233
|
//# sourceMappingURL=artifact-viewer-panel.component.d.ts.map
|
|
@@ -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,EAA6C,IAAI,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACxL,OAAO,EAAE,YAAY,EAAY,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,QAAQ,EAA+B,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAE3F,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,gCAAgC,EAAwB,kBAAkB,EAAE,0BAA0B,EAA0B,oBAAoB,EAAuF,MAAM,+BAA+B,CAAC;AACrU,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAE/B,OAAO,EAAE,iCAAiC,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;
|
|
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,EAA6C,IAAI,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACxL,OAAO,EAAE,YAAY,EAAY,MAAM,2BAA2B,CAAC;AACn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