@memberjunction/ng-explorer-core 0.9.131 → 0.9.135
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.
|
@@ -10,7 +10,7 @@ export declare class SingleReportComponent implements OnInit {
|
|
|
10
10
|
theReport: DynamicReportComponent;
|
|
11
11
|
ReportEntity: ReportEntity;
|
|
12
12
|
reportData: any[];
|
|
13
|
-
|
|
13
|
+
Configuration: SkipAPIAnalysisCompleteResponse | undefined;
|
|
14
14
|
get IsChart(): boolean;
|
|
15
15
|
get IsTable(): boolean;
|
|
16
16
|
get Columns(): SkipColumnInfo[];
|
|
@@ -42,17 +42,17 @@ export class SingleReportComponent {
|
|
|
42
42
|
const md = new Metadata();
|
|
43
43
|
this.ReportEntity = (yield md.GetEntityObject('Reports'));
|
|
44
44
|
yield this.ReportEntity.Load(this.reportId);
|
|
45
|
-
this.
|
|
45
|
+
this.Configuration = JSON.parse(this.ReportEntity.Configuration);
|
|
46
46
|
const runReport = new RunReport();
|
|
47
47
|
const result = yield runReport.RunReport({ ReportID: this.reportId });
|
|
48
48
|
if (result && result.Success && result.Results.length > 0) {
|
|
49
49
|
this.reportData = result.Results;
|
|
50
|
-
if ((_a = this.
|
|
51
|
-
this.
|
|
50
|
+
if ((_a = this.Configuration) === null || _a === void 0 ? void 0 : _a.executionResults)
|
|
51
|
+
this.Configuration.executionResults.tableData = this.reportData; // put the report data into the right spot so the dynamic report knows where to get it
|
|
52
52
|
}
|
|
53
53
|
else {
|
|
54
54
|
// report has an invalid configuration
|
|
55
|
-
throw new Error('Error running report: invalid value from
|
|
55
|
+
throw new Error('Error running report: invalid value from Configuration field ');
|
|
56
56
|
}
|
|
57
57
|
this.loadComplete.emit();
|
|
58
58
|
}
|
|
@@ -71,11 +71,11 @@ SingleReportComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: Singl
|
|
|
71
71
|
} }, inputs: { reportId: "reportId" }, outputs: { loadComplete: "loadComplete", loadStarted: "loadStarted" }, decls: 2, vars: 4, consts: [["mjFillContainer", "", 3, "ShowDetailsTab", "SkipData", "ConversationID", "ConversationDetailID"], ["theReport", ""]], template: function SingleReportComponent_Template(rf, ctx) { if (rf & 1) {
|
|
72
72
|
i0.ɵɵelement(0, "mj-dynamic-report", 0, 1);
|
|
73
73
|
} if (rf & 2) {
|
|
74
|
-
i0.ɵɵproperty("ShowDetailsTab", true)("SkipData", ctx.
|
|
74
|
+
i0.ɵɵproperty("ShowDetailsTab", true)("SkipData", ctx.Configuration)("ConversationID", ctx.ReportEntity.ConversationID)("ConversationDetailID", ctx.ReportEntity.ConversationDetailID);
|
|
75
75
|
} }, dependencies: [i1.FillContainer, i2.DynamicReportComponent] });
|
|
76
76
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SingleReportComponent, [{
|
|
77
77
|
type: Component,
|
|
78
|
-
args: [{ selector: 'app-single-report', template: "<mj-dynamic-report mjFillContainer #theReport [ShowDetailsTab]=\"true\" [SkipData]=\"
|
|
78
|
+
args: [{ selector: 'app-single-report', template: "<mj-dynamic-report mjFillContainer #theReport [ShowDetailsTab]=\"true\" [SkipData]=\"Configuration\"\r\n [ConversationID]=\"ReportEntity.ConversationID\"\r\n [ConversationDetailID]=\"ReportEntity.ConversationDetailID\"></mj-dynamic-report>" }]
|
|
79
79
|
}], null, { reportId: [{
|
|
80
80
|
type: Input
|
|
81
81
|
}], loadComplete: [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-explorer-core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.135",
|
|
4
4
|
"description": "MemberJunction Explorer: Core Angular Components",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@memberjunction/global": "^0.9.135",
|
|
37
|
-
"@memberjunction/core": "^0.9.
|
|
38
|
-
"@memberjunction/ng-compare-records": "^0.9.
|
|
39
|
-
"@memberjunction/ng-record-changes": "^0.9.
|
|
40
|
-
"@memberjunction/ng-container-directives": "^0.9.
|
|
41
|
-
"@memberjunction/ng-user-view-grid": "^0.9.
|
|
42
|
-
"@memberjunction/ng-query-grid": "^0.9.
|
|
37
|
+
"@memberjunction/core": "^0.9.147",
|
|
38
|
+
"@memberjunction/ng-compare-records": "^0.9.148",
|
|
39
|
+
"@memberjunction/ng-record-changes": "^0.9.78",
|
|
40
|
+
"@memberjunction/ng-container-directives": "^0.9.114",
|
|
41
|
+
"@memberjunction/ng-user-view-grid": "^0.9.148",
|
|
42
|
+
"@memberjunction/ng-query-grid": "^0.9.24",
|
|
43
43
|
"@memberjunction/ng-shared": "^0.9.8",
|
|
44
|
-
"@memberjunction/ng-ask-skip": "^0.9.
|
|
44
|
+
"@memberjunction/ng-ask-skip": "^0.9.23",
|
|
45
45
|
"tslib": "^2.3.0"
|
|
46
46
|
},
|
|
47
47
|
"sideEffects": false
|