@memberjunction/ng-task-graph-editor 6.2.0-edge.4 → 6.2.0-edge.5
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/task-graph-run-view.component.d.ts +3 -1
- package/dist/lib/task-graph-run-view.component.d.ts.map +1 -1
- package/dist/lib/task-graph-run-view.component.js +77 -22
- package/dist/lib/task-graph-run-view.component.js.map +1 -1
- package/dist/lib/task-graph-variables.component.d.ts +41 -2
- package/dist/lib/task-graph-variables.component.d.ts.map +1 -1
- package/dist/lib/task-graph-variables.component.js +93 -8
- package/dist/lib/task-graph-variables.component.js.map +1 -1
- package/package.json +9 -9
|
@@ -151,7 +151,7 @@ export declare class TaskGraphRunViewComponent extends BaseAngularComponent impl
|
|
|
151
151
|
AllowBreakpointEditing: boolean;
|
|
152
152
|
/** Compact debug key under the summary line. Off unless the host is a debugger. */
|
|
153
153
|
ShowDebugLegend: boolean;
|
|
154
|
-
/**
|
|
154
|
+
/** Step Inputs & Outputs (VARIABLES) inspector pane to the left of the canvas. Enabled by default across all task graph views. */
|
|
155
155
|
ShowVariables: boolean;
|
|
156
156
|
/** The parent bag's `data` / `context` roots, for the Invocation scope. */
|
|
157
157
|
Invocation: {
|
|
@@ -232,6 +232,8 @@ export declare class TaskGraphRunViewComponent extends BaseAngularComponent impl
|
|
|
232
232
|
get SelectedTaskName(): string;
|
|
233
233
|
get WaitingStepName(): string;
|
|
234
234
|
get SelectedTask(): MJTaskEntity | null;
|
|
235
|
+
/** All loaded task step entities for the current parent workflow run. */
|
|
236
|
+
get Tasks(): MJTaskEntity[];
|
|
235
237
|
OnToggleSelectedBreakpoint(): void;
|
|
236
238
|
/** Debug attaches here: replace Edit/Remove with breakpoint / path-override items. */
|
|
237
239
|
OnBeforeContextMenu(event: FlowBeforeContextMenuEventArgs): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-graph-run-view.component.d.ts","sourceRoot":"","sources":["../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,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAKF,qBAOa,yBAA0B,SAAQ,oBAAqB,YAAW,SAAS;
|
|
1
|
+
{"version":3,"file":"task-graph-run-view.component.d.ts","sourceRoot":"","sources":["../../src/lib/task-graph-run-view.component.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAEH,iBAAiB,EAEjB,YAAY,EAGZ,SAAS,EAEZ,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAGrE,OAAO,EAAE,YAAY,EAA0C,MAAM,+BAA+B,CAAC;AAErG,OAAO,EAA0B,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACxF,OAAO,EAKH,KAAK,iBAAiB,EACtB,KAAK,aAAa,EACrB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACjG,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,4BAA4B,CAAC;AACrF,OAAO,KAAK,EACR,mCAAmC,EACnC,8BAA8B,EAC9B,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACxB,MAAM,gCAAgC,CAAC;;AAExC,uDAAuD;AACvD,MAAM,MAAM,6BAA6B,G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C9F,OAAO,CAAC,WAAW;IASnB,2EAA2E;IAC3E,OAAO,CAAC,QAAQ;IAahB;;;;;;;OAOG;IACH,OAAO,CAAC,gBAAgB;IAgBxB,OAAO,CAAC,SAAS;IAIjB;;;;;;;;OAQG;IACH,OAAO,CAAC,SAAS;IA0CjB,iEAAiE;IACjE,OAAO,CAAC,mBAAmB;IAQ3B,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,IAAI;IAMZ,yFAAyF;IACzF,IAAW,WAAW,IAAI;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAG1D;yCAzoBQ,yBAAyB;2CAAzB,yBAAyB;CA0oBrC"}
|
|
@@ -87,11 +87,11 @@ function TaskGraphRunViewComponent_Conditional_3_Conditional_7_Template(rf, ctx)
|
|
|
87
87
|
} }
|
|
88
88
|
function TaskGraphRunViewComponent_Conditional_3_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
89
89
|
const _r3 = i0.ɵɵgetCurrentView();
|
|
90
|
-
i0.ɵɵelementStart(0, "button",
|
|
90
|
+
i0.ɵɵelementStart(0, "button", 25);
|
|
91
91
|
i0.ɵɵlistener("click", function TaskGraphRunViewComponent_Conditional_3_Conditional_8_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.OnToggleSelectedBreakpoint()); });
|
|
92
|
-
i0.ɵɵelement(1, "i",
|
|
92
|
+
i0.ɵɵelement(1, "i", 26);
|
|
93
93
|
i0.ɵɵelementEnd();
|
|
94
|
-
i0.ɵɵelementStart(2, "span",
|
|
94
|
+
i0.ɵɵelementStart(2, "span", 27);
|
|
95
95
|
i0.ɵɵtext(3);
|
|
96
96
|
i0.ɵɵelementEnd();
|
|
97
97
|
} if (rf & 2) {
|
|
@@ -106,13 +106,45 @@ function TaskGraphRunViewComponent_Conditional_3_Conditional_8_Template(rf, ctx)
|
|
|
106
106
|
} }
|
|
107
107
|
function TaskGraphRunViewComponent_Conditional_3_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
108
108
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
109
|
-
i0.ɵɵelementStart(0, "button",
|
|
109
|
+
i0.ɵɵelementStart(0, "button", 28);
|
|
110
110
|
i0.ɵɵlistener("click", function TaskGraphRunViewComponent_Conditional_3_Conditional_10_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.OnToggleInvocation()); });
|
|
111
|
-
i0.ɵɵelement(1, "i",
|
|
111
|
+
i0.ɵɵelement(1, "i", 29);
|
|
112
112
|
i0.ɵɵelementStart(2, "span");
|
|
113
113
|
i0.ɵɵtext(3, "Data");
|
|
114
114
|
i0.ɵɵelementEnd()();
|
|
115
115
|
} }
|
|
116
|
+
function TaskGraphRunViewComponent_Conditional_3_Conditional_16_Template(rf, ctx) { if (rf & 1) {
|
|
117
|
+
i0.ɵɵelementStart(0, "span", 30);
|
|
118
|
+
i0.ɵɵtext(1);
|
|
119
|
+
i0.ɵɵelementEnd();
|
|
120
|
+
i0.ɵɵelementStart(2, "span", 31);
|
|
121
|
+
i0.ɵɵtext(3);
|
|
122
|
+
i0.ɵɵelementEnd();
|
|
123
|
+
} if (rf & 2) {
|
|
124
|
+
const step_r5 = ctx;
|
|
125
|
+
i0.ɵɵproperty("title", step_r5.Name);
|
|
126
|
+
i0.ɵɵadvance();
|
|
127
|
+
i0.ɵɵtextInterpolate(step_r5.Name);
|
|
128
|
+
i0.ɵɵadvance();
|
|
129
|
+
i0.ɵɵattribute("data-status", step_r5.Status);
|
|
130
|
+
i0.ɵɵadvance();
|
|
131
|
+
i0.ɵɵtextInterpolate(step_r5.Status);
|
|
132
|
+
} }
|
|
133
|
+
function TaskGraphRunViewComponent_Conditional_3_Conditional_17_Template(rf, ctx) { if (rf & 1) {
|
|
134
|
+
i0.ɵɵelementStart(0, "span");
|
|
135
|
+
i0.ɵɵtext(1, "Step Inputs & Outputs");
|
|
136
|
+
i0.ɵɵelementEnd();
|
|
137
|
+
} }
|
|
138
|
+
function TaskGraphRunViewComponent_Conditional_3_Conditional_20_Template(rf, ctx) { if (rf & 1) {
|
|
139
|
+
i0.ɵɵelementStart(0, "div", 20);
|
|
140
|
+
i0.ɵɵelement(1, "i", 32);
|
|
141
|
+
i0.ɵɵelementStart(2, "span");
|
|
142
|
+
i0.ɵɵtext(3);
|
|
143
|
+
i0.ɵɵelementEnd()();
|
|
144
|
+
} if (rf & 2) {
|
|
145
|
+
i0.ɵɵadvance(3);
|
|
146
|
+
i0.ɵɵtextInterpolate(ctx);
|
|
147
|
+
} }
|
|
116
148
|
function TaskGraphRunViewComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
117
149
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
118
150
|
i0.ɵɵelementStart(0, "div", 4)(1, "div", 5)(2, "span", 6);
|
|
@@ -126,19 +158,22 @@ function TaskGraphRunViewComponent_Conditional_3_Template(rf, ctx) { if (rf & 1)
|
|
|
126
158
|
i0.ɵɵconditionalCreate(10, TaskGraphRunViewComponent_Conditional_3_Conditional_10_Template, 4, 0, "button", 12);
|
|
127
159
|
i0.ɵɵelementStart(11, "as-split", 13);
|
|
128
160
|
i0.ɵɵlistener("dragEnd", function TaskGraphRunViewComponent_Conditional_3_Template_as_split_dragEnd_11_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.OnInvocationSplitDragEnd($event.sizes)); });
|
|
129
|
-
i0.ɵɵelementStart(12, "as-split-area", 14)(13, "div", 15)(14, "div", 16)(15, "
|
|
130
|
-
i0.ɵɵ
|
|
161
|
+
i0.ɵɵelementStart(12, "as-split-area", 14)(13, "div", 15)(14, "div", 16)(15, "div", 17);
|
|
162
|
+
i0.ɵɵconditionalCreate(16, TaskGraphRunViewComponent_Conditional_3_Conditional_16_Template, 4, 4)(17, TaskGraphRunViewComponent_Conditional_3_Conditional_17_Template, 2, 0, "span");
|
|
131
163
|
i0.ɵɵelementEnd();
|
|
132
|
-
i0.ɵɵelementStart(
|
|
133
|
-
i0.ɵɵlistener("click", function
|
|
134
|
-
i0.ɵɵelement(
|
|
164
|
+
i0.ɵɵelementStart(18, "button", 18);
|
|
165
|
+
i0.ɵɵlistener("click", function TaskGraphRunViewComponent_Conditional_3_Template_button_click_18_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.OnToggleInvocation()); });
|
|
166
|
+
i0.ɵɵelement(19, "i", 19);
|
|
135
167
|
i0.ɵɵelementEnd()();
|
|
136
|
-
i0.ɵɵ
|
|
168
|
+
i0.ɵɵconditionalCreate(20, TaskGraphRunViewComponent_Conditional_3_Conditional_20_Template, 4, 1, "div", 20);
|
|
169
|
+
i0.ɵɵelement(21, "mj-task-graph-variables", 21);
|
|
137
170
|
i0.ɵɵelementEnd()();
|
|
138
|
-
i0.ɵɵelementStart(
|
|
139
|
-
i0.ɵɵlistener("SelectionChanged", function
|
|
171
|
+
i0.ɵɵelementStart(22, "as-split-area", 22)(23, "div", 23)(24, "mj-task-graph-editor", 24);
|
|
172
|
+
i0.ɵɵlistener("SelectionChanged", function TaskGraphRunViewComponent_Conditional_3_Template_mj_task_graph_editor_SelectionChanged_24_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.OnSelectionChanged($event)); })("ConnectionSelected", function TaskGraphRunViewComponent_Conditional_3_Template_mj_task_graph_editor_ConnectionSelected_24_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.OnConnectionSelected($event)); })("LegendToggled", function TaskGraphRunViewComponent_Conditional_3_Template_mj_task_graph_editor_LegendToggled_24_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.LegendToggled.emit($event)); })("BeforeContextMenu", function TaskGraphRunViewComponent_Conditional_3_Template_mj_task_graph_editor_BeforeContextMenu_24_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.OnBeforeContextMenu($event)); })("AfterContextMenuAction", function TaskGraphRunViewComponent_Conditional_3_Template_mj_task_graph_editor_AfterContextMenuAction_24_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.OnAfterContextMenuAction($event)); });
|
|
140
173
|
i0.ɵɵelementEnd()()()()()();
|
|
141
174
|
} if (rf & 2) {
|
|
175
|
+
let tmp_11_0;
|
|
176
|
+
let tmp_12_0;
|
|
142
177
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
143
178
|
i0.ɵɵstyleProp("height", ctx_r0.Height);
|
|
144
179
|
i0.ɵɵadvance(3);
|
|
@@ -154,9 +189,13 @@ function TaskGraphRunViewComponent_Conditional_3_Template(rf, ctx) { if (rf & 1)
|
|
|
154
189
|
i0.ɵɵadvance();
|
|
155
190
|
i0.ɵɵproperty("gutterSize", 8);
|
|
156
191
|
i0.ɵɵadvance();
|
|
157
|
-
i0.ɵɵproperty("size", ctx_r0.InvocationPaneSize)("minSize",
|
|
158
|
-
i0.ɵɵadvance(
|
|
159
|
-
i0.ɵɵ
|
|
192
|
+
i0.ɵɵproperty("size", ctx_r0.InvocationPaneSize)("minSize", 18)("visible", ctx_r0.InvocationPaneOpen);
|
|
193
|
+
i0.ɵɵadvance(4);
|
|
194
|
+
i0.ɵɵconditional((tmp_11_0 = ctx_r0.SelectedTask) ? 16 : 17, tmp_11_0);
|
|
195
|
+
i0.ɵɵadvance(4);
|
|
196
|
+
i0.ɵɵconditional((tmp_12_0 = ctx_r0.SelectedTask == null ? null : ctx_r0.SelectedTask.ErrorMessage) ? 20 : -1, tmp_12_0);
|
|
197
|
+
i0.ɵɵadvance();
|
|
198
|
+
i0.ɵɵproperty("TaskID", ctx_r0.SelectedTask == null ? null : ctx_r0.SelectedTask.ID)("InputPayload", ctx_r0.SelectedTask == null ? null : ctx_r0.SelectedTask.InputPayload)("OutputPayload", ctx_r0.SelectedTask == null ? null : ctx_r0.SelectedTask.OutputPayload)("Invocation", ctx_r0.Invocation);
|
|
160
199
|
i0.ɵɵadvance();
|
|
161
200
|
i0.ɵɵproperty("size", ctx_r0.CanvasPaneSize)("minSize", 40);
|
|
162
201
|
i0.ɵɵadvance(2);
|
|
@@ -177,6 +216,8 @@ export class TaskGraphRunViewComponent extends BaseAngularComponent {
|
|
|
177
216
|
return;
|
|
178
217
|
this.parentTaskID = value;
|
|
179
218
|
this.settledEmitted = false;
|
|
219
|
+
this.SelectedTaskID = null;
|
|
220
|
+
this.LiveActivity.clear();
|
|
180
221
|
void this.load();
|
|
181
222
|
}
|
|
182
223
|
get ParentTaskID() {
|
|
@@ -290,8 +331,8 @@ export class TaskGraphRunViewComponent extends BaseAngularComponent {
|
|
|
290
331
|
AllowBreakpointEditing = false;
|
|
291
332
|
/** Compact debug key under the summary line. Off unless the host is a debugger. */
|
|
292
333
|
ShowDebugLegend = false;
|
|
293
|
-
/**
|
|
294
|
-
ShowVariables =
|
|
334
|
+
/** Step Inputs & Outputs (VARIABLES) inspector pane to the left of the canvas. Enabled by default across all task graph views. */
|
|
335
|
+
ShowVariables = true;
|
|
295
336
|
/** The parent bag's `data` / `context` roots, for the Invocation scope. */
|
|
296
337
|
Invocation = null;
|
|
297
338
|
NodeSelected = new EventEmitter();
|
|
@@ -409,6 +450,9 @@ export class TaskGraphRunViewComponent extends BaseAngularComponent {
|
|
|
409
450
|
if (!tempId)
|
|
410
451
|
return;
|
|
411
452
|
this.SelectedTaskID = tempId;
|
|
453
|
+
if (this.ShowVariables && !this.Prefs.InvocationOpen) {
|
|
454
|
+
this.prefsStore.SetInvocationOpen(true);
|
|
455
|
+
}
|
|
412
456
|
this.NodeSelected.emit({ TaskID: tempId, Task: this.taskByID.get(tempId) ?? null });
|
|
413
457
|
this.cdr.markForCheck();
|
|
414
458
|
}
|
|
@@ -454,6 +498,10 @@ export class TaskGraphRunViewComponent extends BaseAngularComponent {
|
|
|
454
498
|
get SelectedTask() {
|
|
455
499
|
return this.SelectedTaskID ? this.taskByID.get(this.SelectedTaskID) ?? null : null;
|
|
456
500
|
}
|
|
501
|
+
/** All loaded task step entities for the current parent workflow run. */
|
|
502
|
+
get Tasks() {
|
|
503
|
+
return [...this.taskByID.values()];
|
|
504
|
+
}
|
|
457
505
|
OnToggleSelectedBreakpoint() {
|
|
458
506
|
if (!this.AllowBreakpointEditing || !this.SelectedTaskID)
|
|
459
507
|
return;
|
|
@@ -611,6 +659,13 @@ export class TaskGraphRunViewComponent extends BaseAngularComponent {
|
|
|
611
659
|
/** Rows → spec + runtime + geometry. */
|
|
612
660
|
project(taskRows, depRows) {
|
|
613
661
|
this.taskByID = new Map(taskRows.map((t) => [t.ID, t]));
|
|
662
|
+
if (taskRows.length === 0) {
|
|
663
|
+
this.SelectedTaskID = null;
|
|
664
|
+
}
|
|
665
|
+
else if (!this.SelectedTaskID || !this.taskByID.has(this.SelectedTaskID)) {
|
|
666
|
+
const activeRow = taskRows.find((t) => t.Status === 'In Progress');
|
|
667
|
+
this.SelectedTaskID = (activeRow ?? taskRows[0]).ID;
|
|
668
|
+
}
|
|
614
669
|
const projection = ProjectTaskRowsToSpec(this.WorkflowName, taskRows, depRows);
|
|
615
670
|
this.Spec = projection.Spec;
|
|
616
671
|
// Correlate by ID, not by name: a projected node's tempId IS the task id, which is the one
|
|
@@ -753,15 +808,15 @@ export class TaskGraphRunViewComponent extends BaseAngularComponent {
|
|
|
753
808
|
static ɵfac = function TaskGraphRunViewComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TaskGraphRunViewComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
754
809
|
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TaskGraphRunViewComponent, selectors: [["mj-task-graph-run-view"]], hostBindings: function TaskGraphRunViewComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
755
810
|
i0.ɵɵlistener("keydown", function TaskGraphRunViewComponent_keydown_HostBindingHandler($event) { return ctx.OnDebugHotkey($event); }, i0.ɵɵresolveDocument);
|
|
756
|
-
} }, inputs: { ParentTaskID: "ParentTaskID", WorkflowName: "WorkflowName", LiveUpdates: "LiveUpdates", PollIntervalSeconds: "PollIntervalSeconds", Height: "Height", ShowLegend: "ShowLegend", ShowToolbar: "ShowToolbar", ToolbarVisibility: "ToolbarVisibility", ToolbarAlign: "ToolbarAlign", LiveFrame: "LiveFrame", ReplayAt: "ReplayAt", Breakpoints: "Breakpoints", PausedAtTaskID: "PausedAtTaskID", GraphPaused: "GraphPaused", EdgeOverrides: "EdgeOverrides", AllowBreakpointEditing: "AllowBreakpointEditing", ShowDebugLegend: "ShowDebugLegend", ShowVariables: "ShowVariables", Invocation: "Invocation" }, outputs: { NodeSelected: "NodeSelected", LegendToggled: "LegendToggled", Settled: "Settled", ConnectionSelected: "ConnectionSelected", BreakpointToggled: "BreakpointToggled", EdgeOverrideRequested: "EdgeOverrideRequested" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 1, consts: [["Variant", "error", 3, "Message"], [1, "run-view-loading"], ["Icon", "fa-solid fa-diagram-project", "Title", "No steps yet", "Message", "This workflow has not created any steps."], [1, "run-view", 3, "height"], [1, "run-view"], [1, "run-view-summary"], [1, "run-view-count"], [1, "run-view-skipped"], [1, "run-view-done"], [1, "run-view-waiting"], [1, "run-view-running"], [1, "run-view-body"], ["type", "button", "title", "Show
|
|
757
|
-
i0.ɵɵconditionalCreate(0, TaskGraphRunViewComponent_Conditional_0_Template, 1, 1, "mj-alert", 0)(1, TaskGraphRunViewComponent_Conditional_1_Template, 2, 0, "div", 1)(2, TaskGraphRunViewComponent_Conditional_2_Template, 1, 0, "mj-empty-state", 2)(3, TaskGraphRunViewComponent_Conditional_3_Template,
|
|
811
|
+
} }, inputs: { ParentTaskID: "ParentTaskID", WorkflowName: "WorkflowName", LiveUpdates: "LiveUpdates", PollIntervalSeconds: "PollIntervalSeconds", Height: "Height", ShowLegend: "ShowLegend", ShowToolbar: "ShowToolbar", ToolbarVisibility: "ToolbarVisibility", ToolbarAlign: "ToolbarAlign", LiveFrame: "LiveFrame", ReplayAt: "ReplayAt", Breakpoints: "Breakpoints", PausedAtTaskID: "PausedAtTaskID", GraphPaused: "GraphPaused", EdgeOverrides: "EdgeOverrides", AllowBreakpointEditing: "AllowBreakpointEditing", ShowDebugLegend: "ShowDebugLegend", ShowVariables: "ShowVariables", Invocation: "Invocation" }, outputs: { NodeSelected: "NodeSelected", LegendToggled: "LegendToggled", Settled: "Settled", ConnectionSelected: "ConnectionSelected", BreakpointToggled: "BreakpointToggled", EdgeOverrideRequested: "EdgeOverrideRequested" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 1, consts: [["Variant", "error", 3, "Message"], [1, "run-view-loading"], ["Icon", "fa-solid fa-diagram-project", "Title", "No steps yet", "Message", "This workflow has not created any steps."], [1, "run-view", 3, "height"], [1, "run-view"], [1, "run-view-summary"], [1, "run-view-count"], [1, "run-view-skipped"], [1, "run-view-done"], [1, "run-view-waiting"], [1, "run-view-running"], [1, "run-view-body"], ["type", "button", "title", "Show step inputs and outputs", "aria-label", "Show step inputs and outputs", 1, "run-view-vars-rail"], ["direction", "horizontal", "unit", "percent", 1, "run-view-split", 3, "dragEnd", "gutterSize"], [3, "size", "minSize", "visible"], [1, "run-view-vars"], [1, "run-view-vars-bar"], [1, "run-view-vars-title"], ["type", "button", "title", "Minimize", "aria-label", "Minimize invocation and output", 1, "run-view-vars-min", 3, "click"], ["aria-hidden", "true", 1, "fa-solid", "fa-chevron-left"], ["role", "status", 1, "run-view-vars-error"], [3, "TaskID", "InputPayload", "OutputPayload", "Invocation"], [3, "size", "minSize"], [1, "run-view-canvas"], [3, "SelectionChanged", "ConnectionSelected", "LegendToggled", "BeforeContextMenu", "AfterContextMenuAction", "Spec", "RuntimeStatus", "NodePositions", "DebugOverlay", "ReadOnly", "ShowToolbar", "ToolbarVisibility", "ToolbarAlign", "ShowPalette", "ShowProperties", "ShowMinimap", "ShowStatusBar", "ShowLegend"], ["type", "button", 1, "run-view-bp", 3, "click", "title"], ["aria-hidden", "true", 1, "fa-circle"], [1, "run-view-bp-name"], ["type", "button", "title", "Show step inputs and outputs", "aria-label", "Show step inputs and outputs", 1, "run-view-vars-rail", 3, "click"], ["aria-hidden", "true", 1, "fa-solid", "fa-code"], [1, "run-view-vars-step-name", 3, "title"], [1, "run-view-vars-status"], ["aria-hidden", "true", 1, "fa-solid", "fa-triangle-exclamation"]], template: function TaskGraphRunViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
812
|
+
i0.ɵɵconditionalCreate(0, TaskGraphRunViewComponent_Conditional_0_Template, 1, 1, "mj-alert", 0)(1, TaskGraphRunViewComponent_Conditional_1_Template, 2, 0, "div", 1)(2, TaskGraphRunViewComponent_Conditional_2_Template, 1, 0, "mj-empty-state", 2)(3, TaskGraphRunViewComponent_Conditional_3_Template, 25, 33, "div", 3);
|
|
758
813
|
} if (rf & 2) {
|
|
759
814
|
i0.ɵɵconditional(ctx.ErrorMessage ? 0 : ctx.IsLoading ? 1 : !ctx.Spec || ctx.Spec.tasks.length === 0 ? 2 : 3);
|
|
760
|
-
} }, dependencies: [i1.MJEmptyStateComponent, i1.MJAlertComponent, i2.SplitComponent, i2.SplitAreaComponent, i3.TaskGraphVariablesComponent, i4.TaskGraphEditorComponent], styles: ["\n\n[_nghost-%COMP%] { display: block; height: 100%; min-height: 0; }\n\n.run-view[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2);\n height: 100%;\n min-height: 0;\n}\n\n.run-view-summary[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n font-size: var(--mj-font-size-sm);\n color: var(--mj-text-secondary);\n}\n\n.run-view-count[_ngcontent-%COMP%] { font-weight: 500; }\n\n\n\n.run-view-skipped[_ngcontent-%COMP%] { color: var(--mj-text-tertiary); }\n.run-view-running[_ngcontent-%COMP%] { color: var(--mj-brand-primary); font-weight: 600; }\n.run-view-waiting[_ngcontent-%COMP%] { color: var(--mj-brand-primary); font-weight: 700; }\n.run-view-done[_ngcontent-%COMP%] { color: var(--mj-status-success); font-weight: 600; }\n\n.run-view-body[_ngcontent-%COMP%] {\n display: flex;\n flex: 1 1 auto;\n min-height: 0;\n min-width: 0;\n}\n\n.run-view-vars-rail[_ngcontent-%COMP%] {\n flex: 0 0 28px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n gap: var(--mj-space-2);\n padding: var(--mj-space-3) 0;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-secondary);\n cursor: pointer;\n}\n.run-view-vars-rail[_ngcontent-%COMP%]:hover {\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-hover);\n}\n.run-view-vars-rail[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n letter-spacing: 0.08em;\n text-transform: uppercase;\n font-size: var(--mj-font-size-xs);\n font-weight: 700;\n}\n.run-view-vars-rail[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { font-size: 11px; }\n\n.run-view-split[_ngcontent-%COMP%] {\n flex: 1 1 auto;\n min-height: 0;\n min-width: 0;\n}\n\n[_nghost-%COMP%] .run-view-split > .as-split-gutter {\n background: transparent;\n}\n[_nghost-%COMP%] .run-view-split > .as-split-gutter::after {\n content: '';\n display: block;\n margin: auto;\n background: var(--mj-border-default);\n border-radius: 1px;\n}\n[_nghost-%COMP%] .run-view-split.as-horizontal > .as-split-gutter::after {\n width: 3px;\n height: 32px;\n}\n[_nghost-%COMP%] .run-view-split > .as-split-gutter:hover::after {\n background: var(--mj-brand-primary);\n}\n[_nghost-%COMP%] .run-view-split > .as-split-area {\n overflow: hidden;\n}\n\n\n\n\n.run-view-canvas[_ngcontent-%COMP%] {\n height: 100%;\n min-height: 0;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n background: var(--mj-bg-surface);\n}\n\n.run-view-vars[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n min-width: 0;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n background: var(--mj-bg-surface);\n}\n.run-view-vars-bar[_ngcontent-%COMP%] {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n padding:
|
|
815
|
+
} }, dependencies: [i1.MJEmptyStateComponent, i1.MJAlertComponent, i2.SplitComponent, i2.SplitAreaComponent, i3.TaskGraphVariablesComponent, i4.TaskGraphEditorComponent], styles: ["\n\n[_nghost-%COMP%] { display: block; width: 100%; height: 100%; min-height: 0; min-width: 0; }\n\n.run-view[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n gap: var(--mj-space-2);\n width: 100%;\n height: 100%;\n min-height: 0;\n min-width: 0;\n}\n\n.run-view-summary[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n font-size: var(--mj-font-size-sm);\n color: var(--mj-text-secondary);\n}\n\n.run-view-count[_ngcontent-%COMP%] { font-weight: 500; }\n\n\n\n.run-view-skipped[_ngcontent-%COMP%] { color: var(--mj-text-tertiary); }\n.run-view-running[_ngcontent-%COMP%] { color: var(--mj-brand-primary); font-weight: 600; }\n.run-view-waiting[_ngcontent-%COMP%] { color: var(--mj-brand-primary); font-weight: 700; }\n.run-view-done[_ngcontent-%COMP%] { color: var(--mj-status-success); font-weight: 600; }\n\n.run-view-body[_ngcontent-%COMP%] {\n display: flex;\n flex: 1 1 auto;\n width: 100%;\n min-height: 0;\n min-width: 0;\n}\n\n.run-view-vars-rail[_ngcontent-%COMP%] {\n flex: 0 0 28px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n gap: var(--mj-space-2);\n padding: var(--mj-space-3) 0;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-secondary);\n cursor: pointer;\n}\n.run-view-vars-rail[_ngcontent-%COMP%]:hover {\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-hover);\n}\n.run-view-vars-rail[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n letter-spacing: 0.08em;\n text-transform: uppercase;\n font-size: var(--mj-font-size-xs);\n font-weight: 700;\n}\n.run-view-vars-rail[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { font-size: 11px; }\n\n.run-view-split[_ngcontent-%COMP%] {\n flex: 1 1 auto;\n width: 100%;\n min-height: 0;\n min-width: 0;\n}\n\n[_nghost-%COMP%] .run-view-split > .as-split-gutter {\n background: transparent;\n}\n[_nghost-%COMP%] .run-view-split > .as-split-gutter::after {\n content: '';\n display: block;\n margin: auto;\n background: var(--mj-border-default);\n border-radius: 1px;\n}\n[_nghost-%COMP%] .run-view-split.as-horizontal > .as-split-gutter::after {\n width: 3px;\n height: 32px;\n}\n[_nghost-%COMP%] .run-view-split > .as-split-gutter:hover::after {\n background: var(--mj-brand-primary);\n}\n[_nghost-%COMP%] .run-view-split > .as-split-area {\n overflow: hidden;\n}\n\n\n\n\n.run-view-canvas[_ngcontent-%COMP%] {\n width: 100%;\n height: 100%;\n min-height: 0;\n min-width: 0;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n background: var(--mj-bg-surface);\n}\n\n.run-view-vars[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n min-width: 0;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n background: var(--mj-bg-surface);\n}\n.run-view-vars-bar[_ngcontent-%COMP%] {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n padding: 6px 8px;\n border-bottom: 1px solid var(--mj-border-default);\n color: var(--mj-text-secondary);\n font-size: var(--mj-font-size-xs);\n font-weight: 700;\n letter-spacing: 0.06em;\n text-transform: uppercase;\n min-width: 0;\n}\n.run-view-vars-title[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 6px;\n min-width: 0;\n flex: 1 1 auto;\n}\n.run-view-vars-step-name[_ngcontent-%COMP%] {\n color: var(--mj-text-primary);\n font-size: var(--mj-font-size-xs);\n font-weight: 600;\n letter-spacing: normal;\n text-transform: none;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.run-view-vars-status[_ngcontent-%COMP%] {\n flex: 0 0 auto;\n padding: 1px 6px;\n border-radius: var(--mj-radius-full, 999px);\n font-size: 10px;\n font-weight: 600;\n letter-spacing: normal;\n text-transform: none;\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n}\n.run-view-vars-status[data-status=\"Complete\"][_ngcontent-%COMP%], \n.run-view-vars-status[data-status=\"Completed\"][_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-status-success) 15%, transparent);\n color: var(--mj-status-success);\n}\n.run-view-vars-status[data-status=\"In Progress\"][_ngcontent-%COMP%], \n.run-view-vars-status[data-status=\"Running\"][_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n color: var(--mj-brand-primary);\n}\n.run-view-vars-status[data-status=\"Failed\"][_ngcontent-%COMP%] {\n background: color-mix(in srgb, var(--mj-status-error) 15%, transparent);\n color: var(--mj-status-error);\n}\n.run-view-vars-error[_ngcontent-%COMP%] {\n flex: 0 0 auto;\n display: flex;\n align-items: flex-start;\n gap: 6px;\n padding: 6px 8px;\n border-bottom: 1px solid var(--mj-border-default);\n background: color-mix(in srgb, var(--mj-status-error) 10%, transparent);\n color: var(--mj-status-error);\n font-size: var(--mj-font-size-xs);\n line-height: 1.35;\n}\n.run-view-vars-min[_ngcontent-%COMP%] {\n width: 22px;\n height: 22px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n}\n.run-view-vars-min[_ngcontent-%COMP%]:hover {\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-hover);\n}\n.run-view-vars[_ngcontent-%COMP%] mj-task-graph-variables[_ngcontent-%COMP%] {\n flex: 1 1 auto;\n min-height: 0;\n}\n\n.run-view-loading[_ngcontent-%COMP%] {\n padding: var(--mj-space-4);\n color: var(--mj-text-secondary);\n font-size: var(--mj-font-size-sm);\n}\n\n.run-view-bp[_ngcontent-%COMP%] {\n margin-left: auto;\n width: 22px;\n height: 22px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n border-radius: 50%;\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n}\n.run-view-bp[_ngcontent-%COMP%]:hover { color: var(--mj-status-error); }\n.run-view-bp-on[_ngcontent-%COMP%], \n.run-view-bp-on[_ngcontent-%COMP%]:hover { color: var(--mj-status-error); }\n.run-view-bp[_ngcontent-%COMP%] i[_ngcontent-%COMP%] { font-size: 10px; }\n.run-view-bp-name[_ngcontent-%COMP%] {\n font-size: var(--mj-font-size-xs);\n color: var(--mj-text-muted);\n}\n\n.run-view-legend[_ngcontent-%COMP%] {\n display: flex;\n flex-wrap: wrap;\n gap: var(--mj-space-3);\n font-size: var(--mj-font-size-xs);\n color: var(--mj-text-muted);\n}\n.run-view-legend[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n}\n.run-view-key-break[_ngcontent-%COMP%] { color: var(--mj-status-error); font-size: 8px; }\n.run-view-key-paused[_ngcontent-%COMP%] { color: var(--mj-brand-primary); font-size: 10px; }\n.run-view-key-forced[_ngcontent-%COMP%] { color: var(--mj-status-warning); font-size: 10px; }\n.run-view-key-if[_ngcontent-%COMP%] {\n font-family: var(--mj-font-mono, ui-monospace, monospace);\n font-style: italic;\n}"], changeDetection: 0 });
|
|
761
816
|
}
|
|
762
817
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TaskGraphRunViewComponent, [{
|
|
763
818
|
type: Component,
|
|
764
|
-
args: [{ standalone: false, selector: 'mj-task-graph-run-view', changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (ErrorMessage) {\n <mj-alert Variant=\"error\" [Message]=\"ErrorMessage\"></mj-alert>\n} @else if (IsLoading) {\n <div class=\"run-view-loading\">Loading the workflow’s steps…</div>\n} @else if (!Spec || Spec.tasks.length === 0) {\n <mj-empty-state\n Icon=\"fa-solid fa-diagram-project\"\n Title=\"No steps yet\"\n Message=\"This workflow has not created any steps.\">\n </mj-empty-state>\n} @else {\n <div class=\"run-view\" [style.height]=\"Height\">\n <div class=\"run-view-summary\">\n <span class=\"run-view-count\">{{ CompletedCount }} of {{ TotalCount }} complete</span>\n @if (SkippedCount > 0) {\n <span class=\"run-view-skipped\">{{ SkippedCount }} not taken</span>\n }\n @if (IsSettled) {\n <span class=\"run-view-done\">Finished</span>\n } @else if (GraphPaused) {\n <span class=\"run-view-waiting\">\n @if (PausedAtTaskID) { Waiting on {{ WaitingStepName }} }\n @else { Waiting to start \u2014 Continue or Step }\n </span>\n } @else if (RunningCount > 0) {\n <span class=\"run-view-running\">{{ RunningCount }} running</span>\n }\n @if (AllowBreakpointEditing && SelectedTaskID) {\n <button\n type=\"button\"\n class=\"run-view-bp\"\n [class.run-view-bp-on]=\"HasSelectedBreakpoint\"\n (click)=\"OnToggleSelectedBreakpoint()\"\n [attr.aria-pressed]=\"HasSelectedBreakpoint\"\n [attr.aria-label]=\"HasSelectedBreakpoint ? 'Remove breakpoint from ' + SelectedTaskName : 'Add breakpoint on ' + SelectedTaskName\"\n [title]=\"HasSelectedBreakpoint ? 'Remove breakpoint' : 'Break before this step'\">\n <i class=\"fa-circle\" [class.fa-solid]=\"HasSelectedBreakpoint\" [class.fa-regular]=\"!HasSelectedBreakpoint\" aria-hidden=\"true\"></i>\n </button>\n <span class=\"run-view-bp-name\">{{ SelectedTaskName }}</span>\n }\n </div>\n\n <div class=\"run-view-body\">\n @if (ShowVariables && !Prefs.InvocationOpen) {\n <button type=\"button\" class=\"run-view-vars-rail\"\n (click)=\"OnToggleInvocation()\"\n title=\"Show invocation and output\"\n aria-label=\"Show invocation and output\">\n <i class=\"fa-solid fa-code\" aria-hidden=\"true\"></i>\n <span>Data</span>\n </button>\n }\n <as-split class=\"run-view-split\" direction=\"horizontal\" unit=\"percent\"\n [gutterSize]=\"8\" (dragEnd)=\"OnInvocationSplitDragEnd($event.sizes)\">\n <as-split-area [size]=\"InvocationPaneSize\" [minSize]=\"14\" [visible]=\"InvocationPaneOpen\">\n <div class=\"run-view-vars\">\n <div class=\"run-view-vars-bar\">\n <span>Data</span>\n <button type=\"button\" class=\"run-view-vars-min\"\n (click)=\"OnToggleInvocation()\"\n title=\"Minimize\"\n aria-label=\"Minimize invocation and output\">\n <i class=\"fa-solid fa-chevron-left\" aria-hidden=\"true\"></i>\n </button>\n </div>\n <mj-task-graph-variables\n [InputPayload]=\"SelectedTask?.InputPayload\"\n [OutputPayload]=\"SelectedTask?.OutputPayload\"\n [Invocation]=\"Invocation\">\n </mj-task-graph-variables>\n </div>\n </as-split-area>\n <as-split-area [size]=\"CanvasPaneSize\" [minSize]=\"40\">\n <div class=\"run-view-canvas\">\n <mj-task-graph-editor\n [Spec]=\"Spec\"\n [RuntimeStatus]=\"RuntimeStatus\"\n [NodePositions]=\"Positions\"\n [DebugOverlay]=\"Overlay\"\n [ReadOnly]=\"true\"\n [ShowToolbar]=\"ShowToolbar\"\n [ToolbarVisibility]=\"ToolbarVisibility\"\n [ToolbarAlign]=\"ToolbarAlign\"\n [ShowPalette]=\"false\"\n [ShowProperties]=\"false\"\n [ShowMinimap]=\"false\"\n [ShowStatusBar]=\"false\"\n [ShowLegend]=\"ShowLegend\"\n (SelectionChanged)=\"OnSelectionChanged($event)\"\n (ConnectionSelected)=\"OnConnectionSelected($event)\"\n (LegendToggled)=\"LegendToggled.emit($event)\"\n (BeforeContextMenu)=\"OnBeforeContextMenu($event)\"\n (AfterContextMenuAction)=\"OnAfterContextMenuAction($event)\">\n </mj-task-graph-editor>\n </div>\n </as-split-area>\n </as-split>\n </div>\n </div>\n}\n", styles: ["/* `height: 100%` here resolves to auto when the host's parent has no definite height, so this is\n safe for both callers: one that gives the widget a box to fill, and one that asks for 320px. */\n:host { display: block; height: 100%; min-height: 0; }\n\n.run-view {\n display: flex;\n flex-direction: column;\n gap: var(--mj-space-2);\n height: 100%;\n min-height: 0;\n}\n\n.run-view-summary {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n font-size: var(--mj-font-size-sm);\n color: var(--mj-text-secondary);\n}\n\n.run-view-count { font-weight: 500; }\n\n/* Not-taken reads as neutral, never as a failure: a skipped branch is a normal outcome, and\n colouring it like an error sends people hunting for a bug that does not exist. */\n.run-view-skipped { color: var(--mj-text-tertiary); }\n.run-view-running { color: var(--mj-brand-primary); font-weight: 600; }\n.run-view-waiting { color: var(--mj-brand-primary); font-weight: 700; }\n.run-view-done { color: var(--mj-status-success); font-weight: 600; }\n\n.run-view-body {\n display: flex;\n flex: 1 1 auto;\n min-height: 0;\n min-width: 0;\n}\n\n.run-view-vars-rail {\n flex: 0 0 28px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n gap: var(--mj-space-2);\n padding: var(--mj-space-3) 0;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-secondary);\n cursor: pointer;\n}\n.run-view-vars-rail:hover {\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-hover);\n}\n.run-view-vars-rail span {\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n letter-spacing: 0.08em;\n text-transform: uppercase;\n font-size: var(--mj-font-size-xs);\n font-weight: 700;\n}\n.run-view-vars-rail i { font-size: 11px; }\n\n.run-view-split {\n flex: 1 1 auto;\n min-height: 0;\n min-width: 0;\n}\n\n:host ::ng-deep .run-view-split > .as-split-gutter {\n background: transparent;\n}\n:host ::ng-deep .run-view-split > .as-split-gutter::after {\n content: '';\n display: block;\n margin: auto;\n background: var(--mj-border-default);\n border-radius: 1px;\n}\n:host ::ng-deep .run-view-split.as-horizontal > .as-split-gutter::after {\n width: 3px;\n height: 32px;\n}\n:host ::ng-deep .run-view-split > .as-split-gutter:hover::after {\n background: var(--mj-brand-primary);\n}\n:host ::ng-deep .run-view-split > .as-split-area {\n overflow: hidden;\n}\n\n/* Takes what the summary line leaves, rather than a percentage of an ancestor that may not have a\n definite height \u2014 which is what left a canvas stopping halfway down its pane with dead space\n below it. */\n.run-view-canvas {\n height: 100%;\n min-height: 0;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n background: var(--mj-bg-surface);\n}\n\n.run-view-vars {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n min-width: 0;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n background: var(--mj-bg-surface);\n}\n.run-view-vars-bar {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n padding: 4px 8px;\n border-bottom: 1px solid var(--mj-border-default);\n color: var(--mj-text-secondary);\n font-size: var(--mj-font-size-xs);\n font-weight: 700;\n letter-spacing: 0.06em;\n text-transform: uppercase;\n}\n.run-view-vars-min {\n width: 22px;\n height: 22px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n}\n.run-view-vars-min:hover {\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-hover);\n}\n.run-view-vars mj-task-graph-variables {\n flex: 1 1 auto;\n min-height: 0;\n}\n\n.run-view-loading {\n padding: var(--mj-space-4);\n color: var(--mj-text-secondary);\n font-size: var(--mj-font-size-sm);\n}\n\n.run-view-bp {\n margin-left: auto;\n width: 22px;\n height: 22px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n border-radius: 50%;\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n}\n.run-view-bp:hover { color: var(--mj-status-error); }\n.run-view-bp-on,\n.run-view-bp-on:hover { color: var(--mj-status-error); }\n.run-view-bp i { font-size: 10px; }\n.run-view-bp-name {\n font-size: var(--mj-font-size-xs);\n color: var(--mj-text-muted);\n}\n\n.run-view-legend {\n display: flex;\n flex-wrap: wrap;\n gap: var(--mj-space-3);\n font-size: var(--mj-font-size-xs);\n color: var(--mj-text-muted);\n}\n.run-view-legend span {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n}\n.run-view-key-break { color: var(--mj-status-error); font-size: 8px; }\n.run-view-key-paused { color: var(--mj-brand-primary); font-size: 10px; }\n.run-view-key-forced { color: var(--mj-status-warning); font-size: 10px; }\n.run-view-key-if {\n font-family: var(--mj-font-mono, ui-monospace, monospace);\n font-style: italic;\n}\n"] }]
|
|
819
|
+
args: [{ standalone: false, selector: 'mj-task-graph-run-view', changeDetection: ChangeDetectionStrategy.OnPush, template: "@if (ErrorMessage) {\n <mj-alert Variant=\"error\" [Message]=\"ErrorMessage\"></mj-alert>\n} @else if (IsLoading) {\n <div class=\"run-view-loading\">Loading the workflow’s steps…</div>\n} @else if (!Spec || Spec.tasks.length === 0) {\n <mj-empty-state\n Icon=\"fa-solid fa-diagram-project\"\n Title=\"No steps yet\"\n Message=\"This workflow has not created any steps.\">\n </mj-empty-state>\n} @else {\n <div class=\"run-view\" [style.height]=\"Height\">\n <div class=\"run-view-summary\">\n <span class=\"run-view-count\">{{ CompletedCount }} of {{ TotalCount }} complete</span>\n @if (SkippedCount > 0) {\n <span class=\"run-view-skipped\">{{ SkippedCount }} not taken</span>\n }\n @if (IsSettled) {\n <span class=\"run-view-done\">Finished</span>\n } @else if (GraphPaused) {\n <span class=\"run-view-waiting\">\n @if (PausedAtTaskID) { Waiting on {{ WaitingStepName }} }\n @else { Waiting to start \u2014 Continue or Step }\n </span>\n } @else if (RunningCount > 0) {\n <span class=\"run-view-running\">{{ RunningCount }} running</span>\n }\n @if (AllowBreakpointEditing && SelectedTaskID) {\n <button\n type=\"button\"\n class=\"run-view-bp\"\n [class.run-view-bp-on]=\"HasSelectedBreakpoint\"\n (click)=\"OnToggleSelectedBreakpoint()\"\n [attr.aria-pressed]=\"HasSelectedBreakpoint\"\n [attr.aria-label]=\"HasSelectedBreakpoint ? 'Remove breakpoint from ' + SelectedTaskName : 'Add breakpoint on ' + SelectedTaskName\"\n [title]=\"HasSelectedBreakpoint ? 'Remove breakpoint' : 'Break before this step'\">\n <i class=\"fa-circle\" [class.fa-solid]=\"HasSelectedBreakpoint\" [class.fa-regular]=\"!HasSelectedBreakpoint\" aria-hidden=\"true\"></i>\n </button>\n <span class=\"run-view-bp-name\">{{ SelectedTaskName }}</span>\n }\n </div>\n\n <div class=\"run-view-body\">\n @if (ShowVariables && !Prefs.InvocationOpen) {\n <button type=\"button\" class=\"run-view-vars-rail\"\n (click)=\"OnToggleInvocation()\"\n title=\"Show step inputs and outputs\"\n aria-label=\"Show step inputs and outputs\">\n <i class=\"fa-solid fa-code\" aria-hidden=\"true\"></i>\n <span>Data</span>\n </button>\n }\n <as-split class=\"run-view-split\" direction=\"horizontal\" unit=\"percent\"\n [gutterSize]=\"8\" (dragEnd)=\"OnInvocationSplitDragEnd($event.sizes)\">\n <as-split-area [size]=\"InvocationPaneSize\" [minSize]=\"18\" [visible]=\"InvocationPaneOpen\">\n <div class=\"run-view-vars\">\n <div class=\"run-view-vars-bar\">\n <div class=\"run-view-vars-title\">\n @if (SelectedTask; as step) {\n <span class=\"run-view-vars-step-name\" [title]=\"step.Name\">{{ step.Name }}</span>\n <span class=\"run-view-vars-status\" [attr.data-status]=\"step.Status\">{{ step.Status }}</span>\n } @else {\n <span>Step Inputs & Outputs</span>\n }\n </div>\n <button type=\"button\" class=\"run-view-vars-min\"\n (click)=\"OnToggleInvocation()\"\n title=\"Minimize\"\n aria-label=\"Minimize invocation and output\">\n <i class=\"fa-solid fa-chevron-left\" aria-hidden=\"true\"></i>\n </button>\n </div>\n @if (SelectedTask?.ErrorMessage; as errMsg) {\n <div class=\"run-view-vars-error\" role=\"status\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>\n <span>{{ errMsg }}</span>\n </div>\n }\n <mj-task-graph-variables\n [TaskID]=\"SelectedTask?.ID\"\n [InputPayload]=\"SelectedTask?.InputPayload\"\n [OutputPayload]=\"SelectedTask?.OutputPayload\"\n [Invocation]=\"Invocation\">\n </mj-task-graph-variables>\n </div>\n </as-split-area>\n <as-split-area [size]=\"CanvasPaneSize\" [minSize]=\"40\">\n <div class=\"run-view-canvas\">\n <mj-task-graph-editor\n [Spec]=\"Spec\"\n [RuntimeStatus]=\"RuntimeStatus\"\n [NodePositions]=\"Positions\"\n [DebugOverlay]=\"Overlay\"\n [ReadOnly]=\"true\"\n [ShowToolbar]=\"ShowToolbar\"\n [ToolbarVisibility]=\"ToolbarVisibility\"\n [ToolbarAlign]=\"ToolbarAlign\"\n [ShowPalette]=\"false\"\n [ShowProperties]=\"false\"\n [ShowMinimap]=\"false\"\n [ShowStatusBar]=\"false\"\n [ShowLegend]=\"ShowLegend\"\n (SelectionChanged)=\"OnSelectionChanged($event)\"\n (ConnectionSelected)=\"OnConnectionSelected($event)\"\n (LegendToggled)=\"LegendToggled.emit($event)\"\n (BeforeContextMenu)=\"OnBeforeContextMenu($event)\"\n (AfterContextMenuAction)=\"OnAfterContextMenuAction($event)\">\n </mj-task-graph-editor>\n </div>\n </as-split-area>\n </as-split>\n </div>\n </div>\n}\n", styles: ["/* `height: 100%` here resolves to auto when the host's parent has no definite height, so this is\n safe for both callers: one that gives the widget a box to fill, and one that asks for 320px. */\n:host { display: block; width: 100%; height: 100%; min-height: 0; min-width: 0; }\n\n.run-view {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n gap: var(--mj-space-2);\n width: 100%;\n height: 100%;\n min-height: 0;\n min-width: 0;\n}\n\n.run-view-summary {\n display: flex;\n align-items: center;\n gap: var(--mj-space-3);\n font-size: var(--mj-font-size-sm);\n color: var(--mj-text-secondary);\n}\n\n.run-view-count { font-weight: 500; }\n\n/* Not-taken reads as neutral, never as a failure: a skipped branch is a normal outcome, and\n colouring it like an error sends people hunting for a bug that does not exist. */\n.run-view-skipped { color: var(--mj-text-tertiary); }\n.run-view-running { color: var(--mj-brand-primary); font-weight: 600; }\n.run-view-waiting { color: var(--mj-brand-primary); font-weight: 700; }\n.run-view-done { color: var(--mj-status-success); font-weight: 600; }\n\n.run-view-body {\n display: flex;\n flex: 1 1 auto;\n width: 100%;\n min-height: 0;\n min-width: 0;\n}\n\n.run-view-vars-rail {\n flex: 0 0 28px;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-start;\n gap: var(--mj-space-2);\n padding: var(--mj-space-3) 0;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n background: var(--mj-bg-surface-card);\n color: var(--mj-text-secondary);\n cursor: pointer;\n}\n.run-view-vars-rail:hover {\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-hover);\n}\n.run-view-vars-rail span {\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n letter-spacing: 0.08em;\n text-transform: uppercase;\n font-size: var(--mj-font-size-xs);\n font-weight: 700;\n}\n.run-view-vars-rail i { font-size: 11px; }\n\n.run-view-split {\n flex: 1 1 auto;\n width: 100%;\n min-height: 0;\n min-width: 0;\n}\n\n:host ::ng-deep .run-view-split > .as-split-gutter {\n background: transparent;\n}\n:host ::ng-deep .run-view-split > .as-split-gutter::after {\n content: '';\n display: block;\n margin: auto;\n background: var(--mj-border-default);\n border-radius: 1px;\n}\n:host ::ng-deep .run-view-split.as-horizontal > .as-split-gutter::after {\n width: 3px;\n height: 32px;\n}\n:host ::ng-deep .run-view-split > .as-split-gutter:hover::after {\n background: var(--mj-brand-primary);\n}\n:host ::ng-deep .run-view-split > .as-split-area {\n overflow: hidden;\n}\n\n/* Takes what the summary line leaves, rather than a percentage of an ancestor that may not have a\n definite height \u2014 which is what left a canvas stopping halfway down its pane with dead space\n below it. */\n.run-view-canvas {\n width: 100%;\n height: 100%;\n min-height: 0;\n min-width: 0;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n background: var(--mj-bg-surface);\n}\n\n.run-view-vars {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n min-width: 0;\n border: 1px solid var(--mj-border-default);\n border-radius: var(--mj-radius-md);\n overflow: hidden;\n background: var(--mj-bg-surface);\n}\n.run-view-vars-bar {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--mj-space-2);\n padding: 6px 8px;\n border-bottom: 1px solid var(--mj-border-default);\n color: var(--mj-text-secondary);\n font-size: var(--mj-font-size-xs);\n font-weight: 700;\n letter-spacing: 0.06em;\n text-transform: uppercase;\n min-width: 0;\n}\n.run-view-vars-title {\n display: flex;\n align-items: center;\n gap: 6px;\n min-width: 0;\n flex: 1 1 auto;\n}\n.run-view-vars-step-name {\n color: var(--mj-text-primary);\n font-size: var(--mj-font-size-xs);\n font-weight: 600;\n letter-spacing: normal;\n text-transform: none;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.run-view-vars-status {\n flex: 0 0 auto;\n padding: 1px 6px;\n border-radius: var(--mj-radius-full, 999px);\n font-size: 10px;\n font-weight: 600;\n letter-spacing: normal;\n text-transform: none;\n background: var(--mj-bg-surface-sunken);\n color: var(--mj-text-secondary);\n}\n.run-view-vars-status[data-status=\"Complete\"],\n.run-view-vars-status[data-status=\"Completed\"] {\n background: color-mix(in srgb, var(--mj-status-success) 15%, transparent);\n color: var(--mj-status-success);\n}\n.run-view-vars-status[data-status=\"In Progress\"],\n.run-view-vars-status[data-status=\"Running\"] {\n background: color-mix(in srgb, var(--mj-brand-primary) 15%, transparent);\n color: var(--mj-brand-primary);\n}\n.run-view-vars-status[data-status=\"Failed\"] {\n background: color-mix(in srgb, var(--mj-status-error) 15%, transparent);\n color: var(--mj-status-error);\n}\n.run-view-vars-error {\n flex: 0 0 auto;\n display: flex;\n align-items: flex-start;\n gap: 6px;\n padding: 6px 8px;\n border-bottom: 1px solid var(--mj-border-default);\n background: color-mix(in srgb, var(--mj-status-error) 10%, transparent);\n color: var(--mj-status-error);\n font-size: var(--mj-font-size-xs);\n line-height: 1.35;\n}\n.run-view-vars-min {\n width: 22px;\n height: 22px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n border-radius: var(--mj-radius-sm);\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n}\n.run-view-vars-min:hover {\n color: var(--mj-text-primary);\n background: var(--mj-bg-surface-hover);\n}\n.run-view-vars mj-task-graph-variables {\n flex: 1 1 auto;\n min-height: 0;\n}\n\n.run-view-loading {\n padding: var(--mj-space-4);\n color: var(--mj-text-secondary);\n font-size: var(--mj-font-size-sm);\n}\n\n.run-view-bp {\n margin-left: auto;\n width: 22px;\n height: 22px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n border: none;\n border-radius: 50%;\n background: transparent;\n color: var(--mj-text-muted);\n cursor: pointer;\n}\n.run-view-bp:hover { color: var(--mj-status-error); }\n.run-view-bp-on,\n.run-view-bp-on:hover { color: var(--mj-status-error); }\n.run-view-bp i { font-size: 10px; }\n.run-view-bp-name {\n font-size: var(--mj-font-size-xs);\n color: var(--mj-text-muted);\n}\n\n.run-view-legend {\n display: flex;\n flex-wrap: wrap;\n gap: var(--mj-space-3);\n font-size: var(--mj-font-size-xs);\n color: var(--mj-text-muted);\n}\n.run-view-legend span {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n}\n.run-view-key-break { color: var(--mj-status-error); font-size: 8px; }\n.run-view-key-paused { color: var(--mj-brand-primary); font-size: 10px; }\n.run-view-key-forced { color: var(--mj-status-warning); font-size: 10px; }\n.run-view-key-if {\n font-family: var(--mj-font-mono, ui-monospace, monospace);\n font-style: italic;\n}\n"] }]
|
|
765
820
|
}], () => [{ type: i0.ChangeDetectorRef }], { ParentTaskID: [{
|
|
766
821
|
type: Input
|
|
767
822
|
}], WorkflowName: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-graph-run-view.component.js","sourceRoot":"","sources":["../../src/lib/task-graph-run-view.component.ts","../../src/lib/task-graph-run-view.component.html"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EACH,uBAAuB,EAEvB,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,KAAK,EAEL,MAAM,GACT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAwC,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACrG,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAA0B,MAAM,wBAAwB,CAAC;AACxF,OAAO,EACH,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,GAIxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAA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,OAAO,IAAI,GAAG,KAAK,UAAU,IAAI,GAAG,KAAK,QAAQ,IAAI,MAAM,CAAC,iBAAiB,CAAC;AACjG,CAAC","sourcesContent":["/**\n * @fileoverview Watching a graph that is running, on the canvas its author drew on.\n *\n * **Why this is a component and not three.** A run needs rendering in at least three places — inside\n * an Agent Run, inside the test harness, and on a standalone workflow-runs screen — and every one of\n * them wants the identical thing: the graph, with live status, laid out legibly, with a node you can\n * click. Three implementations would be three chances to render the same run differently, and the\n * one that matters most (is that branch grey because it was *not taken*, or because it *broke*?) is\n * exactly the distinction a second implementation gets wrong.\n *\n * **What it owns and what it doesn't.** It owns data acquisition — reading `MJ: Tasks` and\n * `MJ: Task Dependencies` through the host's provider — and geometry. It does not navigate: a\n * widgets-layer component cannot know whether it sits inside Explorer, so selecting a node emits an\n * event and the host decides what \"open the agent run\" means. That boundary is the whole reason\n * this can live beside the editor rather than in Explorer.\n *\n * @module @memberjunction/ng-task-graph-editor\n */\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n HostListener,\n Input,\n OnDestroy,\n Output,\n} from '@angular/core';\nimport { BaseAngularComponent } from '@memberjunction/ng-base-types';\nimport { LogError, RunView } from '@memberjunction/core';\nimport { UUIDsEqual } from '@memberjunction/global';\nimport { MJTaskEntity, MJTaskDependencyEntity, UserInfoEngine } from '@memberjunction/core-entities';\nimport { ToPaneSizePair } from './pane-split';\nimport { TaskGraphRunPrefsStore, type TaskGraphRunPrefs } from './task-graph-run-prefs';\nimport {\n GraphLayoutBounds,\n LayoutGraphNodes,\n ProjectTaskRowsToSpec,\n type GraphLayoutEdge,\n type GraphNodePosition,\n type TaskGraphSpec,\n} from '@memberjunction/ai-core-plus';\nimport { BuildRuntimeStatus, IsRuntimeSettled, NormalizeRuntimeState } from './task-graph-runtime-source';\nimport type { TaskGraphDebugOverlay, TaskGraphRuntimeStatus } from './task-graph-canvas-adapter';\nimport type { TaskGraphSelectionChangedEventArgs } from './task-graph-editor-events';\nimport type {\n FlowAfterContextMenuActionEventArgs,\n FlowBeforeContextMenuEventArgs,\n FlowConnection,\n FlowToolbarAlign,\n FlowToolbarVisibility,\n} from '@memberjunction/ng-flow-editor';\n\n/** What the host learns when someone clicks a step. */\nexport type TaskGraphRunNodeSelectedEvent = {\n /** The `MJ: Tasks` row id. */\n TaskID: string;\n Task: MJTaskEntity | null;\n};\n\n/** What the host learns when someone clicks a path. */\nexport type TaskGraphRunConnectionSelectedEvent = {\n /** The `MJ: Task Dependencies` row id, when the projection carried one. */\n EdgeID: string | null;\n FromTaskID: string;\n ToTaskID: string;\n Condition?: string;\n};\n\n/**\n * One live dispatcher frame, as the HOST hands it in.\n *\n * Structural on purpose: the widget must not import the transport (`GraphQLDataProvider`'s\n * `TaskGraphFrameEvent` satisfies this shape as-is), and the host owns the subscription — this\n * component only renders what it is handed, which is the widgets-layer rule that keeps it embeddable\n * anywhere. Fields beyond these are ignored, so a newer server cannot break an older widget.\n */\nexport type TaskGraphRunFrame = {\n kind: string;\n taskId?: string;\n taskName?: string;\n status?: string;\n progressMessage?: string;\n progressPercent?: number;\n reason?: string;\n edgeId?: string;\n dependsOnTaskId?: string;\n conditionText?: string;\n claimEvent?: string;\n claimedBy?: string;\n verdict?: string;\n passNumber?: number;\n eligibleCount?: number;\n heldCount?: number;\n claimedCount?: number;\n};\n\n/** Statuses at which a graph has stopped moving, so polling can stop with it. */\nconst SETTLED = new Set<MJTaskEntity['Status']>(['Complete', 'Failed', 'Cancelled', 'Skipped']);\n\n@Component({\n standalone: false,\n selector: 'mj-task-graph-run-view',\n templateUrl: './task-graph-run-view.component.html',\n styleUrls: ['./task-graph-run-view.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TaskGraphRunViewComponent extends BaseAngularComponent implements OnDestroy {\n /**\n * The graph to watch — the parent `MJ: Tasks` row that represents it.\n *\n * Setter-based rather than `ngOnChanges`, matching the editor beside it: the reaction is\n * explicit and costs nothing on unrelated change-detection passes.\n */\n @Input()\n public set ParentTaskID(value: string | null) {\n if (value === this.parentTaskID) return;\n this.parentTaskID = value;\n this.settledEmitted = false;\n void this.load();\n }\n public get ParentTaskID(): string | null {\n return this.parentTaskID;\n }\n\n /** Name shown on the compiled graph. Purely cosmetic; the rows carry the truth. */\n @Input() public WorkflowName: string = 'Workflow';\n\n /**\n * Keep re-reading while the graph is still moving.\n *\n * Off by default: most hosts show a finished run, and a component that polls by default would\n * have every historical run quietly issuing queries forever.\n */\n @Input() public LiveUpdates: boolean = false;\n\n /** How often to re-read while live. Seconds, not milliseconds — this is a human-scale view. */\n @Input() public PollIntervalSeconds: number = 3;\n\n /** Height of the canvas. Hosts embed this in very different amounts of space. */\n @Input() public Height: string = '320px';\n\n /**\n * Whether the canvas legend shows. **Off by default here**, unlike the editor.\n *\n * The legend explains the authoring vocabulary — what a conditional edge means, what a duplicate\n * default looks like. That is what someone drawing a graph needs. A run view answers a different\n * question, \"what happened\", which the legend helps with not at all while covering a corner of\n * the canvas the graph is usually occupying.\n */\n @Input() public ShowLegend: boolean = false;\n\n /**\n * Whether the canvas toolbar rides above the graph.\n *\n * Debug and other run hosts leave this on and set `ToolbarVisibility` to `minimized` so the\n * graph is the picture, not a floating tool strip. The chip in the corner restores the bar.\n */\n @Input() public ShowToolbar: boolean = true;\n @Input() public ToolbarVisibility: FlowToolbarVisibility = 'minimized';\n @Input() public ToolbarAlign: FlowToolbarAlign = 'left';\n\n /**\n * The latest live dispatcher frame, handed in by the host.\n *\n * The host owns the subscription (`GraphQLDataProvider.TaskGraphFrames` or anything shaped like\n * it) and binds each arrival here; the widget folds it into the overlay. Frames are advisory —\n * a task frame patches the node's status in place for sub-second feedback, and the frames that\n * imply CASCADES (a skip, a block, settlement) trigger a debounced row reload, because the\n * dispatcher's propagation writes rows this component cannot infer from one frame. Rows remain\n * the truth; the existing poll (if enabled) remains the safety net.\n */\n @Input()\n public set LiveFrame(frame: TaskGraphRunFrame | null) {\n if (!frame) return;\n this.foldFrame(frame);\n }\n\n /**\n * Replay: render the run as it stood at this moment, reconstructed from each step's\n * `StartedAt`/`CompletedAt`. Null (the default) renders the present. A step that had not\n * started reads Pending; one mid-flight reads In Progress; one already finished reads its\n * final status — the same three answers the rows would have given a viewer at that time.\n */\n @Input()\n public set ReplayAt(value: Date | null) {\n if (value?.getTime() === this.replayAt?.getTime()) return;\n this.replayAt = value;\n this.applyReplay();\n }\n public get ReplayAt(): Date | null {\n return this.replayAt;\n }\n\n /**\n * Armed breakpoint task IDs, from the parent row's `$.debug.breakpoints`. Empty by default so\n * embeds (agent-run timeline, test harness) never grow debugger chrome they did not ask for.\n */\n @Input()\n public set Breakpoints(value: readonly string[]) {\n this.breakpoints = value ?? [];\n this.rebuildOverlay();\n }\n public get Breakpoints(): readonly string[] {\n return this.breakpoints;\n }\n /** The step a breakpoint actually stopped on. */\n @Input()\n public set PausedAtTaskID(value: string | null) {\n this.pausedAtTaskID = value;\n if (value) this.SelectedTaskID = value;\n this.rebuildOverlay();\n }\n public get PausedAtTaskID(): string | null {\n return this.pausedAtTaskID;\n }\n /**\n * The graph is claim-gated. Combined with `PausedAtTaskID` so start-paused (no specific\n * step yet) can still light the entry node as waiting.\n */\n @Input()\n public set GraphPaused(value: boolean) {\n this.graphPaused = value;\n this.rebuildOverlay();\n }\n public get GraphPaused(): boolean {\n return this.graphPaused;\n }\n /** Operator-forced edge verdicts, keyed by `MJ: Task Dependencies` row ID. */\n @Input()\n public set EdgeOverrides(value: Readonly<Record<string, 'true' | 'false'>>) {\n this.edgeOverrides = value ?? {};\n this.rebuildOverlay();\n }\n public get EdgeOverrides(): Readonly<Record<string, 'true' | 'false'>> {\n return this.edgeOverrides;\n }\n /**\n * Whether this host may arm/disarm breakpoints from the selected-step control.\n * Off by default — the run view also renders where those controls would be wrong.\n */\n @Input() public AllowBreakpointEditing: boolean = false;\n /** Compact debug key under the summary line. Off unless the host is a debugger. */\n @Input() public ShowDebugLegend: boolean = false;\n /** VS Code VARIABLES pane to the left of the canvas. Off unless the host is debugging. */\n @Input() public ShowVariables: boolean = false;\n /** The parent bag's `data` / `context` roots, for the Invocation scope. */\n @Input() public Invocation: { data?: unknown; context?: unknown } | null = null;\n\n @Output() public NodeSelected = new EventEmitter<TaskGraphRunNodeSelectedEvent>();\n /** The legend was toggled from the toolbar, so a host can remember the choice. */\n @Output() public LegendToggled = new EventEmitter<boolean>();\n /** Emitted once, when every step has reached a terminal status. */\n @Output() public Settled = new EventEmitter<void>();\n /** A connection was clicked. `EdgeID` is the dependency row id when the projection carried one. */\n @Output() public ConnectionSelected = new EventEmitter<TaskGraphRunConnectionSelectedEvent>();\n /** Intent only — the host owns `SetBreakpoints`. */\n @Output() public BreakpointToggled = new EventEmitter<{ TaskID: string; Enabled: boolean }>();\n /** Intent only — the host owns `OverrideEdge`. */\n @Output() public EdgeOverrideRequested = new EventEmitter<{\n EdgeID: string;\n Verdict: 'true' | 'false' | null;\n }>();\n\n /** What each running step says it is doing, from `NodeProgress` frames. Keyed by task row id. */\n public LiveActivity = new Map<string, { Message: string; Percent?: number }>();\n\n /** The last step the person selected, so the breakpoint control has a target. */\n public SelectedTaskID: string | null = null;\n /** Stable overlay object — rebuilt only when debug inputs change, so the editor does not re-project every CD cycle. */\n public Overlay: TaskGraphDebugOverlay = { showConditions: true };\n\n private breakpoints: readonly string[] = [];\n private pausedAtTaskID: string | null = null;\n private graphPaused = false;\n private edgeOverrides: Readonly<Record<string, 'true' | 'false'>> = {};\n /** `Settled` is once-per-parent — a finished poll must not re-fire the host. */\n private settledEmitted = false;\n\n /** Left data pane + split sizes. One JSON bag in `MJ: User Settings`. */\n public get Prefs(): TaskGraphRunPrefs {\n return this.prefsStore.Value;\n }\n private prefsStore = new TaskGraphRunPrefsStore({\n Get: () => undefined,\n Set: () => { /* unit tests / pre-bootstrap */ },\n });\n\n public Spec: TaskGraphSpec | null = null;\n public RuntimeStatus: TaskGraphRuntimeStatus | null = null;\n public Positions: Map<string, GraphNodePosition> = new Map();\n public IsLoading = false;\n public ErrorMessage: string | null = null;\n\n /** Rows by id, so a selection event can hand the host the whole task rather than an id. */\n private taskByID = new Map<string, MJTaskEntity>();\n private parentTaskID: string | null = null;\n private replayAt: Date | null = null;\n private pollTimer: ReturnType<typeof setTimeout> | null = null;\n private frameReloadTimer: ReturnType<typeof setTimeout> | null = null;\n private destroyed = false;\n\n constructor(private cdr: ChangeDetectorRef) {\n super();\n try {\n this.prefsStore = new TaskGraphRunPrefsStore({\n Get: (key) => UserInfoEngine.Instance.GetSetting(key),\n Set: (key, value) => UserInfoEngine.Instance.SetSettingDebounced(key, value),\n });\n this.prefsStore.Restore();\n } catch {\n // Engine not configured yet (unit tests, pre-bootstrap) — keep the default.\n }\n }\n\n public get InvocationPaneOpen(): boolean {\n return this.ShowVariables && this.Prefs.InvocationOpen;\n }\n\n public get InvocationPaneSize(): number {\n return this.InvocationPaneOpen ? this.Prefs.InvocationSplit[0] : 0;\n }\n\n public get CanvasPaneSize(): number {\n return this.InvocationPaneOpen ? this.Prefs.InvocationSplit[1] : 100;\n }\n\n public OnToggleInvocation(): void {\n this.prefsStore.SetInvocationOpen(!this.Prefs.InvocationOpen);\n this.cdr.markForCheck();\n }\n\n public OnInvocationSplitDragEnd(sizes: readonly (number | '*')[]): void {\n const pair = ToPaneSizePair(sizes);\n if (!pair) return;\n this.prefsStore.SetInvocationSplit(pair);\n this.cdr.markForCheck();\n }\n\n public ngOnDestroy(): void {\n this.destroyed = true;\n this.stopPolling();\n if (this.frameReloadTimer) {\n clearTimeout(this.frameReloadTimer);\n this.frameReloadTimer = null;\n }\n }\n\n /** Steps in a terminal state, for the host's summary line. Uses the same map the canvas paints. */\n public get CompletedCount(): number {\n return this.countRuntime('Complete');\n }\n\n public get TotalCount(): number {\n return this.Spec?.tasks.length ?? this.taskByID.size;\n }\n\n public get SkippedCount(): number {\n return this.countRuntime('Skipped');\n }\n\n public get RunningCount(): number {\n return this.countRuntime('In Progress');\n }\n\n public get IsSettled(): boolean {\n if (!this.Spec || this.Spec.tasks.length === 0) return false;\n return IsRuntimeSettled(this.RuntimeStatus ?? {}, this.Spec.tasks.map((t) => t.tempId));\n }\n\n /**\n * A node was selected on the canvas.\n *\n * The projected `tempId` IS the task id, so the row lookup is exact — and handing the host the\n * whole task rather than an id spares every host from re-reading a row this component already\n * holds.\n */\n public OnSelectionChanged(args: TaskGraphSelectionChangedEventArgs): void {\n const tempId = args?.Task?.tempId;\n if (!tempId) return;\n this.SelectedTaskID = tempId;\n this.NodeSelected.emit({ TaskID: tempId, Task: this.taskByID.get(tempId) ?? null });\n this.cdr.markForCheck();\n }\n\n public OnConnectionSelected(connection: FlowConnection | null): void {\n if (!connection) {\n this.ConnectionSelected.emit({ EdgeID: null, FromTaskID: '', ToTaskID: '' });\n return;\n }\n const data = connection.Data ?? {};\n const edgeID = typeof data['EdgeID'] === 'string' ? data['EdgeID'] : null;\n const from = typeof data['FromTempId'] === 'string' ? data['FromTempId'] : connection.SourceNodeID;\n const to = typeof data['ToTempId'] === 'string' ? data['ToTempId'] : connection.TargetNodeID;\n this.ConnectionSelected.emit({\n EdgeID: edgeID,\n FromTaskID: from,\n ToTaskID: to,\n Condition: connection.Condition,\n });\n }\n\n private countRuntime(state: TaskGraphRuntimeStatus[string]): number {\n if (!this.RuntimeStatus) {\n return [...this.taskByID.values()].filter((t) => NormalizeRuntimeState(t.Status) === state).length;\n }\n return Object.values(this.RuntimeStatus).filter((s) => s === state).length;\n }\n\n public get HasSelectedBreakpoint(): boolean {\n return !!this.SelectedTaskID && this.hasBreakpoint(this.SelectedTaskID);\n }\n\n public get SelectedTaskName(): string {\n if (!this.SelectedTaskID) return '';\n return this.taskByID.get(this.SelectedTaskID)?.Name ?? 'this step';\n }\n\n public get WaitingStepName(): string {\n if (this.pausedAtTaskID) {\n return this.taskByID.get(this.pausedAtTaskID)?.Name\n ?? this.Spec?.tasks.find((t) => t.tempId === this.pausedAtTaskID)?.name\n ?? 'this step';\n }\n const entry = this.Spec?.tasks.find((t) => (t.dependsOn?.length ?? 0) === 0);\n return entry?.name ?? 'the first step';\n }\n\n public get SelectedTask(): MJTaskEntity | null {\n return this.SelectedTaskID ? this.taskByID.get(this.SelectedTaskID) ?? null : null;\n }\n\n public OnToggleSelectedBreakpoint(): void {\n if (!this.AllowBreakpointEditing || !this.SelectedTaskID) return;\n this.BreakpointToggled.emit({\n TaskID: this.SelectedTaskID,\n Enabled: !this.HasSelectedBreakpoint,\n });\n }\n\n /** Debug attaches here: replace Edit/Remove with breakpoint / path-override items. */\n public OnBeforeContextMenu(event: FlowBeforeContextMenuEventArgs): void {\n if (!this.AllowBreakpointEditing) {\n event.Cancel = true;\n return;\n }\n if (event.Target === 'node' && event.Node) {\n const on = this.hasBreakpoint(event.Node.ID);\n event.Items = [{\n ID: 'toggle-breakpoint',\n Label: on ? 'Remove Breakpoint' : 'Add Breakpoint',\n Icon: 'fa-circle',\n Shortcut: 'F9',\n }];\n return;\n }\n if (event.Target === 'connection' && event.Connection?.Condition?.trim()) {\n const edgeID = typeof event.Connection.Data?.['EdgeID'] === 'string'\n ? event.Connection.Data['EdgeID']\n : null;\n if (!edgeID) {\n event.Cancel = true;\n return;\n }\n event.Items = [\n { ID: 'force-true', Label: 'Take this path', Icon: 'fa-check' },\n { ID: 'force-false', Label: 'Skip this path', Icon: 'fa-xmark' },\n { ID: 'force-clear', Label: 'Clear override', Icon: 'fa-rotate-left' },\n ];\n return;\n }\n event.Cancel = true;\n }\n\n public OnAfterContextMenuAction(event: FlowAfterContextMenuActionEventArgs): void {\n if (event.ActionID === 'toggle-breakpoint' && event.Node) {\n this.BreakpointToggled.emit({\n TaskID: event.Node.ID,\n Enabled: !this.hasBreakpoint(event.Node.ID),\n });\n return;\n }\n const edgeID = typeof event.Connection?.Data?.['EdgeID'] === 'string'\n ? event.Connection.Data['EdgeID']\n : null;\n if (!edgeID) return;\n if (event.ActionID === 'force-true') this.EdgeOverrideRequested.emit({ EdgeID: edgeID, Verdict: 'true' });\n if (event.ActionID === 'force-false') this.EdgeOverrideRequested.emit({ EdgeID: edgeID, Verdict: 'false' });\n if (event.ActionID === 'force-clear') this.EdgeOverrideRequested.emit({ EdgeID: edgeID, Verdict: null });\n }\n\n private hasBreakpoint(taskID: string): boolean {\n return this.breakpoints.some((id) => UUIDsEqual(id, taskID));\n }\n\n @HostListener('document:keydown', ['$event'])\n public OnDebugHotkey(event: KeyboardEvent): void {\n if (!this.AllowBreakpointEditing) return;\n if (isTypingTarget(event.target)) return;\n if (event.key === 'F9') {\n event.preventDefault();\n this.OnToggleSelectedBreakpoint();\n }\n }\n\n private rebuildOverlay(): void {\n this.Overlay = {\n breakpoints: this.breakpoints,\n // A finished graph is not \"paused here\" — the durable bag can still name the last\n // breakpoint after every step is terminal.\n pausedAtTaskID: this.IsSettled ? null : this.pausedAtTaskID,\n paused: !this.IsSettled && this.graphPaused,\n edgeOverrides: this.edgeOverrides,\n showConditions: true,\n };\n }\n\n private emitSettledOnce(): void {\n if (this.settledEmitted || !this.IsSettled) return;\n this.settledEmitted = true;\n this.Settled.emit();\n }\n\n /**\n * Reads the graph and projects it onto the canvas.\n *\n * `BypassCache` throughout: a run view exists to show what is true *now*, and the whole point of\n * the poll is to see a status that changed a second ago. A cached read would render a stale graph\n * that looks authoritative.\n */\n private async load(): Promise<void> {\n this.stopPolling();\n if (!this.parentTaskID) {\n this.Spec = null;\n this.cdr.markForCheck();\n return;\n }\n\n this.IsLoading = this.Spec === null; // only show the spinner on first load, not on every poll\n this.ErrorMessage = null;\n\n try {\n const rv = RunView.FromMetadataProvider(this.ProviderToUse);\n const [tasks, deps] = await rv.RunViews<MJTaskEntity | MJTaskDependencyEntity>([\n {\n EntityName: 'MJ: Tasks',\n ExtraFilter: `ParentID='${this.parentTaskID}'`,\n // Started work in the order it ran, unstarted last, persist order as the\n // tiebreak — the same rule GetAgentRunTree uses, so a graph reads identically\n // wherever it is shown.\n //\n // `__mj_CreatedAt ASC` alone was persist order, which is the COMPILER's walk\n // order, not the author's numbering and not what actually happened: a settled\n // graph listed its steps in an order unrelated to their execution, and a skipped\n // step could sit above work that ran.\n OrderBy: 'CASE WHEN StartedAt IS NULL THEN 1 ELSE 0 END, StartedAt, __mj_CreatedAt',\n ResultType: 'entity_object',\n BypassCache: true,\n },\n {\n EntityName: 'MJ: Task Dependencies',\n ExtraFilter: `TaskID IN (SELECT ID FROM [__mj].[vwTasks] WHERE ParentID='${this.parentTaskID}')`,\n ResultType: 'entity_object',\n BypassCache: true,\n },\n ]);\n\n if (this.destroyed) return;\n\n if (!tasks.Success) {\n this.fail(`The workflow's steps could not be loaded: ${tasks.ErrorMessage}`);\n return;\n }\n\n const taskRows = (tasks.Results ?? []) as MJTaskEntity[];\n const depRows = (deps.Success ? (deps.Results ?? []) : []) as MJTaskDependencyEntity[];\n this.project(taskRows, depRows);\n this.rebuildOverlay();\n this.emitSettledOnce();\n\n if (this.LiveUpdates && !this.isSettled(taskRows)) this.schedulePoll();\n } catch (e) {\n this.fail(e instanceof Error ? e.message : String(e));\n } finally {\n this.IsLoading = false;\n this.cdr.markForCheck();\n }\n }\n\n /** Rows → spec + runtime + geometry. */\n private project(taskRows: MJTaskEntity[], depRows: MJTaskDependencyEntity[]): void {\n this.taskByID = new Map(taskRows.map((t) => [t.ID, t]));\n\n const projection = ProjectTaskRowsToSpec(this.WorkflowName, taskRows, depRows);\n this.Spec = projection.Spec;\n\n // Correlate by ID, not by name: a projected node's tempId IS the task id, which is the one\n // case where an id match is exact. Name correlation exists for specs whose tempIds were\n // never real, and would be needlessly lossy here.\n const knownIDs = new Set(taskRows.map((t) => t.ID));\n this.RuntimeStatus = this.replayAt\n ? this.statusAt(this.replayAt)\n : BuildRuntimeStatus(taskRows, new Map(), knownIDs);\n\n this.Positions = this.resolvePositions(projection.AuthoredPositions, taskRows, depRows);\n }\n\n /** Re-derives the overlay for the current replay position (or the present) from held rows. */\n private applyReplay(): void {\n if (this.taskByID.size === 0) return;\n const rows = [...this.taskByID.values()];\n this.RuntimeStatus = this.replayAt\n ? this.statusAt(this.replayAt)\n : BuildRuntimeStatus(rows, new Map(), new Set(rows.map((t) => t.ID)));\n this.cdr.markForCheck();\n }\n\n /** The overlay as it stood at `moment`, from each row's own timestamps. */\n private statusAt(moment: Date): TaskGraphRuntimeStatus {\n const at = moment.getTime();\n const status: TaskGraphRuntimeStatus = {};\n for (const [id, row] of this.taskByID) {\n const started = row.StartedAt?.getTime?.() ?? (row.StartedAt ? new Date(row.StartedAt).getTime() : null);\n const completed = row.CompletedAt?.getTime?.() ?? (row.CompletedAt ? new Date(row.CompletedAt).getTime() : null);\n if (started == null || started > at) status[id] = 'Pending';\n else if (completed == null || completed > at) status[id] = 'In Progress';\n else status[id] = NormalizeRuntimeState(row.Status);\n }\n return status;\n }\n\n /**\n * The author's arrangement where there is one, a computed layout everywhere else.\n *\n * Mixing the two per-node rather than choosing one for the whole graph: a workflow whose author\n * positioned some steps and left others where they fell should keep the positions they chose.\n * A wholly unpositioned graph — the normal case for anything an agent emitted — is laid out\n * entirely by the algorithm.\n */\n private resolvePositions(\n authored: Map<string, GraphNodePosition>,\n taskRows: MJTaskEntity[],\n depRows: MJTaskDependencyEntity[],\n ): Map<string, GraphNodePosition> {\n const missing = taskRows.filter((t) => !authored.has(t.ID)).map((t) => t.ID);\n if (missing.length === 0) return authored;\n\n const edges: GraphLayoutEdge[] = depRows.map((d) => ({ From: d.DependsOnTaskID, To: d.TaskID }));\n const computed = LayoutGraphNodes(taskRows.map((t) => t.ID), edges, { Direction: 'LR' });\n\n const resolved = new Map(computed);\n for (const [id, position] of authored) resolved.set(id, position);\n return resolved;\n }\n\n private isSettled(taskRows: MJTaskEntity[]): boolean {\n return taskRows.length > 0 && taskRows.every((t) => SETTLED.has(t.Status));\n }\n\n /**\n * Folds one live frame into the overlay.\n *\n * Direct status frames patch in place — a new `RuntimeStatus` object, because the canvas is\n * OnPush and mutation would render nothing. Frames whose consequences the dispatcher computes\n * across the whole graph (skips cascade, blocks propagate, settlement rolls up) reload the rows\n * instead: inferring a cascade client-side would be a second implementation of the engine's\n * rules, free to drift.\n */\n private foldFrame(frame: TaskGraphRunFrame): void {\n switch (frame.kind) {\n case 'TaskStarted':\n case 'TaskCompleted':\n case 'TaskFailed':\n if (frame.taskId && frame.status && this.RuntimeStatus) {\n const row = this.taskByID.get(frame.taskId);\n if (row) row.Status = frame.status as MJTaskEntity['Status'];\n this.RuntimeStatus = { ...this.RuntimeStatus, [frame.taskId]: NormalizeRuntimeState(frame.status) };\n if (frame.kind !== 'TaskStarted') this.LiveActivity.delete(frame.taskId);\n this.rebuildOverlay();\n this.emitSettledOnce();\n this.cdr.markForCheck();\n }\n break;\n case 'NodeProgress':\n if (frame.taskId && frame.progressMessage) {\n this.LiveActivity.set(frame.taskId, { Message: frame.progressMessage, Percent: frame.progressPercent });\n this.cdr.markForCheck();\n }\n break;\n case 'GraphSettled':\n this.scheduleFrameReload();\n // The engine said the graph is done — do not wait for the row reload to tell the host.\n if (!this.settledEmitted) {\n this.settledEmitted = true;\n this.Settled.emit();\n }\n break;\n case 'TaskSkipped':\n case 'TaskBlocked':\n case 'TaskAwaitingHuman':\n case 'GraphResumed':\n this.scheduleFrameReload();\n break;\n default:\n // GateDecision / ClaimChanged / PassCompleted / GraphPaused / BreakpointHit are\n // console-chrome concerns the HOST renders; unknown kinds are a newer server.\n break;\n }\n }\n\n /** One reload per burst of cascade frames, not one per frame. */\n private scheduleFrameReload(): void {\n if (this.frameReloadTimer) return;\n this.frameReloadTimer = setTimeout(() => {\n this.frameReloadTimer = null;\n void this.load();\n }, 250);\n }\n\n private schedulePoll(): void {\n this.pollTimer = setTimeout(() => void this.load(), Math.max(1, this.PollIntervalSeconds) * 1000);\n }\n\n private stopPolling(): void {\n if (this.pollTimer) {\n clearTimeout(this.pollTimer);\n this.pollTimer = null;\n }\n }\n\n private fail(message: string): void {\n LogError(`[TaskGraphRunView] ${message}`);\n this.ErrorMessage = message;\n this.cdr.markForCheck();\n }\n\n /** Canvas extent, so a host can size its container to the graph rather than guessing. */\n public get GraphBounds(): { Width: number; Height: number } {\n const box = GraphLayoutBounds(this.Positions);\n return { Width: box.Width, Height: box.Height };\n }\n}\n\nfunction isTypingTarget(target: EventTarget | null): boolean {\n if (!(target instanceof HTMLElement)) return false;\n const tag = target.tagName;\n return tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT' || target.isContentEditable;\n}\n","@if (ErrorMessage) {\n <mj-alert Variant=\"error\" [Message]=\"ErrorMessage\"></mj-alert>\n} @else if (IsLoading) {\n <div class=\"run-view-loading\">Loading the workflow’s steps…</div>\n} @else if (!Spec || Spec.tasks.length === 0) {\n <mj-empty-state\n Icon=\"fa-solid fa-diagram-project\"\n Title=\"No steps yet\"\n Message=\"This workflow has not created any steps.\">\n </mj-empty-state>\n} @else {\n <div class=\"run-view\" [style.height]=\"Height\">\n <div class=\"run-view-summary\">\n <span class=\"run-view-count\">{{ CompletedCount }} of {{ TotalCount }} complete</span>\n @if (SkippedCount > 0) {\n <span class=\"run-view-skipped\">{{ SkippedCount }} not taken</span>\n }\n @if (IsSettled) {\n <span class=\"run-view-done\">Finished</span>\n } @else if (GraphPaused) {\n <span class=\"run-view-waiting\">\n @if (PausedAtTaskID) { Waiting on {{ WaitingStepName }} }\n @else { Waiting to start — Continue or Step }\n </span>\n } @else if (RunningCount > 0) {\n <span class=\"run-view-running\">{{ RunningCount }} running</span>\n }\n @if (AllowBreakpointEditing && SelectedTaskID) {\n <button\n type=\"button\"\n class=\"run-view-bp\"\n [class.run-view-bp-on]=\"HasSelectedBreakpoint\"\n (click)=\"OnToggleSelectedBreakpoint()\"\n [attr.aria-pressed]=\"HasSelectedBreakpoint\"\n [attr.aria-label]=\"HasSelectedBreakpoint ? 'Remove breakpoint from ' + SelectedTaskName : 'Add breakpoint on ' + SelectedTaskName\"\n [title]=\"HasSelectedBreakpoint ? 'Remove breakpoint' : 'Break before this step'\">\n <i class=\"fa-circle\" [class.fa-solid]=\"HasSelectedBreakpoint\" [class.fa-regular]=\"!HasSelectedBreakpoint\" aria-hidden=\"true\"></i>\n </button>\n <span class=\"run-view-bp-name\">{{ SelectedTaskName }}</span>\n }\n </div>\n\n <div class=\"run-view-body\">\n @if (ShowVariables && !Prefs.InvocationOpen) {\n <button type=\"button\" class=\"run-view-vars-rail\"\n (click)=\"OnToggleInvocation()\"\n title=\"Show invocation and output\"\n aria-label=\"Show invocation and output\">\n <i class=\"fa-solid fa-code\" aria-hidden=\"true\"></i>\n <span>Data</span>\n </button>\n }\n <as-split class=\"run-view-split\" direction=\"horizontal\" unit=\"percent\"\n [gutterSize]=\"8\" (dragEnd)=\"OnInvocationSplitDragEnd($event.sizes)\">\n <as-split-area [size]=\"InvocationPaneSize\" [minSize]=\"14\" [visible]=\"InvocationPaneOpen\">\n <div class=\"run-view-vars\">\n <div class=\"run-view-vars-bar\">\n <span>Data</span>\n <button type=\"button\" class=\"run-view-vars-min\"\n (click)=\"OnToggleInvocation()\"\n title=\"Minimize\"\n aria-label=\"Minimize invocation and output\">\n <i class=\"fa-solid fa-chevron-left\" aria-hidden=\"true\"></i>\n </button>\n </div>\n <mj-task-graph-variables\n [InputPayload]=\"SelectedTask?.InputPayload\"\n [OutputPayload]=\"SelectedTask?.OutputPayload\"\n [Invocation]=\"Invocation\">\n </mj-task-graph-variables>\n </div>\n </as-split-area>\n <as-split-area [size]=\"CanvasPaneSize\" [minSize]=\"40\">\n <div class=\"run-view-canvas\">\n <mj-task-graph-editor\n [Spec]=\"Spec\"\n [RuntimeStatus]=\"RuntimeStatus\"\n [NodePositions]=\"Positions\"\n [DebugOverlay]=\"Overlay\"\n [ReadOnly]=\"true\"\n [ShowToolbar]=\"ShowToolbar\"\n [ToolbarVisibility]=\"ToolbarVisibility\"\n [ToolbarAlign]=\"ToolbarAlign\"\n [ShowPalette]=\"false\"\n [ShowProperties]=\"false\"\n [ShowMinimap]=\"false\"\n [ShowStatusBar]=\"false\"\n [ShowLegend]=\"ShowLegend\"\n (SelectionChanged)=\"OnSelectionChanged($event)\"\n (ConnectionSelected)=\"OnConnectionSelected($event)\"\n (LegendToggled)=\"LegendToggled.emit($event)\"\n (BeforeContextMenu)=\"OnBeforeContextMenu($event)\"\n (AfterContextMenuAction)=\"OnAfterContextMenuAction($event)\">\n </mj-task-graph-editor>\n </div>\n </as-split-area>\n </as-split>\n </div>\n </div>\n}\n"]}
|
|
1
|
+
{"version":3,"file":"task-graph-run-view.component.js","sourceRoot":"","sources":["../../src/lib/task-graph-run-view.component.ts","../../src/lib/task-graph-run-view.component.html"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EACH,uBAAuB,EAEvB,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,KAAK,EAEL,MAAM,GACT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAwC,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACrG,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAA0B,MAAM,wBAAwB,CAAC;AACxF,OAAO,EACH,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,GAIxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;;;;;;;ICzCxG,8BAA8D;;;IAApC,6CAAwB;;;IAElD,8BAA8B;IAAA,uDAA0C;IAAA,iBAAM;;;IAE9E,oCAIiB;;;IAMX,+BAA+B;IAAA,YAA4B;IAAA,iBAAO;;;IAAnC,cAA4B;IAA5B,4DAA4B;;;IAG3D,+BAA4B;IAAA,wBAAQ;IAAA,iBAAO;;;IAGlB,YAAiC;;;IAAjC,kEAAiC;;;IAChD,0DAAoC;;;IAF9C,+BAA+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G,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC;IACpD,CAAC;mHAzoBQ,yBAAyB;6DAAzB,yBAAyB;YAAzB,wGAAA,yBAAqB,0BAAI;;YCjGpC,AANA,AAFA,AAFF,gGAAoB,qEAEI,gFAEuB,uEAMtC;;YAVT,6GAiHC;;;iFDNY,yBAAyB;cAPrC,SAAS;6BACM,KAAK,YACP,wBAAwB,mBAGjB,uBAAuB,CAAC,MAAM;;kBAS9C,KAAK;;kBAcL,KAAK;;kBAQL,KAAK;;kBAGL,KAAK;;kBAGL,KAAK;;kBAUL,KAAK;;kBAQL,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAYL,KAAK;;kBAYL,KAAK;;kBAcL,KAAK;;kBASL,KAAK;;kBAaL,KAAK;;kBASL,KAAK;;kBAYL,KAAK;;kBAEL,KAAK;;kBAEL,KAAK;;kBAEL,KAAK;;kBAEL,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAEN,MAAM;;kBAoPN,YAAY;mBAAC,kBAAkB,EAAE,CAAC,QAAQ,CAAC;;kFA9YnC,yBAAyB;AA4oBtC,SAAS,cAAc,CAAC,MAA0B;IAC9C,IAAI,CAAC,CAAC,MAAM,YAAY,WAAW,CAAC;QAAE,OAAO,KAAK,CAAC;IACnD,MAAM,GAAG,GAAG,MAAM,CAAC,OAAO,CAAC;IAC3B,OAAO,GAAG,KAAK,OAAO,IAAI,GAAG,KAAK,UAAU,IAAI,GAAG,KAAK,QAAQ,IAAI,MAAM,CAAC,iBAAiB,CAAC;AACjG,CAAC","sourcesContent":["/**\n * @fileoverview Watching a graph that is running, on the canvas its author drew on.\n *\n * **Why this is a component and not three.** A run needs rendering in at least three places — inside\n * an Agent Run, inside the test harness, and on a standalone workflow-runs screen — and every one of\n * them wants the identical thing: the graph, with live status, laid out legibly, with a node you can\n * click. Three implementations would be three chances to render the same run differently, and the\n * one that matters most (is that branch grey because it was *not taken*, or because it *broke*?) is\n * exactly the distinction a second implementation gets wrong.\n *\n * **What it owns and what it doesn't.** It owns data acquisition — reading `MJ: Tasks` and\n * `MJ: Task Dependencies` through the host's provider — and geometry. It does not navigate: a\n * widgets-layer component cannot know whether it sits inside Explorer, so selecting a node emits an\n * event and the host decides what \"open the agent run\" means. That boundary is the whole reason\n * this can live beside the editor rather than in Explorer.\n *\n * @module @memberjunction/ng-task-graph-editor\n */\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n HostListener,\n Input,\n OnDestroy,\n Output,\n} from '@angular/core';\nimport { BaseAngularComponent } from '@memberjunction/ng-base-types';\nimport { LogError, RunView } from '@memberjunction/core';\nimport { UUIDsEqual } from '@memberjunction/global';\nimport { MJTaskEntity, MJTaskDependencyEntity, UserInfoEngine } from '@memberjunction/core-entities';\nimport { ToPaneSizePair } from './pane-split';\nimport { TaskGraphRunPrefsStore, type TaskGraphRunPrefs } from './task-graph-run-prefs';\nimport {\n GraphLayoutBounds,\n LayoutGraphNodes,\n ProjectTaskRowsToSpec,\n type GraphLayoutEdge,\n type GraphNodePosition,\n type TaskGraphSpec,\n} from '@memberjunction/ai-core-plus';\nimport { BuildRuntimeStatus, IsRuntimeSettled, NormalizeRuntimeState } from './task-graph-runtime-source';\nimport type { TaskGraphDebugOverlay, TaskGraphRuntimeStatus } from './task-graph-canvas-adapter';\nimport type { TaskGraphSelectionChangedEventArgs } from './task-graph-editor-events';\nimport type {\n FlowAfterContextMenuActionEventArgs,\n FlowBeforeContextMenuEventArgs,\n FlowConnection,\n FlowToolbarAlign,\n FlowToolbarVisibility,\n} from '@memberjunction/ng-flow-editor';\n\n/** What the host learns when someone clicks a step. */\nexport type TaskGraphRunNodeSelectedEvent = {\n /** The `MJ: Tasks` row id. */\n TaskID: string;\n Task: MJTaskEntity | null;\n};\n\n/** What the host learns when someone clicks a path. */\nexport type TaskGraphRunConnectionSelectedEvent = {\n /** The `MJ: Task Dependencies` row id, when the projection carried one. */\n EdgeID: string | null;\n FromTaskID: string;\n ToTaskID: string;\n Condition?: string;\n};\n\n/**\n * One live dispatcher frame, as the HOST hands it in.\n *\n * Structural on purpose: the widget must not import the transport (`GraphQLDataProvider`'s\n * `TaskGraphFrameEvent` satisfies this shape as-is), and the host owns the subscription — this\n * component only renders what it is handed, which is the widgets-layer rule that keeps it embeddable\n * anywhere. Fields beyond these are ignored, so a newer server cannot break an older widget.\n */\nexport type TaskGraphRunFrame = {\n kind: string;\n taskId?: string;\n taskName?: string;\n status?: string;\n progressMessage?: string;\n progressPercent?: number;\n reason?: string;\n edgeId?: string;\n dependsOnTaskId?: string;\n conditionText?: string;\n claimEvent?: string;\n claimedBy?: string;\n verdict?: string;\n passNumber?: number;\n eligibleCount?: number;\n heldCount?: number;\n claimedCount?: number;\n};\n\n/** Statuses at which a graph has stopped moving, so polling can stop with it. */\nconst SETTLED = new Set<MJTaskEntity['Status']>(['Complete', 'Failed', 'Cancelled', 'Skipped']);\n\n@Component({\n standalone: false,\n selector: 'mj-task-graph-run-view',\n templateUrl: './task-graph-run-view.component.html',\n styleUrls: ['./task-graph-run-view.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TaskGraphRunViewComponent extends BaseAngularComponent implements OnDestroy {\n /**\n * The graph to watch — the parent `MJ: Tasks` row that represents it.\n *\n * Setter-based rather than `ngOnChanges`, matching the editor beside it: the reaction is\n * explicit and costs nothing on unrelated change-detection passes.\n */\n @Input()\n public set ParentTaskID(value: string | null) {\n if (value === this.parentTaskID) return;\n this.parentTaskID = value;\n this.settledEmitted = false;\n this.SelectedTaskID = null;\n this.LiveActivity.clear();\n void this.load();\n }\n public get ParentTaskID(): string | null {\n return this.parentTaskID;\n }\n\n /** Name shown on the compiled graph. Purely cosmetic; the rows carry the truth. */\n @Input() public WorkflowName: string = 'Workflow';\n\n /**\n * Keep re-reading while the graph is still moving.\n *\n * Off by default: most hosts show a finished run, and a component that polls by default would\n * have every historical run quietly issuing queries forever.\n */\n @Input() public LiveUpdates: boolean = false;\n\n /** How often to re-read while live. Seconds, not milliseconds — this is a human-scale view. */\n @Input() public PollIntervalSeconds: number = 3;\n\n /** Height of the canvas. Hosts embed this in very different amounts of space. */\n @Input() public Height: string = '320px';\n\n /**\n * Whether the canvas legend shows. **Off by default here**, unlike the editor.\n *\n * The legend explains the authoring vocabulary — what a conditional edge means, what a duplicate\n * default looks like. That is what someone drawing a graph needs. A run view answers a different\n * question, \"what happened\", which the legend helps with not at all while covering a corner of\n * the canvas the graph is usually occupying.\n */\n @Input() public ShowLegend: boolean = false;\n\n /**\n * Whether the canvas toolbar rides above the graph.\n *\n * Debug and other run hosts leave this on and set `ToolbarVisibility` to `minimized` so the\n * graph is the picture, not a floating tool strip. The chip in the corner restores the bar.\n */\n @Input() public ShowToolbar: boolean = true;\n @Input() public ToolbarVisibility: FlowToolbarVisibility = 'minimized';\n @Input() public ToolbarAlign: FlowToolbarAlign = 'left';\n\n /**\n * The latest live dispatcher frame, handed in by the host.\n *\n * The host owns the subscription (`GraphQLDataProvider.TaskGraphFrames` or anything shaped like\n * it) and binds each arrival here; the widget folds it into the overlay. Frames are advisory —\n * a task frame patches the node's status in place for sub-second feedback, and the frames that\n * imply CASCADES (a skip, a block, settlement) trigger a debounced row reload, because the\n * dispatcher's propagation writes rows this component cannot infer from one frame. Rows remain\n * the truth; the existing poll (if enabled) remains the safety net.\n */\n @Input()\n public set LiveFrame(frame: TaskGraphRunFrame | null) {\n if (!frame) return;\n this.foldFrame(frame);\n }\n\n /**\n * Replay: render the run as it stood at this moment, reconstructed from each step's\n * `StartedAt`/`CompletedAt`. Null (the default) renders the present. A step that had not\n * started reads Pending; one mid-flight reads In Progress; one already finished reads its\n * final status — the same three answers the rows would have given a viewer at that time.\n */\n @Input()\n public set ReplayAt(value: Date | null) {\n if (value?.getTime() === this.replayAt?.getTime()) return;\n this.replayAt = value;\n this.applyReplay();\n }\n public get ReplayAt(): Date | null {\n return this.replayAt;\n }\n\n /**\n * Armed breakpoint task IDs, from the parent row's `$.debug.breakpoints`. Empty by default so\n * embeds (agent-run timeline, test harness) never grow debugger chrome they did not ask for.\n */\n @Input()\n public set Breakpoints(value: readonly string[]) {\n this.breakpoints = value ?? [];\n this.rebuildOverlay();\n }\n public get Breakpoints(): readonly string[] {\n return this.breakpoints;\n }\n /** The step a breakpoint actually stopped on. */\n @Input()\n public set PausedAtTaskID(value: string | null) {\n this.pausedAtTaskID = value;\n if (value) this.SelectedTaskID = value;\n this.rebuildOverlay();\n }\n public get PausedAtTaskID(): string | null {\n return this.pausedAtTaskID;\n }\n /**\n * The graph is claim-gated. Combined with `PausedAtTaskID` so start-paused (no specific\n * step yet) can still light the entry node as waiting.\n */\n @Input()\n public set GraphPaused(value: boolean) {\n this.graphPaused = value;\n this.rebuildOverlay();\n }\n public get GraphPaused(): boolean {\n return this.graphPaused;\n }\n /** Operator-forced edge verdicts, keyed by `MJ: Task Dependencies` row ID. */\n @Input()\n public set EdgeOverrides(value: Readonly<Record<string, 'true' | 'false'>>) {\n this.edgeOverrides = value ?? {};\n this.rebuildOverlay();\n }\n public get EdgeOverrides(): Readonly<Record<string, 'true' | 'false'>> {\n return this.edgeOverrides;\n }\n /**\n * Whether this host may arm/disarm breakpoints from the selected-step control.\n * Off by default — the run view also renders where those controls would be wrong.\n */\n @Input() public AllowBreakpointEditing: boolean = false;\n /** Compact debug key under the summary line. Off unless the host is a debugger. */\n @Input() public ShowDebugLegend: boolean = false;\n /** Step Inputs & Outputs (VARIABLES) inspector pane to the left of the canvas. Enabled by default across all task graph views. */\n @Input() public ShowVariables: boolean = true;\n /** The parent bag's `data` / `context` roots, for the Invocation scope. */\n @Input() public Invocation: { data?: unknown; context?: unknown } | null = null;\n\n @Output() public NodeSelected = new EventEmitter<TaskGraphRunNodeSelectedEvent>();\n /** The legend was toggled from the toolbar, so a host can remember the choice. */\n @Output() public LegendToggled = new EventEmitter<boolean>();\n /** Emitted once, when every step has reached a terminal status. */\n @Output() public Settled = new EventEmitter<void>();\n /** A connection was clicked. `EdgeID` is the dependency row id when the projection carried one. */\n @Output() public ConnectionSelected = new EventEmitter<TaskGraphRunConnectionSelectedEvent>();\n /** Intent only — the host owns `SetBreakpoints`. */\n @Output() public BreakpointToggled = new EventEmitter<{ TaskID: string; Enabled: boolean }>();\n /** Intent only — the host owns `OverrideEdge`. */\n @Output() public EdgeOverrideRequested = new EventEmitter<{\n EdgeID: string;\n Verdict: 'true' | 'false' | null;\n }>();\n\n /** What each running step says it is doing, from `NodeProgress` frames. Keyed by task row id. */\n public LiveActivity = new Map<string, { Message: string; Percent?: number }>();\n\n /** The last step the person selected, so the breakpoint control has a target. */\n public SelectedTaskID: string | null = null;\n /** Stable overlay object — rebuilt only when debug inputs change, so the editor does not re-project every CD cycle. */\n public Overlay: TaskGraphDebugOverlay = { showConditions: true };\n\n private breakpoints: readonly string[] = [];\n private pausedAtTaskID: string | null = null;\n private graphPaused = false;\n private edgeOverrides: Readonly<Record<string, 'true' | 'false'>> = {};\n /** `Settled` is once-per-parent — a finished poll must not re-fire the host. */\n private settledEmitted = false;\n\n /** Left data pane + split sizes. One JSON bag in `MJ: User Settings`. */\n public get Prefs(): TaskGraphRunPrefs {\n return this.prefsStore.Value;\n }\n private prefsStore = new TaskGraphRunPrefsStore({\n Get: () => undefined,\n Set: () => { /* unit tests / pre-bootstrap */ },\n });\n\n public Spec: TaskGraphSpec | null = null;\n public RuntimeStatus: TaskGraphRuntimeStatus | null = null;\n public Positions: Map<string, GraphNodePosition> = new Map();\n public IsLoading = false;\n public ErrorMessage: string | null = null;\n\n /** Rows by id, so a selection event can hand the host the whole task rather than an id. */\n private taskByID = new Map<string, MJTaskEntity>();\n private parentTaskID: string | null = null;\n private replayAt: Date | null = null;\n private pollTimer: ReturnType<typeof setTimeout> | null = null;\n private frameReloadTimer: ReturnType<typeof setTimeout> | null = null;\n private destroyed = false;\n\n constructor(private cdr: ChangeDetectorRef) {\n super();\n try {\n this.prefsStore = new TaskGraphRunPrefsStore({\n Get: (key) => UserInfoEngine.Instance.GetSetting(key),\n Set: (key, value) => UserInfoEngine.Instance.SetSettingDebounced(key, value),\n });\n this.prefsStore.Restore();\n } catch {\n // Engine not configured yet (unit tests, pre-bootstrap) — keep the default.\n }\n }\n\n public get InvocationPaneOpen(): boolean {\n return this.ShowVariables && this.Prefs.InvocationOpen;\n }\n\n public get InvocationPaneSize(): number {\n return this.InvocationPaneOpen ? this.Prefs.InvocationSplit[0] : 0;\n }\n\n public get CanvasPaneSize(): number {\n return this.InvocationPaneOpen ? this.Prefs.InvocationSplit[1] : 100;\n }\n\n public OnToggleInvocation(): void {\n this.prefsStore.SetInvocationOpen(!this.Prefs.InvocationOpen);\n this.cdr.markForCheck();\n }\n\n public OnInvocationSplitDragEnd(sizes: readonly (number | '*')[]): void {\n const pair = ToPaneSizePair(sizes);\n if (!pair) return;\n this.prefsStore.SetInvocationSplit(pair);\n this.cdr.markForCheck();\n }\n\n public ngOnDestroy(): void {\n this.destroyed = true;\n this.stopPolling();\n if (this.frameReloadTimer) {\n clearTimeout(this.frameReloadTimer);\n this.frameReloadTimer = null;\n }\n }\n\n /** Steps in a terminal state, for the host's summary line. Uses the same map the canvas paints. */\n public get CompletedCount(): number {\n return this.countRuntime('Complete');\n }\n\n public get TotalCount(): number {\n return this.Spec?.tasks.length ?? this.taskByID.size;\n }\n\n public get SkippedCount(): number {\n return this.countRuntime('Skipped');\n }\n\n public get RunningCount(): number {\n return this.countRuntime('In Progress');\n }\n\n public get IsSettled(): boolean {\n if (!this.Spec || this.Spec.tasks.length === 0) return false;\n return IsRuntimeSettled(this.RuntimeStatus ?? {}, this.Spec.tasks.map((t) => t.tempId));\n }\n\n /**\n * A node was selected on the canvas.\n *\n * The projected `tempId` IS the task id, so the row lookup is exact — and handing the host the\n * whole task rather than an id spares every host from re-reading a row this component already\n * holds.\n */\n public OnSelectionChanged(args: TaskGraphSelectionChangedEventArgs): void {\n const tempId = args?.Task?.tempId;\n if (!tempId) return;\n this.SelectedTaskID = tempId;\n if (this.ShowVariables && !this.Prefs.InvocationOpen) {\n this.prefsStore.SetInvocationOpen(true);\n }\n this.NodeSelected.emit({ TaskID: tempId, Task: this.taskByID.get(tempId) ?? null });\n this.cdr.markForCheck();\n }\n\n public OnConnectionSelected(connection: FlowConnection | null): void {\n if (!connection) {\n this.ConnectionSelected.emit({ EdgeID: null, FromTaskID: '', ToTaskID: '' });\n return;\n }\n const data = connection.Data ?? {};\n const edgeID = typeof data['EdgeID'] === 'string' ? data['EdgeID'] : null;\n const from = typeof data['FromTempId'] === 'string' ? data['FromTempId'] : connection.SourceNodeID;\n const to = typeof data['ToTempId'] === 'string' ? data['ToTempId'] : connection.TargetNodeID;\n this.ConnectionSelected.emit({\n EdgeID: edgeID,\n FromTaskID: from,\n ToTaskID: to,\n Condition: connection.Condition,\n });\n }\n\n private countRuntime(state: TaskGraphRuntimeStatus[string]): number {\n if (!this.RuntimeStatus) {\n return [...this.taskByID.values()].filter((t) => NormalizeRuntimeState(t.Status) === state).length;\n }\n return Object.values(this.RuntimeStatus).filter((s) => s === state).length;\n }\n\n public get HasSelectedBreakpoint(): boolean {\n return !!this.SelectedTaskID && this.hasBreakpoint(this.SelectedTaskID);\n }\n\n public get SelectedTaskName(): string {\n if (!this.SelectedTaskID) return '';\n return this.taskByID.get(this.SelectedTaskID)?.Name ?? 'this step';\n }\n\n public get WaitingStepName(): string {\n if (this.pausedAtTaskID) {\n return this.taskByID.get(this.pausedAtTaskID)?.Name\n ?? this.Spec?.tasks.find((t) => t.tempId === this.pausedAtTaskID)?.name\n ?? 'this step';\n }\n const entry = this.Spec?.tasks.find((t) => (t.dependsOn?.length ?? 0) === 0);\n return entry?.name ?? 'the first step';\n }\n\n public get SelectedTask(): MJTaskEntity | null {\n return this.SelectedTaskID ? this.taskByID.get(this.SelectedTaskID) ?? null : null;\n }\n\n /** All loaded task step entities for the current parent workflow run. */\n public get Tasks(): MJTaskEntity[] {\n return [...this.taskByID.values()];\n }\n\n public OnToggleSelectedBreakpoint(): void {\n if (!this.AllowBreakpointEditing || !this.SelectedTaskID) return;\n this.BreakpointToggled.emit({\n TaskID: this.SelectedTaskID,\n Enabled: !this.HasSelectedBreakpoint,\n });\n }\n\n /** Debug attaches here: replace Edit/Remove with breakpoint / path-override items. */\n public OnBeforeContextMenu(event: FlowBeforeContextMenuEventArgs): void {\n if (!this.AllowBreakpointEditing) {\n event.Cancel = true;\n return;\n }\n if (event.Target === 'node' && event.Node) {\n const on = this.hasBreakpoint(event.Node.ID);\n event.Items = [{\n ID: 'toggle-breakpoint',\n Label: on ? 'Remove Breakpoint' : 'Add Breakpoint',\n Icon: 'fa-circle',\n Shortcut: 'F9',\n }];\n return;\n }\n if (event.Target === 'connection' && event.Connection?.Condition?.trim()) {\n const edgeID = typeof event.Connection.Data?.['EdgeID'] === 'string'\n ? event.Connection.Data['EdgeID']\n : null;\n if (!edgeID) {\n event.Cancel = true;\n return;\n }\n event.Items = [\n { ID: 'force-true', Label: 'Take this path', Icon: 'fa-check' },\n { ID: 'force-false', Label: 'Skip this path', Icon: 'fa-xmark' },\n { ID: 'force-clear', Label: 'Clear override', Icon: 'fa-rotate-left' },\n ];\n return;\n }\n event.Cancel = true;\n }\n\n public OnAfterContextMenuAction(event: FlowAfterContextMenuActionEventArgs): void {\n if (event.ActionID === 'toggle-breakpoint' && event.Node) {\n this.BreakpointToggled.emit({\n TaskID: event.Node.ID,\n Enabled: !this.hasBreakpoint(event.Node.ID),\n });\n return;\n }\n const edgeID = typeof event.Connection?.Data?.['EdgeID'] === 'string'\n ? event.Connection.Data['EdgeID']\n : null;\n if (!edgeID) return;\n if (event.ActionID === 'force-true') this.EdgeOverrideRequested.emit({ EdgeID: edgeID, Verdict: 'true' });\n if (event.ActionID === 'force-false') this.EdgeOverrideRequested.emit({ EdgeID: edgeID, Verdict: 'false' });\n if (event.ActionID === 'force-clear') this.EdgeOverrideRequested.emit({ EdgeID: edgeID, Verdict: null });\n }\n\n private hasBreakpoint(taskID: string): boolean {\n return this.breakpoints.some((id) => UUIDsEqual(id, taskID));\n }\n\n @HostListener('document:keydown', ['$event'])\n public OnDebugHotkey(event: KeyboardEvent): void {\n if (!this.AllowBreakpointEditing) return;\n if (isTypingTarget(event.target)) return;\n if (event.key === 'F9') {\n event.preventDefault();\n this.OnToggleSelectedBreakpoint();\n }\n }\n\n private rebuildOverlay(): void {\n this.Overlay = {\n breakpoints: this.breakpoints,\n // A finished graph is not \"paused here\" — the durable bag can still name the last\n // breakpoint after every step is terminal.\n pausedAtTaskID: this.IsSettled ? null : this.pausedAtTaskID,\n paused: !this.IsSettled && this.graphPaused,\n edgeOverrides: this.edgeOverrides,\n showConditions: true,\n };\n }\n\n private emitSettledOnce(): void {\n if (this.settledEmitted || !this.IsSettled) return;\n this.settledEmitted = true;\n this.Settled.emit();\n }\n\n /**\n * Reads the graph and projects it onto the canvas.\n *\n * `BypassCache` throughout: a run view exists to show what is true *now*, and the whole point of\n * the poll is to see a status that changed a second ago. A cached read would render a stale graph\n * that looks authoritative.\n */\n private async load(): Promise<void> {\n this.stopPolling();\n if (!this.parentTaskID) {\n this.Spec = null;\n this.cdr.markForCheck();\n return;\n }\n\n this.IsLoading = this.Spec === null; // only show the spinner on first load, not on every poll\n this.ErrorMessage = null;\n\n try {\n const rv = RunView.FromMetadataProvider(this.ProviderToUse);\n const [tasks, deps] = await rv.RunViews<MJTaskEntity | MJTaskDependencyEntity>([\n {\n EntityName: 'MJ: Tasks',\n ExtraFilter: `ParentID='${this.parentTaskID}'`,\n // Started work in the order it ran, unstarted last, persist order as the\n // tiebreak — the same rule GetAgentRunTree uses, so a graph reads identically\n // wherever it is shown.\n //\n // `__mj_CreatedAt ASC` alone was persist order, which is the COMPILER's walk\n // order, not the author's numbering and not what actually happened: a settled\n // graph listed its steps in an order unrelated to their execution, and a skipped\n // step could sit above work that ran.\n OrderBy: 'CASE WHEN StartedAt IS NULL THEN 1 ELSE 0 END, StartedAt, __mj_CreatedAt',\n ResultType: 'entity_object',\n BypassCache: true,\n },\n {\n EntityName: 'MJ: Task Dependencies',\n ExtraFilter: `TaskID IN (SELECT ID FROM [__mj].[vwTasks] WHERE ParentID='${this.parentTaskID}')`,\n ResultType: 'entity_object',\n BypassCache: true,\n },\n ]);\n\n if (this.destroyed) return;\n\n if (!tasks.Success) {\n this.fail(`The workflow's steps could not be loaded: ${tasks.ErrorMessage}`);\n return;\n }\n\n const taskRows = (tasks.Results ?? []) as MJTaskEntity[];\n const depRows = (deps.Success ? (deps.Results ?? []) : []) as MJTaskDependencyEntity[];\n this.project(taskRows, depRows);\n this.rebuildOverlay();\n this.emitSettledOnce();\n\n if (this.LiveUpdates && !this.isSettled(taskRows)) this.schedulePoll();\n } catch (e) {\n this.fail(e instanceof Error ? e.message : String(e));\n } finally {\n this.IsLoading = false;\n this.cdr.markForCheck();\n }\n }\n\n /** Rows → spec + runtime + geometry. */\n private project(taskRows: MJTaskEntity[], depRows: MJTaskDependencyEntity[]): void {\n this.taskByID = new Map(taskRows.map((t) => [t.ID, t]));\n if (taskRows.length === 0) {\n this.SelectedTaskID = null;\n } else if (!this.SelectedTaskID || !this.taskByID.has(this.SelectedTaskID)) {\n const activeRow = taskRows.find((t) => t.Status === 'In Progress');\n this.SelectedTaskID = (activeRow ?? taskRows[0]).ID;\n }\n\n const projection = ProjectTaskRowsToSpec(this.WorkflowName, taskRows, depRows);\n this.Spec = projection.Spec;\n\n // Correlate by ID, not by name: a projected node's tempId IS the task id, which is the one\n // case where an id match is exact. Name correlation exists for specs whose tempIds were\n // never real, and would be needlessly lossy here.\n const knownIDs = new Set(taskRows.map((t) => t.ID));\n this.RuntimeStatus = this.replayAt\n ? this.statusAt(this.replayAt)\n : BuildRuntimeStatus(taskRows, new Map(), knownIDs);\n\n this.Positions = this.resolvePositions(projection.AuthoredPositions, taskRows, depRows);\n }\n\n /** Re-derives the overlay for the current replay position (or the present) from held rows. */\n private applyReplay(): void {\n if (this.taskByID.size === 0) return;\n const rows = [...this.taskByID.values()];\n this.RuntimeStatus = this.replayAt\n ? this.statusAt(this.replayAt)\n : BuildRuntimeStatus(rows, new Map(), new Set(rows.map((t) => t.ID)));\n this.cdr.markForCheck();\n }\n\n /** The overlay as it stood at `moment`, from each row's own timestamps. */\n private statusAt(moment: Date): TaskGraphRuntimeStatus {\n const at = moment.getTime();\n const status: TaskGraphRuntimeStatus = {};\n for (const [id, row] of this.taskByID) {\n const started = row.StartedAt?.getTime?.() ?? (row.StartedAt ? new Date(row.StartedAt).getTime() : null);\n const completed = row.CompletedAt?.getTime?.() ?? (row.CompletedAt ? new Date(row.CompletedAt).getTime() : null);\n if (started == null || started > at) status[id] = 'Pending';\n else if (completed == null || completed > at) status[id] = 'In Progress';\n else status[id] = NormalizeRuntimeState(row.Status);\n }\n return status;\n }\n\n /**\n * The author's arrangement where there is one, a computed layout everywhere else.\n *\n * Mixing the two per-node rather than choosing one for the whole graph: a workflow whose author\n * positioned some steps and left others where they fell should keep the positions they chose.\n * A wholly unpositioned graph — the normal case for anything an agent emitted — is laid out\n * entirely by the algorithm.\n */\n private resolvePositions(\n authored: Map<string, GraphNodePosition>,\n taskRows: MJTaskEntity[],\n depRows: MJTaskDependencyEntity[],\n ): Map<string, GraphNodePosition> {\n const missing = taskRows.filter((t) => !authored.has(t.ID)).map((t) => t.ID);\n if (missing.length === 0) return authored;\n\n const edges: GraphLayoutEdge[] = depRows.map((d) => ({ From: d.DependsOnTaskID, To: d.TaskID }));\n const computed = LayoutGraphNodes(taskRows.map((t) => t.ID), edges, { Direction: 'LR' });\n\n const resolved = new Map(computed);\n for (const [id, position] of authored) resolved.set(id, position);\n return resolved;\n }\n\n private isSettled(taskRows: MJTaskEntity[]): boolean {\n return taskRows.length > 0 && taskRows.every((t) => SETTLED.has(t.Status));\n }\n\n /**\n * Folds one live frame into the overlay.\n *\n * Direct status frames patch in place — a new `RuntimeStatus` object, because the canvas is\n * OnPush and mutation would render nothing. Frames whose consequences the dispatcher computes\n * across the whole graph (skips cascade, blocks propagate, settlement rolls up) reload the rows\n * instead: inferring a cascade client-side would be a second implementation of the engine's\n * rules, free to drift.\n */\n private foldFrame(frame: TaskGraphRunFrame): void {\n switch (frame.kind) {\n case 'TaskStarted':\n case 'TaskCompleted':\n case 'TaskFailed':\n if (frame.taskId && frame.status && this.RuntimeStatus) {\n const row = this.taskByID.get(frame.taskId);\n if (row) row.Status = frame.status as MJTaskEntity['Status'];\n this.RuntimeStatus = { ...this.RuntimeStatus, [frame.taskId]: NormalizeRuntimeState(frame.status) };\n if (frame.kind !== 'TaskStarted') this.LiveActivity.delete(frame.taskId);\n this.rebuildOverlay();\n this.emitSettledOnce();\n this.cdr.markForCheck();\n }\n break;\n case 'NodeProgress':\n if (frame.taskId && frame.progressMessage) {\n this.LiveActivity.set(frame.taskId, { Message: frame.progressMessage, Percent: frame.progressPercent });\n this.cdr.markForCheck();\n }\n break;\n case 'GraphSettled':\n this.scheduleFrameReload();\n // The engine said the graph is done — do not wait for the row reload to tell the host.\n if (!this.settledEmitted) {\n this.settledEmitted = true;\n this.Settled.emit();\n }\n break;\n case 'TaskSkipped':\n case 'TaskBlocked':\n case 'TaskAwaitingHuman':\n case 'GraphResumed':\n this.scheduleFrameReload();\n break;\n default:\n // GateDecision / ClaimChanged / PassCompleted / GraphPaused / BreakpointHit are\n // console-chrome concerns the HOST renders; unknown kinds are a newer server.\n break;\n }\n }\n\n /** One reload per burst of cascade frames, not one per frame. */\n private scheduleFrameReload(): void {\n if (this.frameReloadTimer) return;\n this.frameReloadTimer = setTimeout(() => {\n this.frameReloadTimer = null;\n void this.load();\n }, 250);\n }\n\n private schedulePoll(): void {\n this.pollTimer = setTimeout(() => void this.load(), Math.max(1, this.PollIntervalSeconds) * 1000);\n }\n\n private stopPolling(): void {\n if (this.pollTimer) {\n clearTimeout(this.pollTimer);\n this.pollTimer = null;\n }\n }\n\n private fail(message: string): void {\n LogError(`[TaskGraphRunView] ${message}`);\n this.ErrorMessage = message;\n this.cdr.markForCheck();\n }\n\n /** Canvas extent, so a host can size its container to the graph rather than guessing. */\n public get GraphBounds(): { Width: number; Height: number } {\n const box = GraphLayoutBounds(this.Positions);\n return { Width: box.Width, Height: box.Height };\n }\n}\n\nfunction isTypingTarget(target: EventTarget | null): boolean {\n if (!(target instanceof HTMLElement)) return false;\n const tag = target.tagName;\n return tag === 'INPUT' || tag === 'TEXTAREA' || tag === 'SELECT' || target.isContentEditable;\n}\n","@if (ErrorMessage) {\n <mj-alert Variant=\"error\" [Message]=\"ErrorMessage\"></mj-alert>\n} @else if (IsLoading) {\n <div class=\"run-view-loading\">Loading the workflow’s steps…</div>\n} @else if (!Spec || Spec.tasks.length === 0) {\n <mj-empty-state\n Icon=\"fa-solid fa-diagram-project\"\n Title=\"No steps yet\"\n Message=\"This workflow has not created any steps.\">\n </mj-empty-state>\n} @else {\n <div class=\"run-view\" [style.height]=\"Height\">\n <div class=\"run-view-summary\">\n <span class=\"run-view-count\">{{ CompletedCount }} of {{ TotalCount }} complete</span>\n @if (SkippedCount > 0) {\n <span class=\"run-view-skipped\">{{ SkippedCount }} not taken</span>\n }\n @if (IsSettled) {\n <span class=\"run-view-done\">Finished</span>\n } @else if (GraphPaused) {\n <span class=\"run-view-waiting\">\n @if (PausedAtTaskID) { Waiting on {{ WaitingStepName }} }\n @else { Waiting to start — Continue or Step }\n </span>\n } @else if (RunningCount > 0) {\n <span class=\"run-view-running\">{{ RunningCount }} running</span>\n }\n @if (AllowBreakpointEditing && SelectedTaskID) {\n <button\n type=\"button\"\n class=\"run-view-bp\"\n [class.run-view-bp-on]=\"HasSelectedBreakpoint\"\n (click)=\"OnToggleSelectedBreakpoint()\"\n [attr.aria-pressed]=\"HasSelectedBreakpoint\"\n [attr.aria-label]=\"HasSelectedBreakpoint ? 'Remove breakpoint from ' + SelectedTaskName : 'Add breakpoint on ' + SelectedTaskName\"\n [title]=\"HasSelectedBreakpoint ? 'Remove breakpoint' : 'Break before this step'\">\n <i class=\"fa-circle\" [class.fa-solid]=\"HasSelectedBreakpoint\" [class.fa-regular]=\"!HasSelectedBreakpoint\" aria-hidden=\"true\"></i>\n </button>\n <span class=\"run-view-bp-name\">{{ SelectedTaskName }}</span>\n }\n </div>\n\n <div class=\"run-view-body\">\n @if (ShowVariables && !Prefs.InvocationOpen) {\n <button type=\"button\" class=\"run-view-vars-rail\"\n (click)=\"OnToggleInvocation()\"\n title=\"Show step inputs and outputs\"\n aria-label=\"Show step inputs and outputs\">\n <i class=\"fa-solid fa-code\" aria-hidden=\"true\"></i>\n <span>Data</span>\n </button>\n }\n <as-split class=\"run-view-split\" direction=\"horizontal\" unit=\"percent\"\n [gutterSize]=\"8\" (dragEnd)=\"OnInvocationSplitDragEnd($event.sizes)\">\n <as-split-area [size]=\"InvocationPaneSize\" [minSize]=\"18\" [visible]=\"InvocationPaneOpen\">\n <div class=\"run-view-vars\">\n <div class=\"run-view-vars-bar\">\n <div class=\"run-view-vars-title\">\n @if (SelectedTask; as step) {\n <span class=\"run-view-vars-step-name\" [title]=\"step.Name\">{{ step.Name }}</span>\n <span class=\"run-view-vars-status\" [attr.data-status]=\"step.Status\">{{ step.Status }}</span>\n } @else {\n <span>Step Inputs & Outputs</span>\n }\n </div>\n <button type=\"button\" class=\"run-view-vars-min\"\n (click)=\"OnToggleInvocation()\"\n title=\"Minimize\"\n aria-label=\"Minimize invocation and output\">\n <i class=\"fa-solid fa-chevron-left\" aria-hidden=\"true\"></i>\n </button>\n </div>\n @if (SelectedTask?.ErrorMessage; as errMsg) {\n <div class=\"run-view-vars-error\" role=\"status\">\n <i class=\"fa-solid fa-triangle-exclamation\" aria-hidden=\"true\"></i>\n <span>{{ errMsg }}</span>\n </div>\n }\n <mj-task-graph-variables\n [TaskID]=\"SelectedTask?.ID\"\n [InputPayload]=\"SelectedTask?.InputPayload\"\n [OutputPayload]=\"SelectedTask?.OutputPayload\"\n [Invocation]=\"Invocation\">\n </mj-task-graph-variables>\n </div>\n </as-split-area>\n <as-split-area [size]=\"CanvasPaneSize\" [minSize]=\"40\">\n <div class=\"run-view-canvas\">\n <mj-task-graph-editor\n [Spec]=\"Spec\"\n [RuntimeStatus]=\"RuntimeStatus\"\n [NodePositions]=\"Positions\"\n [DebugOverlay]=\"Overlay\"\n [ReadOnly]=\"true\"\n [ShowToolbar]=\"ShowToolbar\"\n [ToolbarVisibility]=\"ToolbarVisibility\"\n [ToolbarAlign]=\"ToolbarAlign\"\n [ShowPalette]=\"false\"\n [ShowProperties]=\"false\"\n [ShowMinimap]=\"false\"\n [ShowStatusBar]=\"false\"\n [ShowLegend]=\"ShowLegend\"\n (SelectionChanged)=\"OnSelectionChanged($event)\"\n (ConnectionSelected)=\"OnConnectionSelected($event)\"\n (LegendToggled)=\"LegendToggled.emit($event)\"\n (BeforeContextMenu)=\"OnBeforeContextMenu($event)\"\n (AfterContextMenuAction)=\"OnAfterContextMenuAction($event)\">\n </mj-task-graph-editor>\n </div>\n </as-split-area>\n </as-split>\n </div>\n </div>\n}\n"]}
|
|
@@ -1,23 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* VS Code VARIABLES pane for a selected workflow step.
|
|
3
|
+
*
|
|
4
|
+
* Paint only. Expanding a row is local UI state. The host owns which step is selected.
|
|
5
|
+
* Preserves expanded variable tree nodes across live poll refreshes of the same step while
|
|
6
|
+
* resetting to top-level scopes when the operator switches to a different step.
|
|
7
|
+
*/
|
|
8
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
1
9
|
import { type DebugVariable, type DebugVariableScope } from './debug-variables';
|
|
2
10
|
import * as i0 from "@angular/core";
|
|
3
|
-
|
|
11
|
+
/** Minimal shape for a task step passed directly into {@link TaskGraphVariablesComponent}. */
|
|
12
|
+
export interface TaskGraphVariableTaskInput {
|
|
13
|
+
ID?: string | null;
|
|
14
|
+
Status?: string | null;
|
|
15
|
+
InputPayload?: string | null;
|
|
16
|
+
OutputPayload?: string | null;
|
|
17
|
+
}
|
|
18
|
+
export declare class TaskGraphVariablesComponent implements OnChanges {
|
|
19
|
+
/**
|
|
20
|
+
* Optional task step entity/snapshot. Supplies `ID`, `Status`, `InputPayload`, and
|
|
21
|
+
* `OutputPayload` when those granular inputs are not bound separately.
|
|
22
|
+
*/
|
|
23
|
+
set Task(value: TaskGraphVariableTaskInput | null | undefined);
|
|
24
|
+
get Task(): TaskGraphVariableTaskInput | null | undefined;
|
|
25
|
+
/** Identifier of the currently selected task step, used to preserve expansion across live polls. */
|
|
26
|
+
set TaskID(value: string | null | undefined);
|
|
27
|
+
get TaskID(): string | null | undefined;
|
|
4
28
|
set InputPayload(value: string | null | undefined);
|
|
29
|
+
get InputPayload(): string | null | undefined;
|
|
5
30
|
set OutputPayload(value: string | null | undefined);
|
|
31
|
+
get OutputPayload(): string | null | undefined;
|
|
6
32
|
set Invocation(value: {
|
|
7
33
|
data?: unknown;
|
|
8
34
|
context?: unknown;
|
|
9
35
|
} | null);
|
|
36
|
+
get Invocation(): {
|
|
37
|
+
data?: unknown;
|
|
38
|
+
context?: unknown;
|
|
39
|
+
} | null;
|
|
10
40
|
Scopes: DebugVariableScope[];
|
|
11
41
|
Expanded: Set<string>;
|
|
42
|
+
private task;
|
|
43
|
+
private taskID;
|
|
12
44
|
private inputRaw;
|
|
13
45
|
private outputRaw;
|
|
14
46
|
private invocation;
|
|
47
|
+
private _lastTaskID;
|
|
48
|
+
private _lastTaskStatus;
|
|
49
|
+
private _lastInputPayload;
|
|
50
|
+
private _lastOutputPayload;
|
|
51
|
+
private _lastInvocation;
|
|
52
|
+
private _knownScopeNames;
|
|
53
|
+
ngOnChanges(_changes?: SimpleChanges): void;
|
|
15
54
|
Toggle(path: string): void;
|
|
16
55
|
IsExpanded(path: string): boolean;
|
|
17
56
|
Path(scope: string, name: string, parent?: string): string;
|
|
18
57
|
HasChildren(variable: DebugVariable): boolean;
|
|
19
58
|
private rebuild;
|
|
20
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<TaskGraphVariablesComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TaskGraphVariablesComponent, "mj-task-graph-variables", never, { "InputPayload": { "alias": "InputPayload"; "required": false; }; "OutputPayload": { "alias": "OutputPayload"; "required": false; }; "Invocation": { "alias": "Invocation"; "required": false; }; }, {}, never, never, true, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TaskGraphVariablesComponent, "mj-task-graph-variables", never, { "Task": { "alias": "Task"; "required": false; }; "TaskID": { "alias": "TaskID"; "required": false; }; "InputPayload": { "alias": "InputPayload"; "required": false; }; "OutputPayload": { "alias": "OutputPayload"; "required": false; }; "Invocation": { "alias": "Invocation"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
61
|
}
|
|
23
62
|
//# sourceMappingURL=task-graph-variables.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-graph-variables.component.d.ts","sourceRoot":"","sources":["../../src/lib/task-graph-variables.component.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"task-graph-variables.component.d.ts","sourceRoot":"","sources":["../../src/lib/task-graph-variables.component.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAA6C,SAAS,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAEpG,OAAO,EAGH,KAAK,aAAa,EAClB,KAAK,kBAAkB,EAC1B,MAAM,mBAAmB,CAAC;;AAE3B,8FAA8F;AAC9F,MAAM,WAAW,0BAA0B;IACvC,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACjC;AAED,qBAQa,2BAA4B,YAAW,SAAS;IACzD;;;OAGG;IACH,IACW,IAAI,CAAC,KAAK,EAAE,0BAA0B,GAAG,IAAI,GAAG,SAAS,EAGnE;IACD,IAAW,IAAI,IAAI,0BAA0B,GAAG,I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AAE,MAAM,GAAG,OAAO;IAIjC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM;IAI1D,WAAW,CAAC,QAAQ,EAAE,aAAa,GAAG,OAAO;IAIpD,OAAO,CAAC,OAAO;yCAzFN,2BAA2B;2CAA3B,2BAA2B;CAoJvC"}
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
* VS Code VARIABLES pane for a selected workflow step.
|
|
3
3
|
*
|
|
4
4
|
* Paint only. Expanding a row is local UI state. The host owns which step is selected.
|
|
5
|
+
* Preserves expanded variable tree nodes across live poll refreshes of the same step while
|
|
6
|
+
* resetting to top-level scopes when the operator switches to a different step.
|
|
5
7
|
*/
|
|
6
8
|
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
7
9
|
import { NgTemplateOutlet } from '@angular/common';
|
|
@@ -123,23 +125,62 @@ function TaskGraphVariablesComponent_ng_template_4_Template(rf, ctx) { if (rf &
|
|
|
123
125
|
i0.ɵɵconditional(ctx_r2.HasChildren(variable_r11) && ctx_r2.IsExpanded(path_r7) ? 8 : -1);
|
|
124
126
|
} }
|
|
125
127
|
export class TaskGraphVariablesComponent {
|
|
128
|
+
/**
|
|
129
|
+
* Optional task step entity/snapshot. Supplies `ID`, `Status`, `InputPayload`, and
|
|
130
|
+
* `OutputPayload` when those granular inputs are not bound separately.
|
|
131
|
+
*/
|
|
132
|
+
set Task(value) {
|
|
133
|
+
this.task = value ?? null;
|
|
134
|
+
this.rebuild();
|
|
135
|
+
}
|
|
136
|
+
get Task() {
|
|
137
|
+
return this.task;
|
|
138
|
+
}
|
|
139
|
+
/** Identifier of the currently selected task step, used to preserve expansion across live polls. */
|
|
140
|
+
set TaskID(value) {
|
|
141
|
+
this.taskID = value ?? null;
|
|
142
|
+
this.rebuild();
|
|
143
|
+
}
|
|
144
|
+
get TaskID() {
|
|
145
|
+
return this.taskID;
|
|
146
|
+
}
|
|
126
147
|
set InputPayload(value) {
|
|
127
148
|
this.inputRaw = value;
|
|
128
149
|
this.rebuild();
|
|
129
150
|
}
|
|
151
|
+
get InputPayload() {
|
|
152
|
+
return this.inputRaw;
|
|
153
|
+
}
|
|
130
154
|
set OutputPayload(value) {
|
|
131
155
|
this.outputRaw = value;
|
|
132
156
|
this.rebuild();
|
|
133
157
|
}
|
|
158
|
+
get OutputPayload() {
|
|
159
|
+
return this.outputRaw;
|
|
160
|
+
}
|
|
134
161
|
set Invocation(value) {
|
|
135
162
|
this.invocation = value;
|
|
136
163
|
this.rebuild();
|
|
137
164
|
}
|
|
165
|
+
get Invocation() {
|
|
166
|
+
return this.invocation;
|
|
167
|
+
}
|
|
138
168
|
Scopes = [];
|
|
139
169
|
Expanded = new Set();
|
|
140
|
-
|
|
141
|
-
|
|
170
|
+
task = null;
|
|
171
|
+
taskID = null;
|
|
172
|
+
inputRaw = undefined;
|
|
173
|
+
outputRaw = undefined;
|
|
142
174
|
invocation = null;
|
|
175
|
+
_lastTaskID = undefined;
|
|
176
|
+
_lastTaskStatus = undefined;
|
|
177
|
+
_lastInputPayload = undefined;
|
|
178
|
+
_lastOutputPayload = undefined;
|
|
179
|
+
_lastInvocation = undefined;
|
|
180
|
+
_knownScopeNames = new Set();
|
|
181
|
+
ngOnChanges(_changes) {
|
|
182
|
+
this.rebuild();
|
|
183
|
+
}
|
|
143
184
|
Toggle(path) {
|
|
144
185
|
if (this.Expanded.has(path))
|
|
145
186
|
this.Expanded.delete(path);
|
|
@@ -157,15 +198,55 @@ export class TaskGraphVariablesComponent {
|
|
|
157
198
|
return variable.Children.length > 0;
|
|
158
199
|
}
|
|
159
200
|
rebuild() {
|
|
201
|
+
const effectiveTaskID = this.taskID ?? this.task?.ID ?? null;
|
|
202
|
+
const effectiveTaskStatus = this.task?.Status ?? null;
|
|
203
|
+
const effectiveInput = this.inputRaw !== undefined ? this.inputRaw : this.task?.InputPayload;
|
|
204
|
+
const effectiveOutput = this.outputRaw !== undefined ? this.outputRaw : this.task?.OutputPayload;
|
|
205
|
+
const isFirstBuild = this._lastTaskID === undefined &&
|
|
206
|
+
this._lastInputPayload === undefined &&
|
|
207
|
+
this._lastOutputPayload === undefined &&
|
|
208
|
+
this._lastInvocation === undefined;
|
|
209
|
+
const taskSwitched = !isFirstBuild &&
|
|
210
|
+
this._lastTaskID !== null &&
|
|
211
|
+
effectiveTaskID !== this._lastTaskID;
|
|
212
|
+
const payloadsChanged = effectiveInput !== this._lastInputPayload ||
|
|
213
|
+
effectiveOutput !== this._lastOutputPayload ||
|
|
214
|
+
this.invocation !== this._lastInvocation;
|
|
215
|
+
this._lastTaskID = effectiveTaskID;
|
|
216
|
+
this._lastTaskStatus = effectiveTaskStatus;
|
|
217
|
+
if (!isFirstBuild && !taskSwitched && !payloadsChanged) {
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
this._lastInputPayload = effectiveInput;
|
|
221
|
+
this._lastOutputPayload = effectiveOutput;
|
|
222
|
+
this._lastInvocation = this.invocation;
|
|
160
223
|
this.Scopes = BuildVariableScopes({
|
|
161
|
-
input: DecodePayload(
|
|
162
|
-
output: DecodePayload(
|
|
224
|
+
input: DecodePayload(effectiveInput),
|
|
225
|
+
output: DecodePayload(effectiveOutput),
|
|
163
226
|
invocation: this.invocation,
|
|
164
227
|
});
|
|
165
|
-
|
|
228
|
+
if (this.Scopes.length === 0) {
|
|
229
|
+
this._knownScopeNames.clear();
|
|
230
|
+
this.Expanded = new Set();
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
if (taskSwitched || this._knownScopeNames.size === 0) {
|
|
234
|
+
const topScopeNames = this.Scopes.map((s) => s.Name);
|
|
235
|
+
this._knownScopeNames = new Set(topScopeNames);
|
|
236
|
+
this.Expanded = new Set(topScopeNames);
|
|
237
|
+
return;
|
|
238
|
+
}
|
|
239
|
+
const nextExpanded = new Set(this.Expanded);
|
|
240
|
+
for (const scope of this.Scopes) {
|
|
241
|
+
if (!this._knownScopeNames.has(scope.Name)) {
|
|
242
|
+
this._knownScopeNames.add(scope.Name);
|
|
243
|
+
nextExpanded.add(scope.Name);
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
this.Expanded = nextExpanded;
|
|
166
247
|
}
|
|
167
248
|
static ɵfac = function TaskGraphVariablesComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TaskGraphVariablesComponent)(); };
|
|
168
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TaskGraphVariablesComponent, selectors: [["mj-task-graph-variables"]], inputs: { InputPayload: "InputPayload", OutputPayload: "OutputPayload", Invocation: "Invocation" }, decls: 6, vars: 1, consts: [["row", ""], ["role", "tree", "aria-label", "Variables", 1, "vars"], [1, "vars-empty"], [1, "vars-scope"], ["type", "button", 1, "vars-scope-head", 3, "click"], ["aria-hidden", "true", 1, "fa-solid"], [1, "vars-list"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], ["role", "treeitem", 1, "vars-row"], ["type", "button", 1, "vars-name", 3, "click", "disabled"], ["aria-hidden", "true", 1, "fa-solid", 3, "fa-chevron-down", "fa-chevron-right"], ["aria-hidden", "true", 1, "vars-leaf"], [1, "vars-preview"]], template: function TaskGraphVariablesComponent_Template(rf, ctx) { if (rf & 1) {
|
|
249
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TaskGraphVariablesComponent, selectors: [["mj-task-graph-variables"]], inputs: { Task: "Task", TaskID: "TaskID", InputPayload: "InputPayload", OutputPayload: "OutputPayload", Invocation: "Invocation" }, features: [i0.ɵɵNgOnChangesFeature], decls: 6, vars: 1, consts: [["row", ""], ["role", "tree", "aria-label", "Variables", 1, "vars"], [1, "vars-empty"], [1, "vars-scope"], ["type", "button", 1, "vars-scope-head", 3, "click"], ["aria-hidden", "true", 1, "fa-solid"], [1, "vars-list"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], ["role", "treeitem", 1, "vars-row"], ["type", "button", 1, "vars-name", 3, "click", "disabled"], ["aria-hidden", "true", 1, "fa-solid", 3, "fa-chevron-down", "fa-chevron-right"], ["aria-hidden", "true", 1, "vars-leaf"], [1, "vars-preview"]], template: function TaskGraphVariablesComponent_Template(rf, ctx) { if (rf & 1) {
|
|
169
250
|
i0.ɵɵelementStart(0, "div", 1);
|
|
170
251
|
i0.ɵɵconditionalCreate(1, TaskGraphVariablesComponent_Conditional_1_Template, 2, 0, "div", 2);
|
|
171
252
|
i0.ɵɵrepeaterCreate(2, TaskGraphVariablesComponent_For_3_Template, 5, 7, "div", 3, _forTrack0);
|
|
@@ -181,12 +262,16 @@ export class TaskGraphVariablesComponent {
|
|
|
181
262
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TaskGraphVariablesComponent, [{
|
|
182
263
|
type: Component,
|
|
183
264
|
args: [{ standalone: true, selector: 'mj-task-graph-variables', imports: [NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"vars\" role=\"tree\" aria-label=\"Variables\">\n @if (Scopes.length === 0) {\n <div class=\"vars-empty\">Select a step to inspect its input and output.</div>\n }\n @for (scope of Scopes; track scope.Name) {\n <div class=\"vars-scope\">\n <button type=\"button\" class=\"vars-scope-head\" (click)=\"Toggle(scope.Name)\"\n [attr.aria-expanded]=\"IsExpanded(scope.Name)\">\n <i class=\"fa-solid\" [class.fa-chevron-down]=\"IsExpanded(scope.Name)\"\n [class.fa-chevron-right]=\"!IsExpanded(scope.Name)\" aria-hidden=\"true\"></i>\n {{ scope.Name }}\n </button>\n @if (IsExpanded(scope.Name)) {\n <ul class=\"vars-list\">\n @for (variable of scope.Variables; track variable.Name) {\n <ng-container\n *ngTemplateOutlet=\"row; context: { $implicit: variable, path: Path(scope.Name, variable.Name), depth: 0 }\">\n </ng-container>\n }\n </ul>\n }\n </div>\n }\n</div>\n\n<ng-template #row let-variable let-path=\"path\" let-depth=\"depth\">\n <li class=\"vars-row\" [style.--vars-depth]=\"depth\" role=\"treeitem\"\n [attr.aria-expanded]=\"HasChildren(variable) ? IsExpanded(path) : null\">\n <button type=\"button\" class=\"vars-name\" [disabled]=\"!HasChildren(variable)\" (click)=\"Toggle(path)\">\n @if (HasChildren(variable)) {\n <i class=\"fa-solid\" [class.fa-chevron-down]=\"IsExpanded(path)\"\n [class.fa-chevron-right]=\"!IsExpanded(path)\" aria-hidden=\"true\"></i>\n } @else {\n <span class=\"vars-leaf\" aria-hidden=\"true\"></span>\n }\n <span>{{ variable.Name }}</span>\n </button>\n <span class=\"vars-preview\" [attr.data-kind]=\"variable.Kind\">{{ variable.Preview }}</span>\n </li>\n @if (HasChildren(variable) && IsExpanded(path)) {\n <ul class=\"vars-list\">\n @for (child of variable.Children; track child.Name) {\n <ng-container\n *ngTemplateOutlet=\"row; context: { $implicit: child, path: Path('', child.Name, path), depth: depth + 1 }\">\n </ng-container>\n }\n </ul>\n }\n</ng-template>\n", styles: [":host {\n display: flex;\n flex-direction: column;\n height: 100%;\n min-height: 0;\n overflow: hidden;\n}\n\n.vars {\n display: flex;\n flex-direction: column;\n gap: 2px;\n flex: 1 1 auto;\n min-height: 0;\n overflow-x: hidden;\n overflow-y: auto;\n font-family: var(--mj-font-mono, ui-monospace, monospace);\n font-size: var(--mj-font-size-xs);\n background: var(--mj-bg-surface-sunken);\n}\n\n.vars-empty {\n padding: var(--mj-space-3);\n color: var(--mj-text-muted);\n font-family: var(--mj-font-sans, inherit);\n}\n\n.vars-scope-head {\n display: flex;\n align-items: center;\n gap: 6px;\n width: 100%;\n padding: 4px 8px;\n border: none;\n background: transparent;\n color: var(--mj-text-secondary);\n font: inherit;\n font-weight: 700;\n letter-spacing: 0.06em;\n text-transform: uppercase;\n text-align: left;\n cursor: pointer;\n}\n.vars-scope-head:hover { background: var(--mj-bg-surface-hover); }\n.vars-scope-head i { font-size: 8px; width: 10px; }\n\n.vars-list { list-style: none; margin: 0; padding: 0; }\n\n.vars-row {\n display: grid;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);\n gap: var(--mj-space-2);\n align-items: baseline;\n padding: 1px 8px 1px calc(8px + (var(--vars-depth, 0) * 12px));\n}\n.vars-row:hover { background: var(--mj-bg-surface-hover); }\n\n.vars-name {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n min-width: 0;\n padding: 0;\n border: none;\n background: transparent;\n color: var(--mj-text-primary);\n font: inherit;\n text-align: left;\n cursor: pointer;\n}\n.vars-name:disabled { cursor: default; }\n.vars-name i { font-size: 8px; width: 10px; color: var(--mj-text-muted); }\n.vars-leaf { display: inline-block; width: 10px; }\n.vars-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n\n.vars-preview {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n color: var(--mj-text-muted);\n}\n.vars-preview[data-kind='string'] { color: var(--mj-status-success); }\n.vars-preview[data-kind='number'] { color: var(--mj-brand-primary); }\n.vars-preview[data-kind='boolean'] { color: var(--mj-status-warning); }\n.vars-preview[data-kind='null'] { color: var(--mj-text-disabled); font-style: italic; }\n"] }]
|
|
184
|
-
}], null, {
|
|
265
|
+
}], null, { Task: [{
|
|
266
|
+
type: Input
|
|
267
|
+
}], TaskID: [{
|
|
268
|
+
type: Input
|
|
269
|
+
}], InputPayload: [{
|
|
185
270
|
type: Input
|
|
186
271
|
}], OutputPayload: [{
|
|
187
272
|
type: Input
|
|
188
273
|
}], Invocation: [{
|
|
189
274
|
type: Input
|
|
190
275
|
}] }); })();
|
|
191
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TaskGraphVariablesComponent, { className: "TaskGraphVariablesComponent", filePath: "src/lib/task-graph-variables.component.ts", lineNumber:
|
|
276
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TaskGraphVariablesComponent, { className: "TaskGraphVariablesComponent", filePath: "src/lib/task-graph-variables.component.ts", lineNumber: 33 }); })();
|
|
192
277
|
//# sourceMappingURL=task-graph-variables.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-graph-variables.component.js","sourceRoot":"","sources":["../../src/lib/task-graph-variables.component.ts","../../src/lib/task-graph-variables.component.html"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EACH,mBAAmB,EACnB,aAAa,GAGhB,MAAM,mBAAmB,CAAC;;;;;;ICVvB,8BAAwB;IAAA,8DAA8C;IAAA,iBAAM;;;IAapE,wBAEe;;;IAFf,wHAC6G;;;;;;IAAnF,AAAvB,yCAAuB,kHAAiF;;;IAH/G,6BAAsB;IACpB,8HAIC;IACH,iBAAK;;;IALH,cAIC;IAJD,iCAIC;;;;IAZL,AADF,8BAAwB,gBAEgC;IADR,kNAAS,4BAAkB,KAAC;IAExE,uBAC6E;IAC7E,YACF;IAAA,iBAAS;IACT,kGAA8B;IAShC,iBAAM;;;;IAdI,cAA6C;;IAC/B,cAAgD;IACjE,AADiB,mEAAgD,uDACf;IACrD,cACF;IADE,8CACF;IACA,cAQC;IARD,2DAQC;;;IAUC,uBACuE;;;;IAApE,AADiB,6DAA0C,iDACf;;;IAE/C,2BAAkD;;;IASlD,wBAEe;;;IAFf,gIAC6G;;;;;;;;IAAnF,AAAvB,yCAAuB,yHAAiF;;;IAH/G,6BAAsB;IACpB,sIAIC;IACH,iBAAK;;;IALH,cAIC;IAJD,oCAIC;;;;IAjBH,AAFF,6BAC2E,gBAC0B;IAAvB,oNAAS,sBAAY,KAAC;IAI9F,AAHF,0GAA6B,uFAGpB;IAGT,4BAAM;IAAA,YAAmB;IAC3B,AAD2B,iBAAO,EACzB;IACT,gCAA4D;IAAA,YAAsB;IACpF,AADoF,iBAAO,EACtF;IACL,0GAAiD;;;;;;IAb5B,yCAA4B;;IAEP,cAAmC;IAAn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,EAAE,CAAC;IAC7D,CAAC;IAEM,WAAW,CAAC,QAAuB;QACtC,OAAO,QAAQ,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;IACxC,CAAC;IAEO,OAAO;QACX,IAAI,CAAC,MAAM,GAAG,mBAAmB,CAAC;YAC9B,KAAK,EAAE,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC;YACnC,MAAM,EAAE,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC;YACrC,UAAU,EAAE,IAAI,CAAC,UAAU;SAC9B,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5D,CAAC;qHAjDQ,2BAA2B;6DAA3B,2BAA2B;YCtBxC,8BAAqD;YACnD,6FAA2B;YAG3B,8FAkBC;YACH,iBAAM;YAEN,6HAAiE;;YAxB/D,cAEC;YAFD,kDAEC;YACD,cAkBC;YAlBD,yBAkBC;4BDLW,gBAAgB;;iFAKjB,2BAA2B;cARvC,SAAS;6BACM,IAAI,YACN,yBAAyB,WAC1B,CAAC,gBAAgB,CAAC,mBAGV,uBAAuB,CAAC,MAAM;;kBAG9C,KAAK;;kBAKL,KAAK;;kBAKL,KAAK;;kFAXG,2BAA2B","sourcesContent":["/**\n * VS Code VARIABLES pane for a selected workflow step.\n *\n * Paint only. Expanding a row is local UI state. The host owns which step is selected.\n */\nimport { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n BuildVariableScopes,\n DecodePayload,\n type DebugVariable,\n type DebugVariableScope,\n} from './debug-variables';\n\n@Component({\n standalone: true,\n selector: 'mj-task-graph-variables',\n imports: [NgTemplateOutlet],\n templateUrl: './task-graph-variables.component.html',\n styleUrls: ['./task-graph-variables.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TaskGraphVariablesComponent {\n @Input()\n public set InputPayload(value: string | null | undefined) {\n this.inputRaw = value;\n this.rebuild();\n }\n @Input()\n public set OutputPayload(value: string | null | undefined) {\n this.outputRaw = value;\n this.rebuild();\n }\n @Input()\n public set Invocation(value: { data?: unknown; context?: unknown } | null) {\n this.invocation = value;\n this.rebuild();\n }\n\n public Scopes: DebugVariableScope[] = [];\n public Expanded = new Set<string>();\n\n private inputRaw: string | null | undefined;\n private outputRaw: string | null | undefined;\n private invocation: { data?: unknown; context?: unknown } | null = null;\n\n public Toggle(path: string): void {\n if (this.Expanded.has(path)) this.Expanded.delete(path);\n else this.Expanded.add(path);\n this.Expanded = new Set(this.Expanded);\n }\n\n public IsExpanded(path: string): boolean {\n return this.Expanded.has(path);\n }\n\n public Path(scope: string, name: string, parent?: string): string {\n return parent ? `${parent}.${name}` : `${scope}.${name}`;\n }\n\n public HasChildren(variable: DebugVariable): boolean {\n return variable.Children.length > 0;\n }\n\n private rebuild(): void {\n this.Scopes = BuildVariableScopes({\n input: DecodePayload(this.inputRaw),\n output: DecodePayload(this.outputRaw),\n invocation: this.invocation,\n });\n this.Expanded = new Set(this.Scopes.map((s) => s.Name));\n }\n}\n","<div class=\"vars\" role=\"tree\" aria-label=\"Variables\">\n @if (Scopes.length === 0) {\n <div class=\"vars-empty\">Select a step to inspect its input and output.</div>\n }\n @for (scope of Scopes; track scope.Name) {\n <div class=\"vars-scope\">\n <button type=\"button\" class=\"vars-scope-head\" (click)=\"Toggle(scope.Name)\"\n [attr.aria-expanded]=\"IsExpanded(scope.Name)\">\n <i class=\"fa-solid\" [class.fa-chevron-down]=\"IsExpanded(scope.Name)\"\n [class.fa-chevron-right]=\"!IsExpanded(scope.Name)\" aria-hidden=\"true\"></i>\n {{ scope.Name }}\n </button>\n @if (IsExpanded(scope.Name)) {\n <ul class=\"vars-list\">\n @for (variable of scope.Variables; track variable.Name) {\n <ng-container\n *ngTemplateOutlet=\"row; context: { $implicit: variable, path: Path(scope.Name, variable.Name), depth: 0 }\">\n </ng-container>\n }\n </ul>\n }\n </div>\n }\n</div>\n\n<ng-template #row let-variable let-path=\"path\" let-depth=\"depth\">\n <li class=\"vars-row\" [style.--vars-depth]=\"depth\" role=\"treeitem\"\n [attr.aria-expanded]=\"HasChildren(variable) ? IsExpanded(path) : null\">\n <button type=\"button\" class=\"vars-name\" [disabled]=\"!HasChildren(variable)\" (click)=\"Toggle(path)\">\n @if (HasChildren(variable)) {\n <i class=\"fa-solid\" [class.fa-chevron-down]=\"IsExpanded(path)\"\n [class.fa-chevron-right]=\"!IsExpanded(path)\" aria-hidden=\"true\"></i>\n } @else {\n <span class=\"vars-leaf\" aria-hidden=\"true\"></span>\n }\n <span>{{ variable.Name }}</span>\n </button>\n <span class=\"vars-preview\" [attr.data-kind]=\"variable.Kind\">{{ variable.Preview }}</span>\n </li>\n @if (HasChildren(variable) && IsExpanded(path)) {\n <ul class=\"vars-list\">\n @for (child of variable.Children; track child.Name) {\n <ng-container\n *ngTemplateOutlet=\"row; context: { $implicit: child, path: Path('', child.Name, path), depth: depth + 1 }\">\n </ng-container>\n }\n </ul>\n }\n</ng-template>\n"]}
|
|
1
|
+
{"version":3,"file":"task-graph-variables.component.js","sourceRoot":"","sources":["../../src/lib/task-graph-variables.component.ts","../../src/lib/task-graph-variables.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,uBAAuB,EAAE,SAAS,EAAE,KAAK,EAA4B,MAAM,eAAe,CAAC;AACpG,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EACH,mBAAmB,EACnB,aAAa,GAGhB,MAAM,mBAAmB,CAAC;;;;;;ICZvB,8BAAwB;IAAA,8DAA8C;IAAA,iBAAM;;;IAapE,wBAEe;;;IAFf,wHAC6G;;;;;;IAAnF,AAAvB,yCAAuB,kHAAiF;;;IAH/G,6BAAsB;IACpB,8HAIC;IACH,iBAAK;;;IALH,cAIC;IAJD,iC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;YAC/C,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,CAAC,aAAa,CAAC,CAAC;YACvC,OAAO;QACX,CAAC;QAED,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC5C,KAAK,MAAM,KAAK,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAC9B,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;gBACzC,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;gBACtC,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACjC,CAAC;QACL,CAAC;QACD,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAC;IACjC,CAAC;qHAnJQ,2BAA2B;6DAA3B,2BAA2B;YChCxC,8BAAqD;YACnD,6FAA2B;YAG3B,8FAkBC;YACH,iBAAM;YAEN,6HAAiE;;YAxB/D,cAEC;YAFD,kDAEC;YACD,cAkBC;YAlBD,yBAkBC;4BDKW,gBAAgB;;iFAKjB,2BAA2B;cARvC,SAAS;6BACM,IAAI,YACN,yBAAyB,WAC1B,CAAC,gBAAgB,CAAC,mBAGV,uBAAuB,CAAC,MAAM;;kBAO9C,KAAK;;kBAUL,KAAK;;kBASL,KAAK;;kBASL,KAAK;;kBASL,KAAK;;kFA1CG,2BAA2B","sourcesContent":["/**\n * VS Code VARIABLES pane for a selected workflow step.\n *\n * Paint only. Expanding a row is local UI state. The host owns which step is selected.\n * Preserves expanded variable tree nodes across live poll refreshes of the same step while\n * resetting to top-level scopes when the operator switches to a different step.\n */\nimport { ChangeDetectionStrategy, Component, Input, OnChanges, SimpleChanges } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n BuildVariableScopes,\n DecodePayload,\n type DebugVariable,\n type DebugVariableScope,\n} from './debug-variables';\n\n/** Minimal shape for a task step passed directly into {@link TaskGraphVariablesComponent}. */\nexport interface TaskGraphVariableTaskInput {\n ID?: string | null;\n Status?: string | null;\n InputPayload?: string | null;\n OutputPayload?: string | null;\n}\n\n@Component({\n standalone: true,\n selector: 'mj-task-graph-variables',\n imports: [NgTemplateOutlet],\n templateUrl: './task-graph-variables.component.html',\n styleUrls: ['./task-graph-variables.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TaskGraphVariablesComponent implements OnChanges {\n /**\n * Optional task step entity/snapshot. Supplies `ID`, `Status`, `InputPayload`, and\n * `OutputPayload` when those granular inputs are not bound separately.\n */\n @Input()\n public set Task(value: TaskGraphVariableTaskInput | null | undefined) {\n this.task = value ?? null;\n this.rebuild();\n }\n public get Task(): TaskGraphVariableTaskInput | null | undefined {\n return this.task;\n }\n\n /** Identifier of the currently selected task step, used to preserve expansion across live polls. */\n @Input()\n public set TaskID(value: string | null | undefined) {\n this.taskID = value ?? null;\n this.rebuild();\n }\n public get TaskID(): string | null | undefined {\n return this.taskID;\n }\n\n @Input()\n public set InputPayload(value: string | null | undefined) {\n this.inputRaw = value;\n this.rebuild();\n }\n public get InputPayload(): string | null | undefined {\n return this.inputRaw;\n }\n\n @Input()\n public set OutputPayload(value: string | null | undefined) {\n this.outputRaw = value;\n this.rebuild();\n }\n public get OutputPayload(): string | null | undefined {\n return this.outputRaw;\n }\n\n @Input()\n public set Invocation(value: { data?: unknown; context?: unknown } | null) {\n this.invocation = value;\n this.rebuild();\n }\n public get Invocation(): { data?: unknown; context?: unknown } | null {\n return this.invocation;\n }\n\n public Scopes: DebugVariableScope[] = [];\n public Expanded = new Set<string>();\n\n private task: TaskGraphVariableTaskInput | null = null;\n private taskID: string | null = null;\n private inputRaw: string | null | undefined = undefined;\n private outputRaw: string | null | undefined = undefined;\n private invocation: { data?: unknown; context?: unknown } | null = null;\n\n private _lastTaskID: string | null | undefined = undefined;\n private _lastTaskStatus: string | null | undefined = undefined;\n private _lastInputPayload: string | null | undefined = undefined;\n private _lastOutputPayload: string | null | undefined = undefined;\n private _lastInvocation: { data?: unknown; context?: unknown } | null | undefined = undefined;\n private _knownScopeNames = new Set<string>();\n\n public ngOnChanges(_changes?: SimpleChanges): void {\n this.rebuild();\n }\n\n public Toggle(path: string): void {\n if (this.Expanded.has(path)) this.Expanded.delete(path);\n else this.Expanded.add(path);\n this.Expanded = new Set(this.Expanded);\n }\n\n public IsExpanded(path: string): boolean {\n return this.Expanded.has(path);\n }\n\n public Path(scope: string, name: string, parent?: string): string {\n return parent ? `${parent}.${name}` : `${scope}.${name}`;\n }\n\n public HasChildren(variable: DebugVariable): boolean {\n return variable.Children.length > 0;\n }\n\n private rebuild(): void {\n const effectiveTaskID = this.taskID ?? this.task?.ID ?? null;\n const effectiveTaskStatus = this.task?.Status ?? null;\n const effectiveInput = this.inputRaw !== undefined ? this.inputRaw : this.task?.InputPayload;\n const effectiveOutput = this.outputRaw !== undefined ? this.outputRaw : this.task?.OutputPayload;\n\n const isFirstBuild =\n this._lastTaskID === undefined &&\n this._lastInputPayload === undefined &&\n this._lastOutputPayload === undefined &&\n this._lastInvocation === undefined;\n const taskSwitched =\n !isFirstBuild &&\n this._lastTaskID !== null &&\n effectiveTaskID !== this._lastTaskID;\n const payloadsChanged =\n effectiveInput !== this._lastInputPayload ||\n effectiveOutput !== this._lastOutputPayload ||\n this.invocation !== this._lastInvocation;\n\n this._lastTaskID = effectiveTaskID;\n this._lastTaskStatus = effectiveTaskStatus;\n\n if (!isFirstBuild && !taskSwitched && !payloadsChanged) {\n return;\n }\n\n this._lastInputPayload = effectiveInput;\n this._lastOutputPayload = effectiveOutput;\n this._lastInvocation = this.invocation;\n\n this.Scopes = BuildVariableScopes({\n input: DecodePayload(effectiveInput),\n output: DecodePayload(effectiveOutput),\n invocation: this.invocation,\n });\n\n if (this.Scopes.length === 0) {\n this._knownScopeNames.clear();\n this.Expanded = new Set();\n return;\n }\n\n if (taskSwitched || this._knownScopeNames.size === 0) {\n const topScopeNames = this.Scopes.map((s) => s.Name);\n this._knownScopeNames = new Set(topScopeNames);\n this.Expanded = new Set(topScopeNames);\n return;\n }\n\n const nextExpanded = new Set(this.Expanded);\n for (const scope of this.Scopes) {\n if (!this._knownScopeNames.has(scope.Name)) {\n this._knownScopeNames.add(scope.Name);\n nextExpanded.add(scope.Name);\n }\n }\n this.Expanded = nextExpanded;\n }\n}\n","<div class=\"vars\" role=\"tree\" aria-label=\"Variables\">\n @if (Scopes.length === 0) {\n <div class=\"vars-empty\">Select a step to inspect its input and output.</div>\n }\n @for (scope of Scopes; track scope.Name) {\n <div class=\"vars-scope\">\n <button type=\"button\" class=\"vars-scope-head\" (click)=\"Toggle(scope.Name)\"\n [attr.aria-expanded]=\"IsExpanded(scope.Name)\">\n <i class=\"fa-solid\" [class.fa-chevron-down]=\"IsExpanded(scope.Name)\"\n [class.fa-chevron-right]=\"!IsExpanded(scope.Name)\" aria-hidden=\"true\"></i>\n {{ scope.Name }}\n </button>\n @if (IsExpanded(scope.Name)) {\n <ul class=\"vars-list\">\n @for (variable of scope.Variables; track variable.Name) {\n <ng-container\n *ngTemplateOutlet=\"row; context: { $implicit: variable, path: Path(scope.Name, variable.Name), depth: 0 }\">\n </ng-container>\n }\n </ul>\n }\n </div>\n }\n</div>\n\n<ng-template #row let-variable let-path=\"path\" let-depth=\"depth\">\n <li class=\"vars-row\" [style.--vars-depth]=\"depth\" role=\"treeitem\"\n [attr.aria-expanded]=\"HasChildren(variable) ? IsExpanded(path) : null\">\n <button type=\"button\" class=\"vars-name\" [disabled]=\"!HasChildren(variable)\" (click)=\"Toggle(path)\">\n @if (HasChildren(variable)) {\n <i class=\"fa-solid\" [class.fa-chevron-down]=\"IsExpanded(path)\"\n [class.fa-chevron-right]=\"!IsExpanded(path)\" aria-hidden=\"true\"></i>\n } @else {\n <span class=\"vars-leaf\" aria-hidden=\"true\"></span>\n }\n <span>{{ variable.Name }}</span>\n </button>\n <span class=\"vars-preview\" [attr.data-kind]=\"variable.Kind\">{{ variable.Preview }}</span>\n </li>\n @if (HasChildren(variable) && IsExpanded(path)) {\n <ul class=\"vars-list\">\n @for (child of variable.Children; track child.Name) {\n <ng-container\n *ngTemplateOutlet=\"row; context: { $implicit: child, path: Path('', child.Name, path), depth: depth + 1 }\">\n </ng-container>\n }\n </ul>\n }\n</ng-template>\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-task-graph-editor",
|
|
3
|
-
"version": "6.2.0-edge.
|
|
3
|
+
"version": "6.2.0-edge.5",
|
|
4
4
|
"description": "MemberJunction: View and edit a TaskGraphSpec on a canvas — the one graph contract shared by design-time flows and runtime task graphs",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@angular/compiler": "21.2.22",
|
|
22
22
|
"@angular/compiler-cli": "21.2.22",
|
|
23
|
-
"@memberjunction/ng-test-utils": "6.2.0-edge.
|
|
23
|
+
"@memberjunction/ng-test-utils": "6.2.0-edge.5",
|
|
24
24
|
"sass": "^1.97.3",
|
|
25
25
|
"vitest": "^4.0.18"
|
|
26
26
|
},
|
|
@@ -31,13 +31,13 @@
|
|
|
31
31
|
"@angular/platform-browser": "^21.2.22"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@memberjunction/ai-core-plus": "6.2.0-edge.
|
|
35
|
-
"@memberjunction/core": "6.2.0-edge.
|
|
36
|
-
"@memberjunction/core-entities": "6.2.0-edge.
|
|
37
|
-
"@memberjunction/global": "6.2.0-edge.
|
|
38
|
-
"@memberjunction/ng-base-types": "6.2.0-edge.
|
|
39
|
-
"@memberjunction/ng-flow-editor": "6.2.0-edge.
|
|
40
|
-
"@memberjunction/ng-ui-components": "6.2.0-edge.
|
|
34
|
+
"@memberjunction/ai-core-plus": "6.2.0-edge.5",
|
|
35
|
+
"@memberjunction/core": "6.2.0-edge.5",
|
|
36
|
+
"@memberjunction/core-entities": "6.2.0-edge.5",
|
|
37
|
+
"@memberjunction/global": "6.2.0-edge.5",
|
|
38
|
+
"@memberjunction/ng-base-types": "6.2.0-edge.5",
|
|
39
|
+
"@memberjunction/ng-flow-editor": "6.2.0-edge.5",
|
|
40
|
+
"@memberjunction/ng-ui-components": "6.2.0-edge.5",
|
|
41
41
|
"angular-split": "^20.0.0",
|
|
42
42
|
"rxjs": "^7.8.2",
|
|
43
43
|
"tslib": "^2.8.1"
|