@memberjunction/ng-query-viewer 6.2.0-edge.6 → 6.2.0-edge.7
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/query-data-grid/models/query-grid-types.d.ts +17 -0
- package/dist/lib/query-data-grid/models/query-grid-types.d.ts.map +1 -1
- package/dist/lib/query-data-grid/models/query-grid-types.js +51 -0
- package/dist/lib/query-data-grid/models/query-grid-types.js.map +1 -1
- package/dist/lib/query-data-grid/open-in-excel.d.ts +32 -0
- package/dist/lib/query-data-grid/open-in-excel.d.ts.map +1 -0
- package/dist/lib/query-data-grid/open-in-excel.js +63 -0
- package/dist/lib/query-data-grid/open-in-excel.js.map +1 -0
- package/dist/lib/query-data-grid/query-data-grid.component.d.ts +58 -2
- package/dist/lib/query-data-grid/query-data-grid.component.d.ts.map +1 -1
- package/dist/lib/query-data-grid/query-data-grid.component.js +319 -57
- package/dist/lib/query-data-grid/query-data-grid.component.js.map +1 -1
- package/dist/lib/query-diagnostics/query-diagnostics.component.d.ts +30 -0
- package/dist/lib/query-diagnostics/query-diagnostics.component.d.ts.map +1 -0
- package/dist/lib/query-diagnostics/query-diagnostics.component.js +183 -0
- package/dist/lib/query-diagnostics/query-diagnostics.component.js.map +1 -0
- package/dist/lib/query-info-panel/query-info-panel.component.d.ts +5 -0
- package/dist/lib/query-info-panel/query-info-panel.component.d.ts.map +1 -1
- package/dist/lib/query-info-panel/query-info-panel.component.js +14 -4
- package/dist/lib/query-info-panel/query-info-panel.component.js.map +1 -1
- package/dist/lib/query-refresh/query-refresh-dialog.component.d.ts +72 -0
- package/dist/lib/query-refresh/query-refresh-dialog.component.d.ts.map +1 -0
- package/dist/lib/query-refresh/query-refresh-dialog.component.js +388 -0
- package/dist/lib/query-refresh/query-refresh-dialog.component.js.map +1 -0
- package/dist/lib/query-refresh/query-refresh-model.d.ts +50 -0
- package/dist/lib/query-refresh/query-refresh-model.d.ts.map +1 -0
- package/dist/lib/query-refresh/query-refresh-model.js +62 -0
- package/dist/lib/query-refresh/query-refresh-model.js.map +1 -0
- package/dist/lib/query-refresh/query-refresh-report.component.d.ts +44 -0
- package/dist/lib/query-refresh/query-refresh-report.component.d.ts.map +1 -0
- package/dist/lib/query-refresh/query-refresh-report.component.js +469 -0
- package/dist/lib/query-refresh/query-refresh-report.component.js.map +1 -0
- package/dist/lib/query-viewer/query-viewer.component.d.ts +5 -0
- package/dist/lib/query-viewer/query-viewer.component.d.ts.map +1 -1
- package/dist/lib/query-viewer/query-viewer.component.js +13 -5
- package/dist/lib/query-viewer/query-viewer.component.js.map +1 -1
- package/dist/lib/query-viewer.module.d.ts +4 -1
- package/dist/lib/query-viewer.module.d.ts.map +1 -1
- package/dist/lib/query-viewer.module.js +21 -5
- package/dist/lib/query-viewer.module.js.map +1 -1
- package/dist/public-api.d.ts +4 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +4 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +16 -15
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import type { QueryRefreshExtractionOutput, QueryRefreshQueryReport } from '@memberjunction/core-entities';
|
|
3
|
+
import type { QueryDiagnosticLine } from '@memberjunction/core-entities';
|
|
4
|
+
import { QueryRefreshOutcomeTotals } from './query-refresh-model';
|
|
5
|
+
import type { QueryRefreshCollectionChanges, QueryRefreshCounts } from './query-refresh-model';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* `<mj-query-refresh-report>` — the report of a query metadata refresh: one row per query with its
|
|
9
|
+
* outcome, the extraction status it records and how many fields, parameters, entities and
|
|
10
|
+
* dependencies it adds, updates and removes. A row with details expands to list each change, the
|
|
11
|
+
* authored parameters the SQL no longer uses, and the run's diagnostics.
|
|
12
|
+
*
|
|
13
|
+
* Presentational: the operation's output in, `OpenQuery` out (the host decides where that goes).
|
|
14
|
+
* A row starts expanded when the report holds a single query.
|
|
15
|
+
*/
|
|
16
|
+
export declare class QueryRefreshReportComponent {
|
|
17
|
+
private _output;
|
|
18
|
+
private expanded;
|
|
19
|
+
/** The refresh's output. */
|
|
20
|
+
set Output(value: QueryRefreshExtractionOutput | null);
|
|
21
|
+
get Output(): QueryRefreshExtractionOutput | null;
|
|
22
|
+
/** Whether a query's name is a button that emits {@link OpenQuery}. */
|
|
23
|
+
AllowOpenQuery: boolean;
|
|
24
|
+
/** The ID of a query the user asked to open. */
|
|
25
|
+
OpenQuery: EventEmitter<string>;
|
|
26
|
+
get Reports(): readonly QueryRefreshQueryReport[];
|
|
27
|
+
get Totals(): ReturnType<typeof QueryRefreshOutcomeTotals> | null;
|
|
28
|
+
KeyOf(report: QueryRefreshQueryReport, index: number): string;
|
|
29
|
+
CountsOf(report: QueryRefreshQueryReport): QueryRefreshCounts;
|
|
30
|
+
OutcomeLabel(report: QueryRefreshQueryReport): string;
|
|
31
|
+
/** The outcome as a CSS modifier: `refreshed`, `unchanged`, `notpermitted`, `unavailable`, `failed`. */
|
|
32
|
+
OutcomeClass(report: QueryRefreshQueryReport): string;
|
|
33
|
+
StatusClass(report: QueryRefreshQueryReport): string;
|
|
34
|
+
ChangesOf(report: QueryRefreshQueryReport): QueryRefreshCollectionChanges[];
|
|
35
|
+
DiagnosticsOf(report: QueryRefreshQueryReport): QueryDiagnosticLine[];
|
|
36
|
+
/** Whether a report has anything to show when expanded. */
|
|
37
|
+
HasDetails(report: QueryRefreshQueryReport): boolean;
|
|
38
|
+
IsExpanded(report: QueryRefreshQueryReport, index: number): boolean;
|
|
39
|
+
ToggleExpanded(report: QueryRefreshQueryReport, index: number): void;
|
|
40
|
+
private keyOf;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QueryRefreshReportComponent, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QueryRefreshReportComponent, "mj-query-refresh-report", never, { "Output": { "alias": "Output"; "required": false; }; "AllowOpenQuery": { "alias": "AllowOpenQuery"; "required": false; }; }, { "OpenQuery": "OpenQuery"; }, never, never, true, never>;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=query-refresh-report.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-refresh-report.component.d.ts","sourceRoot":"","sources":["../../../src/lib/query-refresh/query-refresh-report.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsC,YAAY,EAAiB,MAAM,eAAe,CAAC;AAChG,OAAO,KAAK,EAAE,4BAA4B,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAE3G,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,OAAO,EAIH,yBAAyB,EAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,6BAA6B,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;;AAE/F;;;;;;;;GAQG;AACH,qBAQa,2BAA2B;IACpC,OAAO,CAAC,OAAO,CAA6C;IAC5D,OAAO,CAAC,QAAQ,CAAqB;IAErC,4BAA4B;IAC5B,IACI,MAAM,CAAC,KAAK,EAAE,4BAA4B,GAAG,IAAI,EAGpD;IACD,IAAI,MAAM,IAAI,4BAA4B,GAAG,IAAI,CAEhD;IAED,uEAAuE;IAC9D,cAAc,UAAS;IAEhC,gDAAgD;IACtC,SAAS,uBAA8B;IAEjD,IAAW,OAAO,IAAI,SAAS,uBAAuB,EAAE,CAEvD;IAED,IAAW,MAAM,IAAI,UAAU,CAAC,OAAO,yBAAyB,CAAC,GAAG,IAAI,CAEvE;IAEM,KAAK,CAAC,MAAM,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM;IAI7D,QAAQ,CAAC,MAAM,EAAE,uBAAuB,GAAG,kBAAkB;IAI7D,YAAY,CAAC,MAAM,EAAE,uBAAuB,GAAG,MAAM;IAI5D,wGAAwG;IACjG,YAAY,CAAC,MAAM,EAAE,uBAAuB,GAAG,MAAM;IAIrD,WAAW,CAAC,MAAM,EAAE,uBAAuB,GAAG,MAAM;IAIpD,SAAS,CAAC,MAAM,EAAE,uBAAuB,GAAG,6BAA6B,EAAE;IAI3E,aAAa,CAAC,MAAM,EAAE,uBAAuB,GAAG,mBAAmB,EAAE;IAI5E,2DAA2D;IACpD,UAAU,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO;IAKpD,UAAU,CAAC,MAAM,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO;IAInE,cAAc,CAAC,MAAM,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI;IAM3E,OAAO,CAAC,KAAK;yCAzEJ,2BAA2B;2CAA3B,2BAA2B;CA4EvC"}
|
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
+
import { ParseQueryDiagnostics } from '@memberjunction/core-entities';
|
|
3
|
+
import { QueryDiagnosticsComponent } from '../query-diagnostics/query-diagnostics.component';
|
|
4
|
+
import { QueryRefreshChangesByCollection, QueryRefreshCountsOf, QueryRefreshOutcomeLabel, QueryRefreshOutcomeTotals, } from './query-refresh-model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
function _forTrack0($index, $item) { return this.KeyOf($item, $index); }
|
|
7
|
+
const _forTrack1 = ($index, $item) => $item.Collection;
|
|
8
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_4_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
+
i0.ɵɵelementStart(0, "span", 7);
|
|
10
|
+
i0.ɵɵtext(1);
|
|
11
|
+
i0.ɵɵelementEnd();
|
|
12
|
+
} if (rf & 2) {
|
|
13
|
+
const totals_r1 = i0.ɵɵnextContext();
|
|
14
|
+
const output_r2 = i0.ɵɵnextContext();
|
|
15
|
+
i0.ɵɵadvance();
|
|
16
|
+
i0.ɵɵtextInterpolate2("", totals_r1.Refreshed, " ", output_r2.dryRun ? "would change" : "refreshed");
|
|
17
|
+
} }
|
|
18
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_4_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
19
|
+
i0.ɵɵelementStart(0, "span", 8);
|
|
20
|
+
i0.ɵɵtext(1);
|
|
21
|
+
i0.ɵɵelementEnd();
|
|
22
|
+
} if (rf & 2) {
|
|
23
|
+
const totals_r1 = i0.ɵɵnextContext();
|
|
24
|
+
i0.ɵɵadvance();
|
|
25
|
+
i0.ɵɵtextInterpolate1("", totals_r1.Unchanged, " unchanged");
|
|
26
|
+
} }
|
|
27
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_4_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
28
|
+
i0.ɵɵelementStart(0, "span", 9);
|
|
29
|
+
i0.ɵɵtext(1);
|
|
30
|
+
i0.ɵɵelementEnd();
|
|
31
|
+
} if (rf & 2) {
|
|
32
|
+
const totals_r1 = i0.ɵɵnextContext();
|
|
33
|
+
i0.ɵɵadvance();
|
|
34
|
+
i0.ɵɵtextInterpolate1("", totals_r1.Failed, " failed");
|
|
35
|
+
} }
|
|
36
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_4_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
37
|
+
i0.ɵɵelementStart(0, "span", 10);
|
|
38
|
+
i0.ɵɵtext(1);
|
|
39
|
+
i0.ɵɵelementEnd();
|
|
40
|
+
} if (rf & 2) {
|
|
41
|
+
const totals_r1 = i0.ɵɵnextContext();
|
|
42
|
+
i0.ɵɵadvance();
|
|
43
|
+
i0.ɵɵtextInterpolate1("", totals_r1.NotPermitted + totals_r1.Unavailable, " skipped");
|
|
44
|
+
} }
|
|
45
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
46
|
+
i0.ɵɵelementStart(0, "span", 3);
|
|
47
|
+
i0.ɵɵconditionalCreate(1, QueryRefreshReportComponent_Conditional_0_Conditional_4_Conditional_1_Template, 2, 2, "span", 7);
|
|
48
|
+
i0.ɵɵconditionalCreate(2, QueryRefreshReportComponent_Conditional_0_Conditional_4_Conditional_2_Template, 2, 1, "span", 8);
|
|
49
|
+
i0.ɵɵconditionalCreate(3, QueryRefreshReportComponent_Conditional_0_Conditional_4_Conditional_3_Template, 2, 1, "span", 9);
|
|
50
|
+
i0.ɵɵconditionalCreate(4, QueryRefreshReportComponent_Conditional_0_Conditional_4_Conditional_4_Template, 2, 1, "span", 10);
|
|
51
|
+
i0.ɵɵelementEnd();
|
|
52
|
+
} if (rf & 2) {
|
|
53
|
+
const totals_r1 = ctx;
|
|
54
|
+
i0.ɵɵadvance();
|
|
55
|
+
i0.ɵɵconditional(totals_r1.Refreshed > 0 ? 1 : -1);
|
|
56
|
+
i0.ɵɵadvance();
|
|
57
|
+
i0.ɵɵconditional(totals_r1.Unchanged > 0 ? 2 : -1);
|
|
58
|
+
i0.ɵɵadvance();
|
|
59
|
+
i0.ɵɵconditional(totals_r1.Failed > 0 ? 3 : -1);
|
|
60
|
+
i0.ɵɵadvance();
|
|
61
|
+
i0.ɵɵconditional(totals_r1.NotPermitted + totals_r1.Unavailable > 0 ? 4 : -1);
|
|
62
|
+
} }
|
|
63
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_5_For_4_Template(rf, ctx) { if (rf & 1) {
|
|
64
|
+
i0.ɵɵelementStart(0, "span", 12);
|
|
65
|
+
i0.ɵɵtext(1);
|
|
66
|
+
i0.ɵɵelementEnd();
|
|
67
|
+
} if (rf & 2) {
|
|
68
|
+
const cycle_r3 = ctx.$implicit;
|
|
69
|
+
i0.ɵɵadvance();
|
|
70
|
+
i0.ɵɵtextInterpolate(cycle_r3.join(" \u2192 "));
|
|
71
|
+
} }
|
|
72
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
73
|
+
i0.ɵɵelementStart(0, "div", 4);
|
|
74
|
+
i0.ɵɵelement(1, "i", 11);
|
|
75
|
+
i0.ɵɵtext(2, " These queries compose each other in a cycle and were each refreshed once: ");
|
|
76
|
+
i0.ɵɵrepeaterCreate(3, QueryRefreshReportComponent_Conditional_0_Conditional_5_For_4_Template, 2, 1, "span", 12, i0.ɵɵrepeaterTrackByIndex);
|
|
77
|
+
i0.ɵɵelementEnd();
|
|
78
|
+
} if (rf & 2) {
|
|
79
|
+
const output_r2 = i0.ɵɵnextContext();
|
|
80
|
+
i0.ɵɵadvance(3);
|
|
81
|
+
i0.ɵɵrepeater(output_r2.cycles);
|
|
82
|
+
} }
|
|
83
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
84
|
+
i0.ɵɵelementStart(0, "div", 5);
|
|
85
|
+
i0.ɵɵtext(1, "No queries matched.");
|
|
86
|
+
i0.ɵɵelementEnd();
|
|
87
|
+
} }
|
|
88
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
89
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
90
|
+
i0.ɵɵelementStart(0, "button", 24);
|
|
91
|
+
i0.ɵɵlistener("click", function QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r4 = i0.ɵɵnextContext(); const report_r6 = ctx_r4.$implicit; const ɵ$index_77_r7 = ctx_r4.$index; const ctx_r7 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r7.ToggleExpanded(report_r6, ɵ$index_77_r7)); });
|
|
92
|
+
i0.ɵɵelement(1, "i", 25);
|
|
93
|
+
i0.ɵɵelementEnd();
|
|
94
|
+
} if (rf & 2) {
|
|
95
|
+
const ctx_r4 = i0.ɵɵnextContext();
|
|
96
|
+
const report_r6 = ctx_r4.$implicit;
|
|
97
|
+
const ɵ$index_77_r7 = ctx_r4.$index;
|
|
98
|
+
const ctx_r7 = i0.ɵɵnextContext(3);
|
|
99
|
+
i0.ɵɵattribute("aria-expanded", ctx_r7.IsExpanded(report_r6, ɵ$index_77_r7))("aria-label", (ctx_r7.IsExpanded(report_r6, ɵ$index_77_r7) ? "Hide" : "Show") + " details for " + (report_r6.queryName || report_r6.queryID));
|
|
100
|
+
i0.ɵɵadvance();
|
|
101
|
+
i0.ɵɵclassProp("fa-chevron-down", ctx_r7.IsExpanded(report_r6, ɵ$index_77_r7))("fa-chevron-right", !ctx_r7.IsExpanded(report_r6, ɵ$index_77_r7));
|
|
102
|
+
} }
|
|
103
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
104
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
105
|
+
i0.ɵɵelementStart(0, "button", 26);
|
|
106
|
+
i0.ɵɵlistener("click", function QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const report_r6 = i0.ɵɵnextContext().$implicit; const ctx_r7 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r7.OpenQuery.emit(report_r6.queryID)); });
|
|
107
|
+
i0.ɵɵtext(1);
|
|
108
|
+
i0.ɵɵelementEnd();
|
|
109
|
+
} if (rf & 2) {
|
|
110
|
+
const report_r6 = i0.ɵɵnextContext().$implicit;
|
|
111
|
+
i0.ɵɵadvance();
|
|
112
|
+
i0.ɵɵtextInterpolate(report_r6.queryName);
|
|
113
|
+
} }
|
|
114
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
115
|
+
i0.ɵɵtext(0);
|
|
116
|
+
} if (rf & 2) {
|
|
117
|
+
const report_r6 = i0.ɵɵnextContext().$implicit;
|
|
118
|
+
i0.ɵɵtextInterpolate1(" ", report_r6.queryName || report_r6.queryID, " ");
|
|
119
|
+
} }
|
|
120
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
121
|
+
i0.ɵɵelementStart(0, "span", 27);
|
|
122
|
+
i0.ɵɵtext(1);
|
|
123
|
+
i0.ɵɵelementEnd();
|
|
124
|
+
} if (rf & 2) {
|
|
125
|
+
const report_r6 = i0.ɵɵnextContext().$implicit;
|
|
126
|
+
const ctx_r7 = i0.ɵɵnextContext(3);
|
|
127
|
+
i0.ɵɵclassMap("qrr-status " + ctx_r7.StatusClass(report_r6));
|
|
128
|
+
i0.ɵɵadvance();
|
|
129
|
+
i0.ɵɵtextInterpolate(report_r6.extractionStatus);
|
|
130
|
+
} }
|
|
131
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
132
|
+
i0.ɵɵelementStart(0, "span", 22);
|
|
133
|
+
i0.ɵɵtext(1, "\u2014");
|
|
134
|
+
i0.ɵɵelementEnd();
|
|
135
|
+
} }
|
|
136
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_20_For_5_For_5_Template(rf, ctx) { if (rf & 1) {
|
|
137
|
+
i0.ɵɵelementStart(0, "li", 34)(1, "span", 37);
|
|
138
|
+
i0.ɵɵtext(2, "+");
|
|
139
|
+
i0.ɵɵelementEnd();
|
|
140
|
+
i0.ɵɵtext(3);
|
|
141
|
+
i0.ɵɵelementEnd();
|
|
142
|
+
} if (rf & 2) {
|
|
143
|
+
const c_r10 = ctx.$implicit;
|
|
144
|
+
i0.ɵɵadvance(3);
|
|
145
|
+
i0.ɵɵtextInterpolate1(" ", c_r10.name);
|
|
146
|
+
} }
|
|
147
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_20_For_5_For_7_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
148
|
+
i0.ɵɵelementStart(0, "span", 38);
|
|
149
|
+
i0.ɵɵtext(1);
|
|
150
|
+
i0.ɵɵelementEnd();
|
|
151
|
+
} if (rf & 2) {
|
|
152
|
+
const c_r11 = i0.ɵɵnextContext().$implicit;
|
|
153
|
+
i0.ɵɵadvance();
|
|
154
|
+
i0.ɵɵtextInterpolate1("(", c_r11.changedColumns.join(", "), ")");
|
|
155
|
+
} }
|
|
156
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_20_For_5_For_7_Template(rf, ctx) { if (rf & 1) {
|
|
157
|
+
i0.ɵɵelementStart(0, "li", 35)(1, "span", 37);
|
|
158
|
+
i0.ɵɵtext(2, "~");
|
|
159
|
+
i0.ɵɵelementEnd();
|
|
160
|
+
i0.ɵɵtext(3);
|
|
161
|
+
i0.ɵɵconditionalCreate(4, QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_20_For_5_For_7_Conditional_4_Template, 2, 1, "span", 38);
|
|
162
|
+
i0.ɵɵelementEnd();
|
|
163
|
+
} if (rf & 2) {
|
|
164
|
+
const c_r11 = ctx.$implicit;
|
|
165
|
+
i0.ɵɵadvance(3);
|
|
166
|
+
i0.ɵɵtextInterpolate1(" ", c_r11.name, " ");
|
|
167
|
+
i0.ɵɵadvance();
|
|
168
|
+
i0.ɵɵconditional(c_r11.changedColumns.length > 0 ? 4 : -1);
|
|
169
|
+
} }
|
|
170
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_20_For_5_For_9_Template(rf, ctx) { if (rf & 1) {
|
|
171
|
+
i0.ɵɵelementStart(0, "li", 36)(1, "span", 37);
|
|
172
|
+
i0.ɵɵtext(2, "\u2212");
|
|
173
|
+
i0.ɵɵelementEnd();
|
|
174
|
+
i0.ɵɵtext(3);
|
|
175
|
+
i0.ɵɵelementEnd();
|
|
176
|
+
} if (rf & 2) {
|
|
177
|
+
const c_r12 = ctx.$implicit;
|
|
178
|
+
i0.ɵɵadvance(3);
|
|
179
|
+
i0.ɵɵtextInterpolate1(" ", c_r12.name);
|
|
180
|
+
} }
|
|
181
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_20_For_5_Template(rf, ctx) { if (rf & 1) {
|
|
182
|
+
i0.ɵɵelementStart(0, "div", 30)(1, "div", 32);
|
|
183
|
+
i0.ɵɵtext(2);
|
|
184
|
+
i0.ɵɵelementEnd();
|
|
185
|
+
i0.ɵɵelementStart(3, "ul", 33);
|
|
186
|
+
i0.ɵɵrepeaterCreate(4, QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_20_For_5_For_5_Template, 4, 1, "li", 34, i0.ɵɵrepeaterTrackByIndex);
|
|
187
|
+
i0.ɵɵrepeaterCreate(6, QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_20_For_5_For_7_Template, 5, 2, "li", 35, i0.ɵɵrepeaterTrackByIndex);
|
|
188
|
+
i0.ɵɵrepeaterCreate(8, QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_20_For_5_For_9_Template, 4, 1, "li", 36, i0.ɵɵrepeaterTrackByIndex);
|
|
189
|
+
i0.ɵɵelementEnd()();
|
|
190
|
+
} if (rf & 2) {
|
|
191
|
+
const group_r13 = ctx.$implicit;
|
|
192
|
+
i0.ɵɵadvance(2);
|
|
193
|
+
i0.ɵɵtextInterpolate(group_r13.Collection);
|
|
194
|
+
i0.ɵɵadvance(2);
|
|
195
|
+
i0.ɵɵrepeater(group_r13.Added);
|
|
196
|
+
i0.ɵɵadvance(2);
|
|
197
|
+
i0.ɵɵrepeater(group_r13.Updated);
|
|
198
|
+
i0.ɵɵadvance(2);
|
|
199
|
+
i0.ɵɵrepeater(group_r13.Removed);
|
|
200
|
+
} }
|
|
201
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_20_Conditional_6_For_5_Template(rf, ctx) { if (rf & 1) {
|
|
202
|
+
i0.ɵɵelementStart(0, "li", 39)(1, "span", 37);
|
|
203
|
+
i0.ɵɵtext(2, "!");
|
|
204
|
+
i0.ɵɵelementEnd();
|
|
205
|
+
i0.ɵɵtext(3);
|
|
206
|
+
i0.ɵɵelementEnd();
|
|
207
|
+
} if (rf & 2) {
|
|
208
|
+
const name_r14 = ctx.$implicit;
|
|
209
|
+
i0.ɵɵadvance(3);
|
|
210
|
+
i0.ɵɵtextInterpolate1(" ", name_r14);
|
|
211
|
+
} }
|
|
212
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_20_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
213
|
+
i0.ɵɵelementStart(0, "div", 30)(1, "div", 32);
|
|
214
|
+
i0.ɵɵtext(2, "Parameters the SQL no longer uses (kept)");
|
|
215
|
+
i0.ɵɵelementEnd();
|
|
216
|
+
i0.ɵɵelementStart(3, "ul", 33);
|
|
217
|
+
i0.ɵɵrepeaterCreate(4, QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_20_Conditional_6_For_5_Template, 4, 1, "li", 39, i0.ɵɵrepeaterTrackByIdentity);
|
|
218
|
+
i0.ɵɵelementEnd()();
|
|
219
|
+
} if (rf & 2) {
|
|
220
|
+
const report_r6 = i0.ɵɵnextContext(2).$implicit;
|
|
221
|
+
i0.ɵɵadvance(4);
|
|
222
|
+
i0.ɵɵrepeater(report_r6.flagged);
|
|
223
|
+
} }
|
|
224
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_20_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
225
|
+
i0.ɵɵelementStart(0, "div", 30)(1, "div", 32);
|
|
226
|
+
i0.ɵɵtext(2, "Query columns");
|
|
227
|
+
i0.ɵɵelementEnd();
|
|
228
|
+
i0.ɵɵelementStart(3, "div", 38);
|
|
229
|
+
i0.ɵɵtext(4);
|
|
230
|
+
i0.ɵɵelementEnd()();
|
|
231
|
+
} if (rf & 2) {
|
|
232
|
+
const report_r6 = i0.ɵɵnextContext(2).$implicit;
|
|
233
|
+
i0.ɵɵadvance(4);
|
|
234
|
+
i0.ɵɵtextInterpolate(report_r6.queryColumns.join(", "));
|
|
235
|
+
} }
|
|
236
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_20_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
237
|
+
i0.ɵɵelement(0, "mj-query-diagnostics", 31);
|
|
238
|
+
} if (rf & 2) {
|
|
239
|
+
const report_r6 = i0.ɵɵnextContext(2).$implicit;
|
|
240
|
+
const ctx_r7 = i0.ɵɵnextContext(3);
|
|
241
|
+
i0.ɵɵproperty("Diagnostics", ctx_r7.DiagnosticsOf(report_r6))("Severity", report_r6.outcome === "Failed" || report_r6.extractionStatus === "Error" ? "error" : "warning");
|
|
242
|
+
} }
|
|
243
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_20_Template(rf, ctx) { if (rf & 1) {
|
|
244
|
+
i0.ɵɵelementStart(0, "tr", 23);
|
|
245
|
+
i0.ɵɵelement(1, "td");
|
|
246
|
+
i0.ɵɵelementStart(2, "td", 28)(3, "div", 29);
|
|
247
|
+
i0.ɵɵrepeaterCreate(4, QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_20_For_5_Template, 10, 1, "div", 30, _forTrack1);
|
|
248
|
+
i0.ɵɵconditionalCreate(6, QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_20_Conditional_6_Template, 6, 0, "div", 30);
|
|
249
|
+
i0.ɵɵconditionalCreate(7, QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_20_Conditional_7_Template, 5, 1, "div", 30);
|
|
250
|
+
i0.ɵɵconditionalCreate(8, QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_20_Conditional_8_Template, 1, 2, "mj-query-diagnostics", 31);
|
|
251
|
+
i0.ɵɵelementEnd()()();
|
|
252
|
+
} if (rf & 2) {
|
|
253
|
+
const report_r6 = i0.ɵɵnextContext().$implicit;
|
|
254
|
+
const ctx_r7 = i0.ɵɵnextContext(3);
|
|
255
|
+
i0.ɵɵadvance(4);
|
|
256
|
+
i0.ɵɵrepeater(ctx_r7.ChangesOf(report_r6));
|
|
257
|
+
i0.ɵɵadvance(2);
|
|
258
|
+
i0.ɵɵconditional(report_r6.flagged.length > 0 ? 6 : -1);
|
|
259
|
+
i0.ɵɵadvance();
|
|
260
|
+
i0.ɵɵconditional(report_r6.queryColumns.length > 0 ? 7 : -1);
|
|
261
|
+
i0.ɵɵadvance();
|
|
262
|
+
i0.ɵɵconditional(report_r6.diagnostics.length > 0 ? 8 : -1);
|
|
263
|
+
} }
|
|
264
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Template(rf, ctx) { if (rf & 1) {
|
|
265
|
+
i0.ɵɵelementStart(0, "tr", 16)(1, "td", 13);
|
|
266
|
+
i0.ɵɵconditionalCreate(2, QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_2_Template, 2, 6, "button", 17);
|
|
267
|
+
i0.ɵɵelementEnd();
|
|
268
|
+
i0.ɵɵelementStart(3, "td", 18);
|
|
269
|
+
i0.ɵɵconditionalCreate(4, QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_4_Template, 2, 1, "button", 19)(5, QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_5_Template, 1, 1);
|
|
270
|
+
i0.ɵɵelementEnd();
|
|
271
|
+
i0.ɵɵelementStart(6, "td")(7, "span", 20);
|
|
272
|
+
i0.ɵɵtext(8);
|
|
273
|
+
i0.ɵɵelementEnd()();
|
|
274
|
+
i0.ɵɵelementStart(9, "td");
|
|
275
|
+
i0.ɵɵconditionalCreate(10, QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_10_Template, 2, 3, "span", 21)(11, QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_11_Template, 2, 0, "span", 22);
|
|
276
|
+
i0.ɵɵelementEnd();
|
|
277
|
+
i0.ɵɵelementStart(12, "td", 15);
|
|
278
|
+
i0.ɵɵtext(13);
|
|
279
|
+
i0.ɵɵelementEnd();
|
|
280
|
+
i0.ɵɵelementStart(14, "td", 15);
|
|
281
|
+
i0.ɵɵtext(15);
|
|
282
|
+
i0.ɵɵelementEnd();
|
|
283
|
+
i0.ɵɵelementStart(16, "td", 15);
|
|
284
|
+
i0.ɵɵtext(17);
|
|
285
|
+
i0.ɵɵelementEnd();
|
|
286
|
+
i0.ɵɵelementStart(18, "td", 15);
|
|
287
|
+
i0.ɵɵtext(19);
|
|
288
|
+
i0.ɵɵelementEnd()();
|
|
289
|
+
i0.ɵɵconditionalCreate(20, QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Conditional_20_Template, 9, 3, "tr", 23);
|
|
290
|
+
} if (rf & 2) {
|
|
291
|
+
const report_r6 = ctx.$implicit;
|
|
292
|
+
const ɵ$index_77_r7 = ctx.$index;
|
|
293
|
+
const ctx_r7 = i0.ɵɵnextContext(3);
|
|
294
|
+
const counts_r15 = ctx_r7.CountsOf(report_r6);
|
|
295
|
+
i0.ɵɵclassProp("qrr-row--expanded", ctx_r7.IsExpanded(report_r6, ɵ$index_77_r7));
|
|
296
|
+
i0.ɵɵadvance(2);
|
|
297
|
+
i0.ɵɵconditional(ctx_r7.HasDetails(report_r6) ? 2 : -1);
|
|
298
|
+
i0.ɵɵadvance(2);
|
|
299
|
+
i0.ɵɵconditional(ctx_r7.AllowOpenQuery && report_r6.queryName ? 4 : 5);
|
|
300
|
+
i0.ɵɵadvance(3);
|
|
301
|
+
i0.ɵɵclassMap("qrr-pill " + ctx_r7.OutcomeClass(report_r6));
|
|
302
|
+
i0.ɵɵadvance();
|
|
303
|
+
i0.ɵɵtextInterpolate(ctx_r7.OutcomeLabel(report_r6));
|
|
304
|
+
i0.ɵɵadvance(2);
|
|
305
|
+
i0.ɵɵconditional(report_r6.extractionStatus ? 10 : 11);
|
|
306
|
+
i0.ɵɵadvance(2);
|
|
307
|
+
i0.ɵɵclassProp("qrr-zero", counts_r15.Added === 0);
|
|
308
|
+
i0.ɵɵadvance();
|
|
309
|
+
i0.ɵɵtextInterpolate(counts_r15.Added);
|
|
310
|
+
i0.ɵɵadvance();
|
|
311
|
+
i0.ɵɵclassProp("qrr-zero", counts_r15.Updated === 0);
|
|
312
|
+
i0.ɵɵadvance();
|
|
313
|
+
i0.ɵɵtextInterpolate(counts_r15.Updated);
|
|
314
|
+
i0.ɵɵadvance();
|
|
315
|
+
i0.ɵɵclassProp("qrr-zero", counts_r15.Removed === 0);
|
|
316
|
+
i0.ɵɵadvance();
|
|
317
|
+
i0.ɵɵtextInterpolate(counts_r15.Removed);
|
|
318
|
+
i0.ɵɵadvance();
|
|
319
|
+
i0.ɵɵclassProp("qrr-zero", counts_r15.Flagged === 0);
|
|
320
|
+
i0.ɵɵadvance();
|
|
321
|
+
i0.ɵɵtextInterpolate(counts_r15.Flagged);
|
|
322
|
+
i0.ɵɵadvance();
|
|
323
|
+
i0.ɵɵconditional(ctx_r7.IsExpanded(report_r6, ɵ$index_77_r7) ? 20 : -1);
|
|
324
|
+
} }
|
|
325
|
+
function QueryRefreshReportComponent_Conditional_0_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
326
|
+
i0.ɵɵelementStart(0, "table", 6)(1, "thead")(2, "tr")(3, "th", 13)(4, "span", 14);
|
|
327
|
+
i0.ɵɵtext(5, "Details");
|
|
328
|
+
i0.ɵɵelementEnd()();
|
|
329
|
+
i0.ɵɵelementStart(6, "th");
|
|
330
|
+
i0.ɵɵtext(7, "Query");
|
|
331
|
+
i0.ɵɵelementEnd();
|
|
332
|
+
i0.ɵɵelementStart(8, "th");
|
|
333
|
+
i0.ɵɵtext(9, "Outcome");
|
|
334
|
+
i0.ɵɵelementEnd();
|
|
335
|
+
i0.ɵɵelementStart(10, "th");
|
|
336
|
+
i0.ɵɵtext(11, "Extraction");
|
|
337
|
+
i0.ɵɵelementEnd();
|
|
338
|
+
i0.ɵɵelementStart(12, "th", 15);
|
|
339
|
+
i0.ɵɵtext(13, "Added");
|
|
340
|
+
i0.ɵɵelementEnd();
|
|
341
|
+
i0.ɵɵelementStart(14, "th", 15);
|
|
342
|
+
i0.ɵɵtext(15, "Updated");
|
|
343
|
+
i0.ɵɵelementEnd();
|
|
344
|
+
i0.ɵɵelementStart(16, "th", 15);
|
|
345
|
+
i0.ɵɵtext(17, "Removed");
|
|
346
|
+
i0.ɵɵelementEnd();
|
|
347
|
+
i0.ɵɵelementStart(18, "th", 15);
|
|
348
|
+
i0.ɵɵtext(19, "Flagged");
|
|
349
|
+
i0.ɵɵelementEnd()()();
|
|
350
|
+
i0.ɵɵelementStart(20, "tbody");
|
|
351
|
+
i0.ɵɵrepeaterCreate(21, QueryRefreshReportComponent_Conditional_0_Conditional_7_For_22_Template, 21, 21, null, null, _forTrack0, true);
|
|
352
|
+
i0.ɵɵelementEnd()();
|
|
353
|
+
} if (rf & 2) {
|
|
354
|
+
const ctx_r7 = i0.ɵɵnextContext(2);
|
|
355
|
+
i0.ɵɵadvance(21);
|
|
356
|
+
i0.ɵɵrepeater(ctx_r7.Reports);
|
|
357
|
+
} }
|
|
358
|
+
function QueryRefreshReportComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
359
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "span", 2);
|
|
360
|
+
i0.ɵɵtext(3);
|
|
361
|
+
i0.ɵɵelementEnd();
|
|
362
|
+
i0.ɵɵconditionalCreate(4, QueryRefreshReportComponent_Conditional_0_Conditional_4_Template, 5, 4, "span", 3);
|
|
363
|
+
i0.ɵɵelementEnd();
|
|
364
|
+
i0.ɵɵconditionalCreate(5, QueryRefreshReportComponent_Conditional_0_Conditional_5_Template, 5, 0, "div", 4);
|
|
365
|
+
i0.ɵɵconditionalCreate(6, QueryRefreshReportComponent_Conditional_0_Conditional_6_Template, 2, 0, "div", 5)(7, QueryRefreshReportComponent_Conditional_0_Conditional_7_Template, 23, 0, "table", 6);
|
|
366
|
+
i0.ɵɵelementEnd();
|
|
367
|
+
} if (rf & 2) {
|
|
368
|
+
let tmp_3_0;
|
|
369
|
+
const output_r2 = ctx;
|
|
370
|
+
const ctx_r7 = i0.ɵɵnextContext();
|
|
371
|
+
i0.ɵɵadvance(3);
|
|
372
|
+
i0.ɵɵtextInterpolate(output_r2.summary);
|
|
373
|
+
i0.ɵɵadvance();
|
|
374
|
+
i0.ɵɵconditional((tmp_3_0 = ctx_r7.Totals) ? 4 : -1, tmp_3_0);
|
|
375
|
+
i0.ɵɵadvance();
|
|
376
|
+
i0.ɵɵconditional(output_r2.cycles.length > 0 ? 5 : -1);
|
|
377
|
+
i0.ɵɵadvance();
|
|
378
|
+
i0.ɵɵconditional(ctx_r7.Reports.length === 0 ? 6 : 7);
|
|
379
|
+
} }
|
|
380
|
+
/**
|
|
381
|
+
* `<mj-query-refresh-report>` — the report of a query metadata refresh: one row per query with its
|
|
382
|
+
* outcome, the extraction status it records and how many fields, parameters, entities and
|
|
383
|
+
* dependencies it adds, updates and removes. A row with details expands to list each change, the
|
|
384
|
+
* authored parameters the SQL no longer uses, and the run's diagnostics.
|
|
385
|
+
*
|
|
386
|
+
* Presentational: the operation's output in, `OpenQuery` out (the host decides where that goes).
|
|
387
|
+
* A row starts expanded when the report holds a single query.
|
|
388
|
+
*/
|
|
389
|
+
export class QueryRefreshReportComponent {
|
|
390
|
+
_output = null;
|
|
391
|
+
expanded = new Set();
|
|
392
|
+
/** The refresh's output. */
|
|
393
|
+
set Output(value) {
|
|
394
|
+
this._output = value;
|
|
395
|
+
this.expanded = new Set(value && value.reports.length === 1 ? [this.keyOf(value.reports[0], 0)] : []);
|
|
396
|
+
}
|
|
397
|
+
get Output() {
|
|
398
|
+
return this._output;
|
|
399
|
+
}
|
|
400
|
+
/** Whether a query's name is a button that emits {@link OpenQuery}. */
|
|
401
|
+
AllowOpenQuery = false;
|
|
402
|
+
/** The ID of a query the user asked to open. */
|
|
403
|
+
OpenQuery = new EventEmitter();
|
|
404
|
+
get Reports() {
|
|
405
|
+
return this._output?.reports ?? [];
|
|
406
|
+
}
|
|
407
|
+
get Totals() {
|
|
408
|
+
return this._output ? QueryRefreshOutcomeTotals(this._output) : null;
|
|
409
|
+
}
|
|
410
|
+
KeyOf(report, index) {
|
|
411
|
+
return this.keyOf(report, index);
|
|
412
|
+
}
|
|
413
|
+
CountsOf(report) {
|
|
414
|
+
return QueryRefreshCountsOf(report);
|
|
415
|
+
}
|
|
416
|
+
OutcomeLabel(report) {
|
|
417
|
+
return QueryRefreshOutcomeLabel(report, this._output?.dryRun === true);
|
|
418
|
+
}
|
|
419
|
+
/** The outcome as a CSS modifier: `refreshed`, `unchanged`, `notpermitted`, `unavailable`, `failed`. */
|
|
420
|
+
OutcomeClass(report) {
|
|
421
|
+
return `outcome-${report.outcome.toLowerCase()}`;
|
|
422
|
+
}
|
|
423
|
+
StatusClass(report) {
|
|
424
|
+
return `status-${(report.extractionStatus ?? 'none').toLowerCase()}`;
|
|
425
|
+
}
|
|
426
|
+
ChangesOf(report) {
|
|
427
|
+
return QueryRefreshChangesByCollection(report);
|
|
428
|
+
}
|
|
429
|
+
DiagnosticsOf(report) {
|
|
430
|
+
return ParseQueryDiagnostics(report.diagnostics.join('\n'));
|
|
431
|
+
}
|
|
432
|
+
/** Whether a report has anything to show when expanded. */
|
|
433
|
+
HasDetails(report) {
|
|
434
|
+
return report.added.length + report.updated.length + report.removed.length + report.flagged.length + report.diagnostics.length > 0
|
|
435
|
+
|| report.queryColumns.length > 0;
|
|
436
|
+
}
|
|
437
|
+
IsExpanded(report, index) {
|
|
438
|
+
return this.expanded.has(this.keyOf(report, index));
|
|
439
|
+
}
|
|
440
|
+
ToggleExpanded(report, index) {
|
|
441
|
+
const key = this.keyOf(report, index);
|
|
442
|
+
if (this.expanded.has(key))
|
|
443
|
+
this.expanded.delete(key);
|
|
444
|
+
else
|
|
445
|
+
this.expanded.add(key);
|
|
446
|
+
}
|
|
447
|
+
keyOf(report, index) {
|
|
448
|
+
return `${report.queryID}#${index}`;
|
|
449
|
+
}
|
|
450
|
+
static ɵfac = function QueryRefreshReportComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || QueryRefreshReportComponent)(); };
|
|
451
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryRefreshReportComponent, selectors: [["mj-query-refresh-report"]], inputs: { Output: "Output", AllowOpenQuery: "AllowOpenQuery" }, outputs: { OpenQuery: "OpenQuery" }, decls: 1, vars: 1, consts: [[1, "qrr"], [1, "qrr-summary"], [1, "qrr-summary-text"], [1, "qrr-totals"], [1, "qrr-cycles"], [1, "qrr-empty"], [1, "qrr-table"], [1, "qrr-pill", "outcome-refreshed"], [1, "qrr-pill", "outcome-unchanged"], [1, "qrr-pill", "outcome-failed"], [1, "qrr-pill", "outcome-notpermitted"], [1, "fa-solid", "fa-rotate"], [1, "qrr-cycle"], [1, "qrr-col-toggle"], [1, "qrr-sr-only"], [1, "qrr-num"], [1, "qrr-row"], ["type", "button", 1, "qrr-toggle"], [1, "qrr-name"], ["type", "button", 1, "qrr-open"], [1, "qrr-pill"], [1, "qrr-status", 3, "class"], [1, "qrr-muted"], [1, "qrr-detail-row"], ["type", "button", 1, "qrr-toggle", 3, "click"], [1, "fa-solid"], ["type", "button", 1, "qrr-open", 3, "click"], [1, "qrr-status"], ["colspan", "7"], [1, "qrr-detail"], [1, "qrr-group"], [3, "Diagnostics", "Severity"], [1, "qrr-group-title"], [1, "qrr-changes"], [1, "qrr-change", "qrr-change--added"], [1, "qrr-change", "qrr-change--updated"], [1, "qrr-change", "qrr-change--removed"], [1, "qrr-sign"], [1, "qrr-cols"], [1, "qrr-change", "qrr-change--flagged"]], template: function QueryRefreshReportComponent_Template(rf, ctx) { if (rf & 1) {
|
|
452
|
+
i0.ɵɵconditionalCreate(0, QueryRefreshReportComponent_Conditional_0_Template, 8, 4, "div", 0);
|
|
453
|
+
} if (rf & 2) {
|
|
454
|
+
let tmp_0_0;
|
|
455
|
+
i0.ɵɵconditional((tmp_0_0 = ctx.Output) ? 0 : -1, tmp_0_0);
|
|
456
|
+
} }, dependencies: [QueryDiagnosticsComponent], styles: ["[_nghost-%COMP%] {\n display: block;\n}\n\n.qrr[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-3);\n font-size: var(--mj-text-sm);\n color: var(--mj-text-primary);\n}\n\n.qrr-summary[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n}\n\n.qrr-summary-text[_ngcontent-%COMP%] {\n color: var(--mj-text-secondary);\n}\n\n.qrr-totals[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n gap: var(--mj-space-1);\n}\n\n.qrr-cycles[_ngcontent-%COMP%] {\n color: var(--mj-text-secondary);\n display: flex;\n flex-wrap: wrap;\n gap: var(--mj-space-2);\n align-items: center;\n}\n\n.qrr-cycle[_ngcontent-%COMP%] {\n font-family: var(--mj-font-family-mono);\n font-size: var(--mj-text-xs);\n}\n\n.qrr-empty[_ngcontent-%COMP%] {\n color: var(--mj-text-muted);\n padding: var(--mj-space-4);\n text-align: center;\n}\n\n.qrr-table[_ngcontent-%COMP%] {\n width: 100%;\n border-collapse: collapse;\n}\n\n.qrr-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%] {\n text-align: left;\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-xs);\n border-bottom: 1px solid var(--mj-border-default);\n padding: var(--mj-space-2);\n position: sticky;\n top: 0;\n background: var(--mj-bg-surface);\n}\n\n.qrr-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n padding: var(--mj-space-2);\n border-bottom: 1px solid var(--mj-border-subtle);\n vertical-align: middle;\n}\n\n.qrr-row--expanded[_ngcontent-%COMP%] td[_ngcontent-%COMP%] {\n border-bottom-color: transparent;\n}\n\n.qrr-num[_ngcontent-%COMP%] {\n text-align: right;\n font-variant-numeric: tabular-nums;\n width: 4.5rem;\n}\n\n.qrr-zero[_ngcontent-%COMP%] {\n color: var(--mj-text-muted);\n}\n\n.qrr-col-toggle[_ngcontent-%COMP%] {\n width: 2rem;\n}\n\n.qrr-toggle[_ngcontent-%COMP%], \n.qrr-open[_ngcontent-%COMP%] {\n background: none;\n border: none;\n padding: 0;\n cursor: pointer;\n font: inherit;\n}\n\n.qrr-toggle[_ngcontent-%COMP%] {\n color: var(--mj-text-secondary);\n width: 1.5rem;\n height: 1.5rem;\n border-radius: var(--mj-radius-sm);\n}\n\n.qrr-toggle[_ngcontent-%COMP%]:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.qrr-open[_ngcontent-%COMP%] {\n color: var(--mj-brand-primary);\n text-align: left;\n}\n\n.qrr-open[_ngcontent-%COMP%]:hover {\n text-decoration: underline;\n}\n\n.qrr-toggle[_ngcontent-%COMP%]:focus-visible, \n.qrr-open[_ngcontent-%COMP%]:focus-visible {\n outline: 2px solid var(--mj-brand-primary);\n outline-offset: 2px;\n}\n\n.qrr-pill[_ngcontent-%COMP%], \n.qrr-status[_ngcontent-%COMP%] {\n --qrr-accent: var(--mj-text-muted);\n display: inline-block;\n border-radius: var(--mj-radius-full);\n padding: 0 var(--mj-space-2);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-medium);\n white-space: nowrap;\n color: var(--qrr-accent);\n background: color-mix(in srgb, var(--qrr-accent) 12%, transparent);\n border: 1px solid color-mix(in srgb, var(--qrr-accent) 30%, transparent);\n}\n\n.outcome-refreshed[_ngcontent-%COMP%] { --qrr-accent: var(--mj-brand-primary); }\n.outcome-unchanged[_ngcontent-%COMP%] { --qrr-accent: var(--mj-text-muted); }\n.outcome-failed[_ngcontent-%COMP%] { --qrr-accent: var(--mj-status-error); }\n.outcome-notpermitted[_ngcontent-%COMP%], \n.outcome-unavailable[_ngcontent-%COMP%] { --qrr-accent: var(--mj-text-muted); }\n\n.status-ok[_ngcontent-%COMP%] { --qrr-accent: var(--mj-status-success); }\n.status-warning[_ngcontent-%COMP%] { --qrr-accent: var(--mj-status-warning); }\n.status-error[_ngcontent-%COMP%] { --qrr-accent: var(--mj-status-error); }\n.status-skipped[_ngcontent-%COMP%] { --qrr-accent: var(--mj-text-muted); }\n\n.qrr-muted[_ngcontent-%COMP%] {\n color: var(--mj-text-muted);\n}\n\n.qrr-detail[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-3);\n padding: var(--mj-space-2) var(--mj-space-3);\n background: var(--mj-bg-surface-sunken);\n border-radius: var(--mj-radius-md);\n}\n\n.qrr-group-title[_ngcontent-%COMP%] {\n font-weight: var(--mj-font-semibold);\n font-size: var(--mj-text-xs);\n color: var(--mj-text-secondary);\n margin-bottom: var(--mj-space-1);\n}\n\n.qrr-changes[_ngcontent-%COMP%] {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.qrr-change[_ngcontent-%COMP%] {\n font-family: var(--mj-font-family-mono);\n font-size: var(--mj-text-xs);\n}\n\n.qrr-sign[_ngcontent-%COMP%] {\n display: inline-block;\n width: 1rem;\n font-weight: var(--mj-font-semibold);\n}\n\n.qrr-change--added[_ngcontent-%COMP%] .qrr-sign[_ngcontent-%COMP%] { color: var(--mj-status-success); }\n.qrr-change--updated[_ngcontent-%COMP%] .qrr-sign[_ngcontent-%COMP%] { color: var(--mj-status-info); }\n.qrr-change--removed[_ngcontent-%COMP%] .qrr-sign[_ngcontent-%COMP%] { color: var(--mj-status-error); }\n.qrr-change--flagged[_ngcontent-%COMP%] .qrr-sign[_ngcontent-%COMP%] { color: var(--mj-status-warning); }\n\n.qrr-cols[_ngcontent-%COMP%] {\n color: var(--mj-text-secondary);\n font-family: var(--mj-font-family-mono);\n font-size: var(--mj-text-xs);\n}\n\n.qrr-sr-only[_ngcontent-%COMP%] {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n}\n\n@media (max-width: 640px) {\n .qrr-num[_ngcontent-%COMP%] {\n width: auto;\n }\n}"], changeDetection: 0 });
|
|
457
|
+
}
|
|
458
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryRefreshReportComponent, [{
|
|
459
|
+
type: Component,
|
|
460
|
+
args: [{ standalone: true, selector: 'mj-query-refresh-report', changeDetection: ChangeDetectionStrategy.OnPush, imports: [QueryDiagnosticsComponent], template: "@if (Output; as output) {\n <div class=\"qrr\">\n <div class=\"qrr-summary\">\n <span class=\"qrr-summary-text\">{{ output.summary }}</span>\n @if (Totals; as totals) {\n <span class=\"qrr-totals\">\n @if (totals.Refreshed > 0) { <span class=\"qrr-pill outcome-refreshed\">{{ totals.Refreshed }} {{ output.dryRun ? 'would change' : 'refreshed' }}</span> }\n @if (totals.Unchanged > 0) { <span class=\"qrr-pill outcome-unchanged\">{{ totals.Unchanged }} unchanged</span> }\n @if (totals.Failed > 0) { <span class=\"qrr-pill outcome-failed\">{{ totals.Failed }} failed</span> }\n @if (totals.NotPermitted + totals.Unavailable > 0) { <span class=\"qrr-pill outcome-notpermitted\">{{ totals.NotPermitted + totals.Unavailable }} skipped</span> }\n </span>\n }\n </div>\n\n @if (output.cycles.length > 0) {\n <div class=\"qrr-cycles\">\n <i class=\"fa-solid fa-rotate\"></i>\n These queries compose each other in a cycle and were each refreshed once:\n @for (cycle of output.cycles; track $index) {\n <span class=\"qrr-cycle\">{{ cycle.join(' \u2192 ') }}</span>\n }\n </div>\n }\n\n @if (Reports.length === 0) {\n <div class=\"qrr-empty\">No queries matched.</div>\n } @else {\n <table class=\"qrr-table\">\n <thead>\n <tr>\n <th class=\"qrr-col-toggle\"><span class=\"qrr-sr-only\">Details</span></th>\n <th>Query</th>\n <th>Outcome</th>\n <th>Extraction</th>\n <th class=\"qrr-num\">Added</th>\n <th class=\"qrr-num\">Updated</th>\n <th class=\"qrr-num\">Removed</th>\n <th class=\"qrr-num\">Flagged</th>\n </tr>\n </thead>\n <tbody>\n @for (report of Reports; track KeyOf(report, i); let i = $index) {\n @let counts = CountsOf(report);\n <tr class=\"qrr-row\" [class.qrr-row--expanded]=\"IsExpanded(report, i)\">\n <td class=\"qrr-col-toggle\">\n @if (HasDetails(report)) {\n <button type=\"button\" class=\"qrr-toggle\" (click)=\"ToggleExpanded(report, i)\"\n [attr.aria-expanded]=\"IsExpanded(report, i)\" [attr.aria-label]=\"(IsExpanded(report, i) ? 'Hide' : 'Show') + ' details for ' + (report.queryName || report.queryID)\">\n <i class=\"fa-solid\" [class.fa-chevron-down]=\"IsExpanded(report, i)\" [class.fa-chevron-right]=\"!IsExpanded(report, i)\"></i>\n </button>\n }\n </td>\n <td class=\"qrr-name\">\n @if (AllowOpenQuery && report.queryName) {\n <button type=\"button\" class=\"qrr-open\" (click)=\"OpenQuery.emit(report.queryID)\">{{ report.queryName }}</button>\n } @else {\n {{ report.queryName || report.queryID }}\n }\n </td>\n <td><span class=\"qrr-pill\" [class]=\"'qrr-pill ' + OutcomeClass(report)\">{{ OutcomeLabel(report) }}</span></td>\n <td>\n @if (report.extractionStatus) {\n <span class=\"qrr-status\" [class]=\"'qrr-status ' + StatusClass(report)\">{{ report.extractionStatus }}</span>\n } @else {\n <span class=\"qrr-muted\">\u2014</span>\n }\n </td>\n <td class=\"qrr-num\" [class.qrr-zero]=\"counts.Added === 0\">{{ counts.Added }}</td>\n <td class=\"qrr-num\" [class.qrr-zero]=\"counts.Updated === 0\">{{ counts.Updated }}</td>\n <td class=\"qrr-num\" [class.qrr-zero]=\"counts.Removed === 0\">{{ counts.Removed }}</td>\n <td class=\"qrr-num\" [class.qrr-zero]=\"counts.Flagged === 0\">{{ counts.Flagged }}</td>\n </tr>\n @if (IsExpanded(report, i)) {\n <tr class=\"qrr-detail-row\">\n <td></td>\n <td colspan=\"7\">\n <div class=\"qrr-detail\">\n @for (group of ChangesOf(report); track group.Collection) {\n <div class=\"qrr-group\">\n <div class=\"qrr-group-title\">{{ group.Collection }}</div>\n <ul class=\"qrr-changes\">\n @for (c of group.Added; track $index) {\n <li class=\"qrr-change qrr-change--added\"><span class=\"qrr-sign\">+</span> {{ c.name }}</li>\n }\n @for (c of group.Updated; track $index) {\n <li class=\"qrr-change qrr-change--updated\"><span class=\"qrr-sign\">~</span> {{ c.name }}\n @if (c.changedColumns.length > 0) { <span class=\"qrr-cols\">({{ c.changedColumns.join(', ') }})</span> }\n </li>\n }\n @for (c of group.Removed; track $index) {\n <li class=\"qrr-change qrr-change--removed\"><span class=\"qrr-sign\">\u2212</span> {{ c.name }}</li>\n }\n </ul>\n </div>\n }\n @if (report.flagged.length > 0) {\n <div class=\"qrr-group\">\n <div class=\"qrr-group-title\">Parameters the SQL no longer uses (kept)</div>\n <ul class=\"qrr-changes\">\n @for (name of report.flagged; track name) {\n <li class=\"qrr-change qrr-change--flagged\"><span class=\"qrr-sign\">!</span> {{ name }}</li>\n }\n </ul>\n </div>\n }\n @if (report.queryColumns.length > 0) {\n <div class=\"qrr-group\">\n <div class=\"qrr-group-title\">Query columns</div>\n <div class=\"qrr-cols\">{{ report.queryColumns.join(', ') }}</div>\n </div>\n }\n @if (report.diagnostics.length > 0) {\n <mj-query-diagnostics [Diagnostics]=\"DiagnosticsOf(report)\"\n [Severity]=\"report.outcome === 'Failed' || report.extractionStatus === 'Error' ? 'error' : 'warning'\" />\n }\n </div>\n </td>\n </tr>\n }\n }\n </tbody>\n </table>\n }\n </div>\n}\n", styles: [":host {\n display: block;\n}\n\n.qrr {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-3);\n font-size: var(--mj-text-sm);\n color: var(--mj-text-primary);\n}\n\n.qrr-summary {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n}\n\n.qrr-summary-text {\n color: var(--mj-text-secondary);\n}\n\n.qrr-totals {\n display: flex;\n flex-wrap: wrap;\n gap: var(--mj-space-1);\n}\n\n.qrr-cycles {\n color: var(--mj-text-secondary);\n display: flex;\n flex-wrap: wrap;\n gap: var(--mj-space-2);\n align-items: center;\n}\n\n.qrr-cycle {\n font-family: var(--mj-font-family-mono);\n font-size: var(--mj-text-xs);\n}\n\n.qrr-empty {\n color: var(--mj-text-muted);\n padding: var(--mj-space-4);\n text-align: center;\n}\n\n.qrr-table {\n width: 100%;\n border-collapse: collapse;\n}\n\n.qrr-table th {\n text-align: left;\n font-weight: var(--mj-font-semibold);\n color: var(--mj-text-secondary);\n font-size: var(--mj-text-xs);\n border-bottom: 1px solid var(--mj-border-default);\n padding: var(--mj-space-2);\n position: sticky;\n top: 0;\n background: var(--mj-bg-surface);\n}\n\n.qrr-table td {\n padding: var(--mj-space-2);\n border-bottom: 1px solid var(--mj-border-subtle);\n vertical-align: middle;\n}\n\n.qrr-row--expanded td {\n border-bottom-color: transparent;\n}\n\n.qrr-num {\n text-align: right;\n font-variant-numeric: tabular-nums;\n width: 4.5rem;\n}\n\n.qrr-zero {\n color: var(--mj-text-muted);\n}\n\n.qrr-col-toggle {\n width: 2rem;\n}\n\n.qrr-toggle,\n.qrr-open {\n background: none;\n border: none;\n padding: 0;\n cursor: pointer;\n font: inherit;\n}\n\n.qrr-toggle {\n color: var(--mj-text-secondary);\n width: 1.5rem;\n height: 1.5rem;\n border-radius: var(--mj-radius-sm);\n}\n\n.qrr-toggle:hover {\n background: var(--mj-bg-surface-hover);\n}\n\n.qrr-open {\n color: var(--mj-brand-primary);\n text-align: left;\n}\n\n.qrr-open:hover {\n text-decoration: underline;\n}\n\n.qrr-toggle:focus-visible,\n.qrr-open:focus-visible {\n outline: 2px solid var(--mj-brand-primary);\n outline-offset: 2px;\n}\n\n.qrr-pill,\n.qrr-status {\n --qrr-accent: var(--mj-text-muted);\n display: inline-block;\n border-radius: var(--mj-radius-full);\n padding: 0 var(--mj-space-2);\n font-size: var(--mj-text-xs);\n font-weight: var(--mj-font-medium);\n white-space: nowrap;\n color: var(--qrr-accent);\n background: color-mix(in srgb, var(--qrr-accent) 12%, transparent);\n border: 1px solid color-mix(in srgb, var(--qrr-accent) 30%, transparent);\n}\n\n.outcome-refreshed { --qrr-accent: var(--mj-brand-primary); }\n.outcome-unchanged { --qrr-accent: var(--mj-text-muted); }\n.outcome-failed { --qrr-accent: var(--mj-status-error); }\n.outcome-notpermitted,\n.outcome-unavailable { --qrr-accent: var(--mj-text-muted); }\n\n.status-ok { --qrr-accent: var(--mj-status-success); }\n.status-warning { --qrr-accent: var(--mj-status-warning); }\n.status-error { --qrr-accent: var(--mj-status-error); }\n.status-skipped { --qrr-accent: var(--mj-text-muted); }\n\n.qrr-muted {\n color: var(--mj-text-muted);\n}\n\n.qrr-detail {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-3);\n padding: var(--mj-space-2) var(--mj-space-3);\n background: var(--mj-bg-surface-sunken);\n border-radius: var(--mj-radius-md);\n}\n\n.qrr-group-title {\n font-weight: var(--mj-font-semibold);\n font-size: var(--mj-text-xs);\n color: var(--mj-text-secondary);\n margin-bottom: var(--mj-space-1);\n}\n\n.qrr-changes {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n gap: 2px;\n}\n\n.qrr-change {\n font-family: var(--mj-font-family-mono);\n font-size: var(--mj-text-xs);\n}\n\n.qrr-sign {\n display: inline-block;\n width: 1rem;\n font-weight: var(--mj-font-semibold);\n}\n\n.qrr-change--added .qrr-sign { color: var(--mj-status-success); }\n.qrr-change--updated .qrr-sign { color: var(--mj-status-info); }\n.qrr-change--removed .qrr-sign { color: var(--mj-status-error); }\n.qrr-change--flagged .qrr-sign { color: var(--mj-status-warning); }\n\n.qrr-cols {\n color: var(--mj-text-secondary);\n font-family: var(--mj-font-family-mono);\n font-size: var(--mj-text-xs);\n}\n\n.qrr-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip: rect(0 0 0 0);\n white-space: nowrap;\n}\n\n@media (max-width: 640px) {\n .qrr-num {\n width: auto;\n }\n}\n"] }]
|
|
461
|
+
}], null, { Output: [{
|
|
462
|
+
type: Input
|
|
463
|
+
}], AllowOpenQuery: [{
|
|
464
|
+
type: Input
|
|
465
|
+
}], OpenQuery: [{
|
|
466
|
+
type: Output
|
|
467
|
+
}] }); })();
|
|
468
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(QueryRefreshReportComponent, { className: "QueryRefreshReportComponent", filePath: "src/lib/query-refresh/query-refresh-report.component.ts", lineNumber: 31 }); })();
|
|
469
|
+
//# sourceMappingURL=query-refresh-report.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-refresh-report.component.js","sourceRoot":"","sources":["../../../src/lib/query-refresh/query-refresh-report.component.ts","../../../src/lib/query-refresh/query-refresh-report.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAEhG,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAEtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,OAAO,EACH,+BAA+B,EAC/B,oBAAoB,EACpB,wBAAwB,EACxB,yBAAyB,GAC5B,MAAM,uBAAuB,CAAC;;4CC+BrB,yBAAgB;;;IAnCa,+BAAyC;IAAA,YAAyE;IAAA,iBAAO;;;;IAAhF,cAAyE;IAAzE,oGAAyE;;;IAClH,+BAAyC;IAAA,YAAgC;IAAA,iBAAO;;;IAAvC,cAAgC;IAAhC,4DAAgC;;;IAC5E,+BAAsC;IAAA,YAA0B;IAAA,iBAAO;;;IAAjC,cAA0B;IAA1B,sDAA0B;;;IACrC,gCAA4C;IAAA,YAAsD;IAAA,iBAAO;;;IAA7D,cAAsD;IAAtD,qFAAsD;;;IAJzJ,+BAAyB;IACvB,0HAA4B;IAC5B,0HAA4B;IAC5B,0HAAyB;IACzB,2HAAoD;IACtD,iBAAO;;;IAJL,cAAwJ;IAAxJ,kDAAwJ;IACxJ,cAA+G;IAA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K,CAAC,MAA+B,EAAE,KAAa;QACxD,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,KAAK,EAAE,CAAC;IACxC,CAAC;qHA3EQ,2BAA2B;6DAA3B,2BAA2B;YC9BxC,6FAAyB;;;YAAzB,0DA4HC;4BDlGa,yBAAyB;;iFAI1B,2BAA2B;cARvC,SAAS;6BACM,IAAI,YACN,yBAAyB,mBAClB,uBAAuB,CAAC,MAAM,WACtC,CAAC,yBAAyB,CAAC;;kBASnC,KAAK;;kBAUL,KAAK;;kBAGL,MAAM;;kFAlBE,2BAA2B","sourcesContent":["import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';\nimport type { QueryRefreshExtractionOutput, QueryRefreshQueryReport } from '@memberjunction/core-entities';\nimport { ParseQueryDiagnostics } from '@memberjunction/core-entities';\nimport type { QueryDiagnosticLine } from '@memberjunction/core-entities';\nimport { QueryDiagnosticsComponent } from '../query-diagnostics/query-diagnostics.component';\nimport {\n QueryRefreshChangesByCollection,\n QueryRefreshCountsOf,\n QueryRefreshOutcomeLabel,\n QueryRefreshOutcomeTotals,\n} from './query-refresh-model';\nimport type { QueryRefreshCollectionChanges, QueryRefreshCounts } from './query-refresh-model';\n\n/**\n * `<mj-query-refresh-report>` — the report of a query metadata refresh: one row per query with its\n * outcome, the extraction status it records and how many fields, parameters, entities and\n * dependencies it adds, updates and removes. A row with details expands to list each change, the\n * authored parameters the SQL no longer uses, and the run's diagnostics.\n *\n * Presentational: the operation's output in, `OpenQuery` out (the host decides where that goes).\n * A row starts expanded when the report holds a single query.\n */\n@Component({\n standalone: true,\n selector: 'mj-query-refresh-report',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [QueryDiagnosticsComponent],\n templateUrl: './query-refresh-report.component.html',\n styleUrls: ['./query-refresh-report.component.css'],\n})\nexport class QueryRefreshReportComponent {\n private _output: QueryRefreshExtractionOutput | null = null;\n private expanded = new Set<string>();\n\n /** The refresh's output. */\n @Input()\n set Output(value: QueryRefreshExtractionOutput | null) {\n this._output = value;\n this.expanded = new Set(value && value.reports.length === 1 ? [this.keyOf(value.reports[0], 0)] : []);\n }\n get Output(): QueryRefreshExtractionOutput | null {\n return this._output;\n }\n\n /** Whether a query's name is a button that emits {@link OpenQuery}. */\n @Input() AllowOpenQuery = false;\n\n /** The ID of a query the user asked to open. */\n @Output() OpenQuery = new EventEmitter<string>();\n\n public get Reports(): readonly QueryRefreshQueryReport[] {\n return this._output?.reports ?? [];\n }\n\n public get Totals(): ReturnType<typeof QueryRefreshOutcomeTotals> | null {\n return this._output ? QueryRefreshOutcomeTotals(this._output) : null;\n }\n\n public KeyOf(report: QueryRefreshQueryReport, index: number): string {\n return this.keyOf(report, index);\n }\n\n public CountsOf(report: QueryRefreshQueryReport): QueryRefreshCounts {\n return QueryRefreshCountsOf(report);\n }\n\n public OutcomeLabel(report: QueryRefreshQueryReport): string {\n return QueryRefreshOutcomeLabel(report, this._output?.dryRun === true);\n }\n\n /** The outcome as a CSS modifier: `refreshed`, `unchanged`, `notpermitted`, `unavailable`, `failed`. */\n public OutcomeClass(report: QueryRefreshQueryReport): string {\n return `outcome-${report.outcome.toLowerCase()}`;\n }\n\n public StatusClass(report: QueryRefreshQueryReport): string {\n return `status-${(report.extractionStatus ?? 'none').toLowerCase()}`;\n }\n\n public ChangesOf(report: QueryRefreshQueryReport): QueryRefreshCollectionChanges[] {\n return QueryRefreshChangesByCollection(report);\n }\n\n public DiagnosticsOf(report: QueryRefreshQueryReport): QueryDiagnosticLine[] {\n return ParseQueryDiagnostics(report.diagnostics.join('\\n'));\n }\n\n /** Whether a report has anything to show when expanded. */\n public HasDetails(report: QueryRefreshQueryReport): boolean {\n return report.added.length + report.updated.length + report.removed.length + report.flagged.length + report.diagnostics.length > 0\n || report.queryColumns.length > 0;\n }\n\n public IsExpanded(report: QueryRefreshQueryReport, index: number): boolean {\n return this.expanded.has(this.keyOf(report, index));\n }\n\n public ToggleExpanded(report: QueryRefreshQueryReport, index: number): void {\n const key = this.keyOf(report, index);\n if (this.expanded.has(key)) this.expanded.delete(key);\n else this.expanded.add(key);\n }\n\n private keyOf(report: QueryRefreshQueryReport, index: number): string {\n return `${report.queryID}#${index}`;\n }\n}\n","@if (Output; as output) {\n <div class=\"qrr\">\n <div class=\"qrr-summary\">\n <span class=\"qrr-summary-text\">{{ output.summary }}</span>\n @if (Totals; as totals) {\n <span class=\"qrr-totals\">\n @if (totals.Refreshed > 0) { <span class=\"qrr-pill outcome-refreshed\">{{ totals.Refreshed }} {{ output.dryRun ? 'would change' : 'refreshed' }}</span> }\n @if (totals.Unchanged > 0) { <span class=\"qrr-pill outcome-unchanged\">{{ totals.Unchanged }} unchanged</span> }\n @if (totals.Failed > 0) { <span class=\"qrr-pill outcome-failed\">{{ totals.Failed }} failed</span> }\n @if (totals.NotPermitted + totals.Unavailable > 0) { <span class=\"qrr-pill outcome-notpermitted\">{{ totals.NotPermitted + totals.Unavailable }} skipped</span> }\n </span>\n }\n </div>\n\n @if (output.cycles.length > 0) {\n <div class=\"qrr-cycles\">\n <i class=\"fa-solid fa-rotate\"></i>\n These queries compose each other in a cycle and were each refreshed once:\n @for (cycle of output.cycles; track $index) {\n <span class=\"qrr-cycle\">{{ cycle.join(' → ') }}</span>\n }\n </div>\n }\n\n @if (Reports.length === 0) {\n <div class=\"qrr-empty\">No queries matched.</div>\n } @else {\n <table class=\"qrr-table\">\n <thead>\n <tr>\n <th class=\"qrr-col-toggle\"><span class=\"qrr-sr-only\">Details</span></th>\n <th>Query</th>\n <th>Outcome</th>\n <th>Extraction</th>\n <th class=\"qrr-num\">Added</th>\n <th class=\"qrr-num\">Updated</th>\n <th class=\"qrr-num\">Removed</th>\n <th class=\"qrr-num\">Flagged</th>\n </tr>\n </thead>\n <tbody>\n @for (report of Reports; track KeyOf(report, i); let i = $index) {\n @let counts = CountsOf(report);\n <tr class=\"qrr-row\" [class.qrr-row--expanded]=\"IsExpanded(report, i)\">\n <td class=\"qrr-col-toggle\">\n @if (HasDetails(report)) {\n <button type=\"button\" class=\"qrr-toggle\" (click)=\"ToggleExpanded(report, i)\"\n [attr.aria-expanded]=\"IsExpanded(report, i)\" [attr.aria-label]=\"(IsExpanded(report, i) ? 'Hide' : 'Show') + ' details for ' + (report.queryName || report.queryID)\">\n <i class=\"fa-solid\" [class.fa-chevron-down]=\"IsExpanded(report, i)\" [class.fa-chevron-right]=\"!IsExpanded(report, i)\"></i>\n </button>\n }\n </td>\n <td class=\"qrr-name\">\n @if (AllowOpenQuery && report.queryName) {\n <button type=\"button\" class=\"qrr-open\" (click)=\"OpenQuery.emit(report.queryID)\">{{ report.queryName }}</button>\n } @else {\n {{ report.queryName || report.queryID }}\n }\n </td>\n <td><span class=\"qrr-pill\" [class]=\"'qrr-pill ' + OutcomeClass(report)\">{{ OutcomeLabel(report) }}</span></td>\n <td>\n @if (report.extractionStatus) {\n <span class=\"qrr-status\" [class]=\"'qrr-status ' + StatusClass(report)\">{{ report.extractionStatus }}</span>\n } @else {\n <span class=\"qrr-muted\">—</span>\n }\n </td>\n <td class=\"qrr-num\" [class.qrr-zero]=\"counts.Added === 0\">{{ counts.Added }}</td>\n <td class=\"qrr-num\" [class.qrr-zero]=\"counts.Updated === 0\">{{ counts.Updated }}</td>\n <td class=\"qrr-num\" [class.qrr-zero]=\"counts.Removed === 0\">{{ counts.Removed }}</td>\n <td class=\"qrr-num\" [class.qrr-zero]=\"counts.Flagged === 0\">{{ counts.Flagged }}</td>\n </tr>\n @if (IsExpanded(report, i)) {\n <tr class=\"qrr-detail-row\">\n <td></td>\n <td colspan=\"7\">\n <div class=\"qrr-detail\">\n @for (group of ChangesOf(report); track group.Collection) {\n <div class=\"qrr-group\">\n <div class=\"qrr-group-title\">{{ group.Collection }}</div>\n <ul class=\"qrr-changes\">\n @for (c of group.Added; track $index) {\n <li class=\"qrr-change qrr-change--added\"><span class=\"qrr-sign\">+</span> {{ c.name }}</li>\n }\n @for (c of group.Updated; track $index) {\n <li class=\"qrr-change qrr-change--updated\"><span class=\"qrr-sign\">~</span> {{ c.name }}\n @if (c.changedColumns.length > 0) { <span class=\"qrr-cols\">({{ c.changedColumns.join(', ') }})</span> }\n </li>\n }\n @for (c of group.Removed; track $index) {\n <li class=\"qrr-change qrr-change--removed\"><span class=\"qrr-sign\">−</span> {{ c.name }}</li>\n }\n </ul>\n </div>\n }\n @if (report.flagged.length > 0) {\n <div class=\"qrr-group\">\n <div class=\"qrr-group-title\">Parameters the SQL no longer uses (kept)</div>\n <ul class=\"qrr-changes\">\n @for (name of report.flagged; track name) {\n <li class=\"qrr-change qrr-change--flagged\"><span class=\"qrr-sign\">!</span> {{ name }}</li>\n }\n </ul>\n </div>\n }\n @if (report.queryColumns.length > 0) {\n <div class=\"qrr-group\">\n <div class=\"qrr-group-title\">Query columns</div>\n <div class=\"qrr-cols\">{{ report.queryColumns.join(', ') }}</div>\n </div>\n }\n @if (report.diagnostics.length > 0) {\n <mj-query-diagnostics [Diagnostics]=\"DiagnosticsOf(report)\"\n [Severity]=\"report.outcome === 'Failed' || report.extractionStatus === 'Error' ? 'error' : 'warning'\" />\n }\n </div>\n </td>\n </tr>\n }\n }\n </tbody>\n </table>\n }\n </div>\n}\n"]}
|
|
@@ -129,6 +129,11 @@ export declare class QueryViewerComponent extends BaseAngularComponent implement
|
|
|
129
129
|
private _savedParams;
|
|
130
130
|
/** What the parameter form shows: the user's values, with the mapped ones over them. */
|
|
131
131
|
ParameterFormValues: QueryParameterValues;
|
|
132
|
+
/**
|
|
133
|
+
* The parameter values the rows on screen were produced with (mapped ones included, server-set
|
|
134
|
+
* ones left out), or null before the first successful run. The grid's Open in Excel carries them.
|
|
135
|
+
*/
|
|
136
|
+
LastRunParameters: QueryParameterValues | null;
|
|
132
137
|
/** The names of the mapped parameters, which the parameter form shows read-only. */
|
|
133
138
|
ReadOnlyParameters: string[];
|
|
134
139
|
/** Paging state */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-viewer.component.d.ts","sourceRoot":"","sources":["../../../src/lib/query-viewer/query-viewer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,YAAY,EACZ,MAAM,EACN,SAAS,EACT,iBAAiB,EAGpB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAA+C,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACnG,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,EAAE,qBAAqB,EAAe,MAAM,+BAA+B,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAGhE,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EACH,sBAAsB,EACtB,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAC1B,kBAAkB,EAGrB,MAAM,4CAA4C,CAAC;;AAEpD;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAOa,oBAAqB,SAAQ,oBAAqB,YAAW,MAAM,EAAE,SAAS;
|
|
1
|
+
{"version":3,"file":"query-viewer.component.d.ts","sourceRoot":"","sources":["../../../src/lib/query-viewer/query-viewer.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIH,YAAY,EACZ,MAAM,EACN,SAAS,EACT,iBAAiB,EAGpB,MAAM,eAAe,CAAC;AAGvB,OAAO,EAA+C,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACnG,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE,OAAO,EAAE,qBAAqB,EAAe,MAAM,+BAA+B,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAGhE,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EACH,sBAAsB,EACtB,cAAc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