@memberjunction/ng-core-entity-forms 2.86.0 → 2.88.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-agent-form-section.component.d.ts.map +1 -1
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-agent-form-section.component.js +7 -7
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-agent-form-section.component.js.map +1 -1
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/condition-editor/condition-editor.component.d.ts +29 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/condition-editor/condition-editor.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/condition-editor/condition-editor.component.js +198 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/condition-editor/condition-editor.component.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/confirmation-dialog/confirmation-dialog.component.d.ts +14 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/confirmation-dialog/confirmation-dialog.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/confirmation-dialog/confirmation-dialog.component.js +98 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/confirmation-dialog/confirmation-dialog.component.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/custom-node/custom-node.component.d.ts +44 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/custom-node/custom-node.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/custom-node/custom-node.component.js +282 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/custom-node/custom-node.component.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/execution-panel/execution-panel.component.d.ts +35 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/execution-panel/execution-panel.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/execution-panel/execution-panel.component.js +287 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/execution-panel/execution-panel.component.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/flow-editor/flow-editor.component.d.ts +106 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/flow-editor/flow-editor.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/flow-editor/flow-editor.component.js +951 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/flow-editor/flow-editor.component.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/prompt-editor/prompt-editor.component.d.ts +30 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/prompt-editor/prompt-editor.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/prompt-editor/prompt-editor.component.js +450 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/prompt-editor/prompt-editor.component.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/properties-panel/properties-panel.component.d.ts +25 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/properties-panel/properties-panel.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/properties-panel/properties-panel.component.js +423 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/properties-panel/properties-panel.component.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/simple-condition-editor/simple-condition-editor.component.d.ts +21 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/simple-condition-editor/simple-condition-editor.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/simple-condition-editor/simple-condition-editor.component.js +182 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/simple-condition-editor/simple-condition-editor.component.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/step/step.component.d.ts +34 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/step/step.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/step/step.component.js +171 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/step/step.component.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/toolbar/toolbar.component.d.ts +17 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/toolbar/toolbar.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/toolbar/toolbar.component.js +78 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/toolbar/toolbar.component.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/connection.model.d.ts +17 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/connection.model.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/connection.model.js +11 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/connection.model.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/mj-extended.model.d.ts +21 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/mj-extended.model.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/mj-extended.model.js +2 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/mj-extended.model.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/module.model.d.ts +33 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/module.model.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/module.model.js +2 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/module.model.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/step.model.d.ts +44 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/step.model.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/step.model.js +166 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/models/step.model.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/flow-editor.service.d.ts +14 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/flow-editor.service.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/flow-editor.service.js +31 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/flow-editor.service.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/flow-executor.service.d.ts +63 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/flow-executor.service.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/flow-executor.service.js +294 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/flow-executor.service.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/mj-flow-transformer.service.d.ts +77 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/mj-flow-transformer.service.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/mj-flow-transformer.service.js +408 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/mj-flow-transformer.service.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/module-manager.service.d.ts +19 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/module-manager.service.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/module-manager.service.js +116 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/module-manager.service.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/prompt-manager.service.d.ts +25 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/prompt-manager.service.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/prompt-manager.service.js +90 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/services/prompt-manager.service.js.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/mj-integrated-flow-editor.component.d.ts +52 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/mj-integrated-flow-editor.component.d.ts.map +1 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/mj-integrated-flow-editor.component.js +500 -0
- package/dist/lib/custom/AIAgents/FlowAgentType/mj-integrated-flow-editor.component.js.map +1 -0
- package/dist/lib/custom/custom-forms.module.d.ts +2 -1
- package/dist/lib/custom/custom-forms.module.d.ts.map +1 -1
- package/dist/lib/custom/custom-forms.module.js +10 -4
- package/dist/lib/custom/custom-forms.module.js.map +1 -1
- package/dist/lib/generated/Entities/Component/sections/details.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/Component/sections/details.component.js +40 -4
- package/dist/lib/generated/Entities/Component/sections/details.component.js.map +1 -1
- package/package.json +16 -16
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { Module } from '../../models/module.model';
|
|
3
|
+
import { ModuleManagerService } from '../../services/module-manager.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CustomNodeViewComponent implements OnInit {
|
|
6
|
+
private moduleManager;
|
|
7
|
+
node: any;
|
|
8
|
+
selected: boolean;
|
|
9
|
+
nodeSelected: EventEmitter<any>;
|
|
10
|
+
nodeDeleted: EventEmitter<any>;
|
|
11
|
+
nodeUpdated: EventEmitter<any>;
|
|
12
|
+
socketMouseDown: EventEmitter<{
|
|
13
|
+
event: MouseEvent;
|
|
14
|
+
node: any;
|
|
15
|
+
type: string;
|
|
16
|
+
}>;
|
|
17
|
+
socketMouseEnter: EventEmitter<{
|
|
18
|
+
event: MouseEvent;
|
|
19
|
+
node: any;
|
|
20
|
+
type: string;
|
|
21
|
+
}>;
|
|
22
|
+
socketMouseLeave: EventEmitter<MouseEvent>;
|
|
23
|
+
isDragOver: boolean;
|
|
24
|
+
private draggedModule;
|
|
25
|
+
constructor(moduleManager: ModuleManagerService);
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
onNodeClick(): void;
|
|
28
|
+
onEditName(event: Event): void;
|
|
29
|
+
onDelete(event: Event): void;
|
|
30
|
+
onDragOver(event: DragEvent): void;
|
|
31
|
+
onDragLeave(event: DragEvent): void;
|
|
32
|
+
onDrop(event: DragEvent): void;
|
|
33
|
+
onModuleDragStart(event: DragEvent, module: Module): void;
|
|
34
|
+
onModuleDragEnd(event: DragEvent): void;
|
|
35
|
+
private reorderModule;
|
|
36
|
+
onConfigureModule(event: Event, module: Module): void;
|
|
37
|
+
onDeleteModule(event: Event, module: Module): void;
|
|
38
|
+
onSocketMouseDown(event: MouseEvent, type: string): void;
|
|
39
|
+
onSocketMouseEnter(event: MouseEvent, type: string): void;
|
|
40
|
+
onSocketMouseLeave(event: MouseEvent): void;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomNodeViewComponent, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomNodeViewComponent, "app-custom-node", never, { "node": { "alias": "node"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "nodeSelected": "nodeSelected"; "nodeDeleted": "nodeDeleted"; "nodeUpdated": "nodeUpdated"; "socketMouseDown": "socketMouseDown"; "socketMouseEnter": "socketMouseEnter"; "socketMouseLeave": "socketMouseLeave"; }, never, never, true, never>;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=custom-node.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-node.component.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/custom-node/custom-node.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAY,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;;AAG7E,qBAqPa,uBAAwB,YAAW,MAAM;IAaxC,OAAO,CAAC,aAAa;IAZxB,IAAI,EAAE,GAAG,CAAC;IACV,QAAQ,EAAE,OAAO,CAAS;IACzB,YAAY,oBAA2B;IACvC,WAAW,oBAA2B;IACtC,WAAW,oBAA2B;IACtC,eAAe;eAA4B,UAAU;cAAQ,GAAG;cAAQ,MAAM;OAAK;IACnF,gBAAgB;eAA4B,UAAU;cAAQ,GAAG;cAAQ,MAAM;OAAK;IACpF,gBAAgB,2BAAkC;IAE5D,UAAU,UAAS;IACnB,OAAO,CAAC,aAAa,CAAuB;gBAExB,aAAa,EAAE,oBAAoB;IAEvD,QAAQ;IAMR,WAAW;IAIX,UAAU,CAAC,KAAK,EAAE,KAAK;IASvB,QAAQ,CAAC,KAAK,EAAE,KAAK;IAOrB,UAAU,CAAC,KAAK,EAAE,SAAS;IAO3B,WAAW,CAAC,KAAK,EAAE,SAAS;IAM5B,MAAM,CAAC,KAAK,EAAE,SAAS;IAyBvB,iBAAiB,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM;IAOlD,eAAe,CAAC,KAAK,EAAE,SAAS;IAKhC,OAAO,CAAC,aAAa;IA0BrB,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM;IAK9C,cAAc,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM;IAM3C,iBAAiB,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM;IAMjD,kBAAkB,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM;IAIlD,kBAAkB,CAAC,KAAK,EAAE,UAAU;yCA1IzB,uBAAuB;2CAAvB,uBAAuB;CA6InC"}
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../../services/module-manager.service";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
function CustomNodeViewComponent_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
7
|
+
i0.ɵɵelementStart(0, "div", 13);
|
|
8
|
+
i0.ɵɵtext(1, " Drag modules here ");
|
|
9
|
+
i0.ɵɵelementEnd();
|
|
10
|
+
} }
|
|
11
|
+
function CustomNodeViewComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
12
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
13
|
+
i0.ɵɵelementStart(0, "div", 14);
|
|
14
|
+
i0.ɵɵlistener("dragstart", function CustomNodeViewComponent_div_11_Template_div_dragstart_0_listener($event) { const module_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onModuleDragStart($event, module_r2)); })("dragend", function CustomNodeViewComponent_div_11_Template_div_dragend_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onModuleDragEnd($event)); });
|
|
15
|
+
i0.ɵɵelementStart(1, "div", 15);
|
|
16
|
+
i0.ɵɵelement(2, "i", 16);
|
|
17
|
+
i0.ɵɵelementStart(3, "span");
|
|
18
|
+
i0.ɵɵtext(4);
|
|
19
|
+
i0.ɵɵelementEnd()();
|
|
20
|
+
i0.ɵɵelementStart(5, "div", 17)(6, "button", 18);
|
|
21
|
+
i0.ɵɵlistener("click", function CustomNodeViewComponent_div_11_Template_button_click_6_listener($event) { const module_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onConfigureModule($event, module_r2)); });
|
|
22
|
+
i0.ɵɵelement(7, "i", 19);
|
|
23
|
+
i0.ɵɵelementEnd();
|
|
24
|
+
i0.ɵɵelementStart(8, "button", 20);
|
|
25
|
+
i0.ɵɵlistener("click", function CustomNodeViewComponent_div_11_Template_button_click_8_listener($event) { const module_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onDeleteModule($event, module_r2)); });
|
|
26
|
+
i0.ɵɵelement(9, "i", 21);
|
|
27
|
+
i0.ɵɵelementEnd()()();
|
|
28
|
+
} if (rf & 2) {
|
|
29
|
+
const module_r2 = ctx.$implicit;
|
|
30
|
+
i0.ɵɵattribute("data-module-id", module_r2.id);
|
|
31
|
+
i0.ɵɵadvance(2);
|
|
32
|
+
i0.ɵɵstyleProp("color", module_r2.color);
|
|
33
|
+
i0.ɵɵproperty("ngClass", module_r2.icon);
|
|
34
|
+
i0.ɵɵadvance(2);
|
|
35
|
+
i0.ɵɵtextInterpolate(module_r2.name);
|
|
36
|
+
} }
|
|
37
|
+
export class CustomNodeViewComponent {
|
|
38
|
+
constructor(moduleManager) {
|
|
39
|
+
this.moduleManager = moduleManager;
|
|
40
|
+
this.selected = false;
|
|
41
|
+
this.nodeSelected = new EventEmitter();
|
|
42
|
+
this.nodeDeleted = new EventEmitter();
|
|
43
|
+
this.nodeUpdated = new EventEmitter();
|
|
44
|
+
this.socketMouseDown = new EventEmitter();
|
|
45
|
+
this.socketMouseEnter = new EventEmitter();
|
|
46
|
+
this.socketMouseLeave = new EventEmitter();
|
|
47
|
+
this.isDragOver = false;
|
|
48
|
+
this.draggedModule = null;
|
|
49
|
+
}
|
|
50
|
+
ngOnInit() {
|
|
51
|
+
if (!this.node.data.modules) {
|
|
52
|
+
this.node.data.modules = [];
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
onNodeClick() {
|
|
56
|
+
this.nodeSelected.emit(this.node);
|
|
57
|
+
}
|
|
58
|
+
onEditName(event) {
|
|
59
|
+
event.stopPropagation();
|
|
60
|
+
const newName = prompt('Enter node name:', this.node.data.name);
|
|
61
|
+
if (newName && newName !== this.node.data.name) {
|
|
62
|
+
this.node.data.name = newName;
|
|
63
|
+
this.nodeUpdated.emit(this.node);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
onDelete(event) {
|
|
67
|
+
event.stopPropagation();
|
|
68
|
+
if (confirm('Are you sure you want to delete this node?')) {
|
|
69
|
+
this.nodeDeleted.emit(this.node);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
onDragOver(event) {
|
|
73
|
+
event.preventDefault();
|
|
74
|
+
event.stopPropagation();
|
|
75
|
+
// Can't read dataTransfer during dragover, so just accept all drags
|
|
76
|
+
this.isDragOver = true;
|
|
77
|
+
}
|
|
78
|
+
onDragLeave(event) {
|
|
79
|
+
event.preventDefault();
|
|
80
|
+
event.stopPropagation();
|
|
81
|
+
this.isDragOver = false;
|
|
82
|
+
}
|
|
83
|
+
onDrop(event) {
|
|
84
|
+
event.preventDefault();
|
|
85
|
+
event.stopPropagation();
|
|
86
|
+
this.isDragOver = false;
|
|
87
|
+
const plainData = event.dataTransfer?.getData('text/plain') || '';
|
|
88
|
+
const moduleType = event.dataTransfer?.getData('moduleType');
|
|
89
|
+
console.log('Module drop - plainData:', plainData, 'moduleType:', moduleType);
|
|
90
|
+
// Check if this is a module drop
|
|
91
|
+
if (moduleType || plainData.startsWith('module:')) {
|
|
92
|
+
const type = moduleType || plainData.replace('module:', '');
|
|
93
|
+
// Adding new module from toolbar
|
|
94
|
+
const module = this.moduleManager.createModule(type);
|
|
95
|
+
if (module) {
|
|
96
|
+
this.node.data.modules.push(module);
|
|
97
|
+
this.nodeUpdated.emit(this.node);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
else if (this.draggedModule) {
|
|
101
|
+
// Reordering modules
|
|
102
|
+
this.reorderModule(event);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
onModuleDragStart(event, module) {
|
|
106
|
+
this.draggedModule = module;
|
|
107
|
+
event.dataTransfer.effectAllowed = 'move';
|
|
108
|
+
event.dataTransfer.setData('moduleReorder', module.id);
|
|
109
|
+
event.target.classList.add('dragging');
|
|
110
|
+
}
|
|
111
|
+
onModuleDragEnd(event) {
|
|
112
|
+
this.draggedModule = null;
|
|
113
|
+
event.target.classList.remove('dragging');
|
|
114
|
+
}
|
|
115
|
+
reorderModule(dropEvent) {
|
|
116
|
+
if (!this.draggedModule)
|
|
117
|
+
return;
|
|
118
|
+
const modules = this.node.data.modules;
|
|
119
|
+
const draggedIndex = modules.findIndex((m) => m.id === this.draggedModule.id);
|
|
120
|
+
if (draggedIndex === -1)
|
|
121
|
+
return;
|
|
122
|
+
const [draggedItem] = modules.splice(draggedIndex, 1);
|
|
123
|
+
// Find drop position
|
|
124
|
+
const dropY = dropEvent.clientY;
|
|
125
|
+
const moduleElements = Array.from(dropEvent.currentTarget.querySelectorAll('.node-module'));
|
|
126
|
+
let insertIndex = modules.length;
|
|
127
|
+
for (let i = 0; i < moduleElements.length; i++) {
|
|
128
|
+
const rect = moduleElements[i].getBoundingClientRect();
|
|
129
|
+
if (dropY < rect.top + rect.height / 2) {
|
|
130
|
+
insertIndex = i;
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
modules.splice(insertIndex, 0, draggedItem);
|
|
135
|
+
this.nodeUpdated.emit(this.node);
|
|
136
|
+
}
|
|
137
|
+
onConfigureModule(event, module) {
|
|
138
|
+
event.stopPropagation();
|
|
139
|
+
this.moduleManager.selectModule(module);
|
|
140
|
+
}
|
|
141
|
+
onDeleteModule(event, module) {
|
|
142
|
+
event.stopPropagation();
|
|
143
|
+
this.node.data.modules = this.moduleManager.deleteModule(this.node.data.modules, module.id);
|
|
144
|
+
this.nodeUpdated.emit(this.node);
|
|
145
|
+
}
|
|
146
|
+
onSocketMouseDown(event, type) {
|
|
147
|
+
event.stopPropagation();
|
|
148
|
+
event.preventDefault();
|
|
149
|
+
this.socketMouseDown.emit({ event, node: this.node, type });
|
|
150
|
+
}
|
|
151
|
+
onSocketMouseEnter(event, type) {
|
|
152
|
+
this.socketMouseEnter.emit({ event, node: this.node, type });
|
|
153
|
+
}
|
|
154
|
+
onSocketMouseLeave(event) {
|
|
155
|
+
this.socketMouseLeave.emit(event);
|
|
156
|
+
}
|
|
157
|
+
static { this.ɵfac = function CustomNodeViewComponent_Factory(t) { return new (t || CustomNodeViewComponent)(i0.ɵɵdirectiveInject(i1.ModuleManagerService)); }; }
|
|
158
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CustomNodeViewComponent, selectors: [["app-custom-node"]], inputs: { node: "node", selected: "selected" }, outputs: { nodeSelected: "nodeSelected", nodeDeleted: "nodeDeleted", nodeUpdated: "nodeUpdated", socketMouseDown: "socketMouseDown", socketMouseEnter: "socketMouseEnter", socketMouseLeave: "socketMouseLeave" }, standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 14, vars: 7, consts: [[1, "custom-node", 3, "click"], [1, "node-header"], [1, "node-title"], [1, "node-actions"], ["title", "Edit Node", 1, "icon-button", 3, "click"], [1, "fas", "fa-pencil-alt"], ["title", "Delete Node", 1, "icon-button", "danger", 3, "click"], [1, "fas", "fa-times"], [1, "node-modules", 3, "dragover", "dragleave", "drop"], ["class", "empty-modules", 4, "ngIf"], ["class", "node-module", "draggable", "true", 3, "dragstart", "dragend", 4, "ngFor", "ngForOf"], [1, "socket", "input", 3, "mousedown", "mouseenter", "mouseleave"], [1, "socket", "output", 3, "mousedown", "mouseenter", "mouseleave"], [1, "empty-modules"], ["draggable", "true", 1, "node-module", 3, "dragstart", "dragend"], [1, "module-info"], [1, "fas", 3, "ngClass"], [1, "module-actions"], ["title", "Configure", 1, "icon-button", "small", 3, "click"], [1, "fas", "fa-cog"], ["title", "Delete", 1, "icon-button", "small", "danger", 3, "click"], [1, "fas", "fa-trash"]], template: function CustomNodeViewComponent_Template(rf, ctx) { if (rf & 1) {
|
|
159
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
160
|
+
i0.ɵɵlistener("click", function CustomNodeViewComponent_Template_div_click_0_listener() { return ctx.onNodeClick(); });
|
|
161
|
+
i0.ɵɵelementStart(1, "div", 1)(2, "h4", 2);
|
|
162
|
+
i0.ɵɵtext(3);
|
|
163
|
+
i0.ɵɵelementEnd();
|
|
164
|
+
i0.ɵɵelementStart(4, "div", 3)(5, "button", 4);
|
|
165
|
+
i0.ɵɵlistener("click", function CustomNodeViewComponent_Template_button_click_5_listener($event) { return ctx.onEditName($event); });
|
|
166
|
+
i0.ɵɵelement(6, "i", 5);
|
|
167
|
+
i0.ɵɵelementEnd();
|
|
168
|
+
i0.ɵɵelementStart(7, "button", 6);
|
|
169
|
+
i0.ɵɵlistener("click", function CustomNodeViewComponent_Template_button_click_7_listener($event) { return ctx.onDelete($event); });
|
|
170
|
+
i0.ɵɵelement(8, "i", 7);
|
|
171
|
+
i0.ɵɵelementEnd()()();
|
|
172
|
+
i0.ɵɵelementStart(9, "div", 8);
|
|
173
|
+
i0.ɵɵlistener("dragover", function CustomNodeViewComponent_Template_div_dragover_9_listener($event) { return ctx.onDragOver($event); })("dragleave", function CustomNodeViewComponent_Template_div_dragleave_9_listener($event) { return ctx.onDragLeave($event); })("drop", function CustomNodeViewComponent_Template_div_drop_9_listener($event) { return ctx.onDrop($event); });
|
|
174
|
+
i0.ɵɵtemplate(10, CustomNodeViewComponent_div_10_Template, 2, 0, "div", 9)(11, CustomNodeViewComponent_div_11_Template, 10, 5, "div", 10);
|
|
175
|
+
i0.ɵɵelementEnd();
|
|
176
|
+
i0.ɵɵelementStart(12, "div", 11);
|
|
177
|
+
i0.ɵɵlistener("mousedown", function CustomNodeViewComponent_Template_div_mousedown_12_listener($event) { return ctx.onSocketMouseDown($event, "input"); })("mouseenter", function CustomNodeViewComponent_Template_div_mouseenter_12_listener($event) { return ctx.onSocketMouseEnter($event, "input"); })("mouseleave", function CustomNodeViewComponent_Template_div_mouseleave_12_listener($event) { return ctx.onSocketMouseLeave($event); });
|
|
178
|
+
i0.ɵɵelementEnd();
|
|
179
|
+
i0.ɵɵelementStart(13, "div", 12);
|
|
180
|
+
i0.ɵɵlistener("mousedown", function CustomNodeViewComponent_Template_div_mousedown_13_listener($event) { return ctx.onSocketMouseDown($event, "output"); })("mouseenter", function CustomNodeViewComponent_Template_div_mouseenter_13_listener($event) { return ctx.onSocketMouseEnter($event, "output"); })("mouseleave", function CustomNodeViewComponent_Template_div_mouseleave_13_listener($event) { return ctx.onSocketMouseLeave($event); });
|
|
181
|
+
i0.ɵɵelementEnd()();
|
|
182
|
+
} if (rf & 2) {
|
|
183
|
+
i0.ɵɵclassProp("selected", ctx.selected);
|
|
184
|
+
i0.ɵɵadvance(3);
|
|
185
|
+
i0.ɵɵtextInterpolate(ctx.node.data.name);
|
|
186
|
+
i0.ɵɵadvance(6);
|
|
187
|
+
i0.ɵɵclassProp("drag-over", ctx.isDragOver);
|
|
188
|
+
i0.ɵɵadvance();
|
|
189
|
+
i0.ɵɵproperty("ngIf", ctx.node.data.modules.length === 0);
|
|
190
|
+
i0.ɵɵadvance();
|
|
191
|
+
i0.ɵɵproperty("ngForOf", ctx.node.data.modules);
|
|
192
|
+
} }, dependencies: [CommonModule, i2.NgClass, i2.NgForOf, i2.NgIf], styles: [".custom-node[_ngcontent-%COMP%] {\n min-width: 280px;\n position: relative;\n cursor: move;\n background: white;\n border: 2px solid #dee2e6;\n border-radius: 8px;\n transition: all 0.2s ease;\n box-shadow: 0 1px 3px rgba(0,0,0,0.1);\n }\n\n .custom-node[_ngcontent-%COMP%]:hover {\n box-shadow: 0 4px 6px rgba(0,0,0,0.1);\n }\n\n .custom-node.selected[_ngcontent-%COMP%] {\n border-color: #3b82f6;\n box-shadow: 0 0 0 3px rgba(59,130,246,0.25);\n }\n\n .node-header[_ngcontent-%COMP%] {\n padding: 1rem;\n background-color: #f8f9fa;\n border-bottom: 1px solid #dee2e6;\n border-radius: 6px 6px 0 0;\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .node-title[_ngcontent-%COMP%] {\n font-weight: 600;\n font-size: 1rem;\n margin: 0;\n }\n\n .node-actions[_ngcontent-%COMP%] {\n display: flex;\n gap: 0.25rem;\n }\n\n .node-modules[_ngcontent-%COMP%] {\n padding: 0.75rem;\n min-height: 100px;\n position: relative;\n }\n\n .node-modules.drag-over[_ngcontent-%COMP%] {\n background-color: #e7f3ff;\n border: 2px dashed #007bff;\n border-radius: 4px;\n }\n\n .empty-modules[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100px;\n color: #adb5bd;\n font-size: 0.875rem;\n text-align: center;\n }\n\n .node-module[_ngcontent-%COMP%] {\n background-color: #f8f9fa;\n border: 1px solid #dee2e6;\n border-radius: 6px;\n padding: 0.75rem;\n margin-bottom: 0.5rem;\n display: flex;\n align-items: center;\n justify-content: space-between;\n transition: all 0.2s ease;\n cursor: move;\n }\n\n .node-module[_ngcontent-%COMP%]:hover {\n background-color: #e9ecef;\n border-color: #adb5bd;\n }\n\n .node-module.dragging[_ngcontent-%COMP%] {\n opacity: 0.5;\n }\n\n .module-info[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n }\n\n .module-actions[_ngcontent-%COMP%] {\n display: flex;\n gap: 0.25rem;\n }\n\n .socket[_ngcontent-%COMP%] {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n width: 18px;\n height: 18px;\n border: 2px solid #ffffff;\n border-radius: 50%;\n background: #007bff;\n z-index: 10;\n box-shadow: 0 2px 4px rgba(0,0,0,0.2);\n cursor: crosshair;\n transition: all 0.2s ease;\n }\n\n .socket.input[_ngcontent-%COMP%] {\n left: -9px;\n }\n\n .socket.output[_ngcontent-%COMP%] {\n right: -9px;\n }\n\n .socket[_ngcontent-%COMP%]:hover {\n background: #0056b3;\n transform: translateY(-50%) scale(1.2);\n box-shadow: 0 3px 6px rgba(0,0,0,0.3);\n }\n \n .socket.connecting[_ngcontent-%COMP%] {\n background: #28a745;\n animation: _ngcontent-%COMP%_pulse 1s infinite;\n }\n \n @keyframes _ngcontent-%COMP%_pulse {\n 0% { transform: translateY(-50%) scale(1); }\n 50% { transform: translateY(-50%) scale(1.3); }\n 100% { transform: translateY(-50%) scale(1); }\n }\n\n .icon-button[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n border: none;\n border-radius: 50%;\n background: transparent;\n color: #6c757d;\n cursor: pointer;\n transition: all 0.2s ease;\n }\n\n .icon-button[_ngcontent-%COMP%]:hover {\n background: #f0f0f0;\n color: #495057;\n }\n\n .icon-button.small[_ngcontent-%COMP%] {\n width: 24px;\n height: 24px;\n font-size: 0.75rem;\n }\n\n .icon-button.danger[_ngcontent-%COMP%] {\n color: #dc3545;\n }\n\n .icon-button.danger[_ngcontent-%COMP%]:hover {\n background: #fee;\n color: #b02a37;\n }"] }); }
|
|
193
|
+
}
|
|
194
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CustomNodeViewComponent, [{
|
|
195
|
+
type: Component,
|
|
196
|
+
args: [{ selector: 'app-custom-node', standalone: true, imports: [CommonModule], template: `
|
|
197
|
+
<div class="custom-node" [class.selected]="selected" (click)="onNodeClick()">
|
|
198
|
+
<div class="node-header">
|
|
199
|
+
<h4 class="node-title">{{ node.data.name }}</h4>
|
|
200
|
+
<div class="node-actions">
|
|
201
|
+
<button
|
|
202
|
+
class="icon-button"
|
|
203
|
+
(click)="onEditName($event)"
|
|
204
|
+
title="Edit Node">
|
|
205
|
+
<i class="fas fa-pencil-alt"></i>
|
|
206
|
+
</button>
|
|
207
|
+
<button
|
|
208
|
+
class="icon-button danger"
|
|
209
|
+
(click)="onDelete($event)"
|
|
210
|
+
title="Delete Node">
|
|
211
|
+
<i class="fas fa-times"></i>
|
|
212
|
+
</button>
|
|
213
|
+
</div>
|
|
214
|
+
</div>
|
|
215
|
+
|
|
216
|
+
<div class="node-modules"
|
|
217
|
+
[class.drag-over]="isDragOver"
|
|
218
|
+
(dragover)="onDragOver($event)"
|
|
219
|
+
(dragleave)="onDragLeave($event)"
|
|
220
|
+
(drop)="onDrop($event)">
|
|
221
|
+
<div *ngIf="node.data.modules.length === 0" class="empty-modules">
|
|
222
|
+
Drag modules here
|
|
223
|
+
</div>
|
|
224
|
+
|
|
225
|
+
<div *ngFor="let module of node.data.modules"
|
|
226
|
+
class="node-module"
|
|
227
|
+
[attr.data-module-id]="module.id"
|
|
228
|
+
draggable="true"
|
|
229
|
+
(dragstart)="onModuleDragStart($event, module)"
|
|
230
|
+
(dragend)="onModuleDragEnd($event)">
|
|
231
|
+
<div class="module-info">
|
|
232
|
+
<i class="fas" [ngClass]="module.icon" [style.color]="module.color"></i>
|
|
233
|
+
<span>{{ module.name }}</span>
|
|
234
|
+
</div>
|
|
235
|
+
<div class="module-actions">
|
|
236
|
+
<button
|
|
237
|
+
class="icon-button small"
|
|
238
|
+
(click)="onConfigureModule($event, module)"
|
|
239
|
+
title="Configure">
|
|
240
|
+
<i class="fas fa-cog"></i>
|
|
241
|
+
</button>
|
|
242
|
+
<button
|
|
243
|
+
class="icon-button small danger"
|
|
244
|
+
(click)="onDeleteModule($event, module)"
|
|
245
|
+
title="Delete">
|
|
246
|
+
<i class="fas fa-trash"></i>
|
|
247
|
+
</button>
|
|
248
|
+
</div>
|
|
249
|
+
</div>
|
|
250
|
+
</div>
|
|
251
|
+
|
|
252
|
+
<div class="socket input"
|
|
253
|
+
(mousedown)="onSocketMouseDown($event, 'input')"
|
|
254
|
+
(mouseenter)="onSocketMouseEnter($event, 'input')"
|
|
255
|
+
(mouseleave)="onSocketMouseLeave($event)">
|
|
256
|
+
</div>
|
|
257
|
+
<div class="socket output"
|
|
258
|
+
(mousedown)="onSocketMouseDown($event, 'output')"
|
|
259
|
+
(mouseenter)="onSocketMouseEnter($event, 'output')"
|
|
260
|
+
(mouseleave)="onSocketMouseLeave($event)">
|
|
261
|
+
</div>
|
|
262
|
+
</div>
|
|
263
|
+
`, styles: ["\n .custom-node {\n min-width: 280px;\n position: relative;\n cursor: move;\n background: white;\n border: 2px solid #dee2e6;\n border-radius: 8px;\n transition: all 0.2s ease;\n box-shadow: 0 1px 3px rgba(0,0,0,0.1);\n }\n\n .custom-node:hover {\n box-shadow: 0 4px 6px rgba(0,0,0,0.1);\n }\n\n .custom-node.selected {\n border-color: #3b82f6;\n box-shadow: 0 0 0 3px rgba(59,130,246,0.25);\n }\n\n .node-header {\n padding: 1rem;\n background-color: #f8f9fa;\n border-bottom: 1px solid #dee2e6;\n border-radius: 6px 6px 0 0;\n display: flex;\n justify-content: space-between;\n align-items: center;\n }\n\n .node-title {\n font-weight: 600;\n font-size: 1rem;\n margin: 0;\n }\n\n .node-actions {\n display: flex;\n gap: 0.25rem;\n }\n\n .node-modules {\n padding: 0.75rem;\n min-height: 100px;\n position: relative;\n }\n\n .node-modules.drag-over {\n background-color: #e7f3ff;\n border: 2px dashed #007bff;\n border-radius: 4px;\n }\n\n .empty-modules {\n display: flex;\n align-items: center;\n justify-content: center;\n height: 100px;\n color: #adb5bd;\n font-size: 0.875rem;\n text-align: center;\n }\n\n .node-module {\n background-color: #f8f9fa;\n border: 1px solid #dee2e6;\n border-radius: 6px;\n padding: 0.75rem;\n margin-bottom: 0.5rem;\n display: flex;\n align-items: center;\n justify-content: space-between;\n transition: all 0.2s ease;\n cursor: move;\n }\n\n .node-module:hover {\n background-color: #e9ecef;\n border-color: #adb5bd;\n }\n\n .node-module.dragging {\n opacity: 0.5;\n }\n\n .module-info {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n }\n\n .module-actions {\n display: flex;\n gap: 0.25rem;\n }\n\n .socket {\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n width: 18px;\n height: 18px;\n border: 2px solid #ffffff;\n border-radius: 50%;\n background: #007bff;\n z-index: 10;\n box-shadow: 0 2px 4px rgba(0,0,0,0.2);\n cursor: crosshair;\n transition: all 0.2s ease;\n }\n\n .socket.input {\n left: -9px;\n }\n\n .socket.output {\n right: -9px;\n }\n\n .socket:hover {\n background: #0056b3;\n transform: translateY(-50%) scale(1.2);\n box-shadow: 0 3px 6px rgba(0,0,0,0.3);\n }\n \n .socket.connecting {\n background: #28a745;\n animation: pulse 1s infinite;\n }\n \n @keyframes pulse {\n 0% { transform: translateY(-50%) scale(1); }\n 50% { transform: translateY(-50%) scale(1.3); }\n 100% { transform: translateY(-50%) scale(1); }\n }\n\n .icon-button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n border: none;\n border-radius: 50%;\n background: transparent;\n color: #6c757d;\n cursor: pointer;\n transition: all 0.2s ease;\n }\n\n .icon-button:hover {\n background: #f0f0f0;\n color: #495057;\n }\n\n .icon-button.small {\n width: 24px;\n height: 24px;\n font-size: 0.75rem;\n }\n\n .icon-button.danger {\n color: #dc3545;\n }\n\n .icon-button.danger:hover {\n background: #fee;\n color: #b02a37;\n }\n\n "] }]
|
|
264
|
+
}], () => [{ type: i1.ModuleManagerService }], { node: [{
|
|
265
|
+
type: Input
|
|
266
|
+
}], selected: [{
|
|
267
|
+
type: Input
|
|
268
|
+
}], nodeSelected: [{
|
|
269
|
+
type: Output
|
|
270
|
+
}], nodeDeleted: [{
|
|
271
|
+
type: Output
|
|
272
|
+
}], nodeUpdated: [{
|
|
273
|
+
type: Output
|
|
274
|
+
}], socketMouseDown: [{
|
|
275
|
+
type: Output
|
|
276
|
+
}], socketMouseEnter: [{
|
|
277
|
+
type: Output
|
|
278
|
+
}], socketMouseLeave: [{
|
|
279
|
+
type: Output
|
|
280
|
+
}] }); })();
|
|
281
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CustomNodeViewComponent, { className: "CustomNodeViewComponent", filePath: "src/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/custom-node/custom-node.component.ts", lineNumber: 251 }); })();
|
|
282
|
+
//# sourceMappingURL=custom-node.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-node.component.js","sourceRoot":"","sources":["../../../../../../../../src/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/custom-node/custom-node.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAU,MAAM,eAAe,CAAC;AAG/E,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;;;;;IA+BvC,+BAAkE;IAChE,mCACF;IAAA,iBAAM;;;;IAEN,+BAKyC;IAApC,AADA,2NAAa,2CAAiC,KAAC,8KACpC,8BAAuB,KAAC;IACtC,+BAAyB;IACvB,wBAAwE;IACxE,4BAAM;IAAA,YAAiB;IACzB,AADyB,iBAAO,EAC1B;IAEJ,AADF,+BAA4B,iBAIN;IADlB,sNAAS,2CAAiC,KAAC;IAE3C,wBAA0B;IAC5B,iBAAS;IACT,kCAGiB;IADf,sNAAS,wCAA8B,KAAC;IAExC,wBAA4B;IAGlC,AADE,AADE,iBAAS,EACL,EACF;;;;IAjBqC,eAA4B;IAA5B,wCAA4B;IAApD,wCAAuB;IAChC,eAAiB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9BxC,YAAY;;iFAkPX,uBAAuB;cArPnC,SAAS;2BACE,iBAAiB,cACf,IAAI,WACP,CAAC,YAAY,CAAC,YACb;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmET;qDA+KQ,IAAI;kBAAZ,KAAK;YACG,QAAQ;kBAAhB,KAAK;YACI,YAAY;kBAArB,MAAM;YACG,WAAW;kBAApB,MAAM;YACG,WAAW;kBAApB,MAAM;YACG,eAAe;kBAAxB,MAAM;YACG,gBAAgB;kBAAzB,MAAM;YACG,gBAAgB;kBAAzB,MAAM;;kFARI,uBAAuB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { FlowExecutorService, ExecutionStatus, ExecutionLog } from '../../services/flow-executor.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ExecutionPanelComponent implements OnInit, OnDestroy {
|
|
5
|
+
private flowExecutor;
|
|
6
|
+
private destroy$;
|
|
7
|
+
executionStatus: ExecutionStatus;
|
|
8
|
+
executionLogs: ExecutionLog[];
|
|
9
|
+
currentStepId: number | null;
|
|
10
|
+
panelHeight: number;
|
|
11
|
+
minHeight: number;
|
|
12
|
+
maxHeight: number;
|
|
13
|
+
isResizing: boolean;
|
|
14
|
+
private startY;
|
|
15
|
+
private startHeight;
|
|
16
|
+
isPanelClosed: boolean;
|
|
17
|
+
constructor(flowExecutor: FlowExecutorService);
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
ngOnDestroy(): void;
|
|
20
|
+
onPause(): void;
|
|
21
|
+
onResume(): void;
|
|
22
|
+
onStop(): void;
|
|
23
|
+
clearLogs(): void;
|
|
24
|
+
closePanel(): void;
|
|
25
|
+
getLogIcon(type: ExecutionLog['type']): string;
|
|
26
|
+
getLogClass(type: ExecutionLog['type']): string;
|
|
27
|
+
formatTimestamp(date: Date): string;
|
|
28
|
+
private scrollToBottom;
|
|
29
|
+
onResizeStart(event: MouseEvent): void;
|
|
30
|
+
private onResizeMove;
|
|
31
|
+
private onResizeEnd;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExecutionPanelComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExecutionPanelComponent, "app-execution-panel", never, {}, {}, never, never, true, never>;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=execution-panel.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-panel.component.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/execution-panel/execution-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAG7D,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;;AAE1G,qBAOa,uBAAwB,YAAW,MAAM,EAAE,SAAS;IAkBnD,OAAO,CAAC,YAAY;IAjBhC,OAAO,CAAC,QAAQ,CAAuB;IAEvC,eAAe,EAAE,eAAe,CAAU;IAC1C,aAAa,EAAE,YAAY,EAAE,CAAM;IACnC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAQ;IAGpC,WAAW,SAAO;IAClB,SAAS,SAAO;IAChB,SAAS,SAAO;IAChB,UAAU,UAAS;IACnB,OAAO,CAAC,MAAM,CAAK;IACnB,OAAO,CAAC,WAAW,CAAK;IAGxB,aAAa,UAAS;gBAEF,YAAY,EAAE,mBAAmB;IAErD,QAAQ;IA6BR,WAAW;IAQX,OAAO;IAIP,QAAQ;IAIR,MAAM;IAIN,SAAS;IAIT,UAAU;IAIV,UAAU,CAAC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM;IAU9C,WAAW,CAAC,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,GAAG,MAAM;IAU/C,eAAe,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAUnC,OAAO,CAAC,cAAc;IAQtB,aAAa,CAAC,KAAK,EAAE,UAAU;IAiB/B,OAAO,CAAC,YAAY,CASnB;IAED,OAAO,CAAC,WAAW,CAQlB;yCAvJU,uBAAuB;2CAAvB,uBAAuB;CAwJnC"}
|