@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 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-editor.component.js","sourceRoot":"","sources":["../../../../../../../../src/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/prompt-editor/prompt-editor.component.ts","../../../../../../../../src/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/prompt-editor/prompt-editor.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;;;;;;;IC+BjC,kCAAwF;IAA1D,kOAAS,2BAAiB,KAAC;IACvD,wBAA4B;IAC9B,iBAAS;;;IA+BH,kCAAgE;IAC9D,YACF;IAAA,iBAAS;;;IAFkC,qCAAoB;IAC7D,cACF;IADE,8CACF;;;;IAkBA,AADF,AADF,+BAA0D,cAC/B,YAChB;IAAA,mBAAG;IAAA,iBAAQ;IAClB,iCAGqB;IADnB,4TAA0B;IAE9B,AAJE,iBAGqB,EACjB;IAEJ,AADF,+BAAyB,YAChB;IAAA,mBAAG;IAAA,iBAAQ;IAClB,iCAGqB;IADnB,4TAA0B;IAE9B,AAJE,iBAGqB,EACjB;IAEJ,AADF,+BAAyB,aAChB;IAAA,qBAAI;IAAA,iBAAQ;IACnB,kCAGqB;IADnB,+TAA2B;IAGjC,AADE,AAJE,iBAGqB,EACjB,EACF;;;IAjBA,eAA0B;IAA1B,+CAA0B;IAO1B,eAA0B;IAA1B,+CAA0B;IAO1B,eAA2B;IAA3B,gDAA2B;;;;IAO/B,AADF,+BAAoF,YAC3E;IAAA,oBAAI;IAAA,iBAAQ;IACnB,iCAKqB;IAHnB,8TAA2B;IAI/B,AANE,iBAKqB,EACjB;;;IAJF,eAA2B;IAA3B,gDAA2B;;;;IAWzB,AADF,+BAAgF,gBAKxD;IAFpB,gTAA0B;IAF5B,iBAIsB;IACtB,iCAIsB;IAFpB,gTAA0B;IAF5B,iBAIsB;IACtB,kCAAsE;IAA1C,uQAAS,6CA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B;YAC3B,2EAA8E;YAkKpF,AADE,AADE,iBAAM,EACF,EACF;YAGJ,AADF,gCAA2B,kBAC6B;YAArB,mGAAS,cAAU,IAAC;YAAC,uBAAM;YAAA,iBAAS;YACrE,mCAAsD;YAAvB,mGAAS,gBAAY,IAAC;YACnD,yBAA2B;YAAC,8BAC9B;YAEJ,AADE,AADE,iBAAS,EACL,EACF;;YApMA,eACF;YADE,gFACF;YAWI,eAAwB;YAAxB,8CAAwB;YAcE,eAAe;YAAf,wCAAe;4BDrBrC,YAAY,qDAAE,WAAW;;iFAIxB,qBAAqB;cAPjC,SAAS;2BACE,mBAAmB,cACjB,IAAI,WACP,CAAC,YAAY,EAAE,WAAW,CAAC;qDAK3B,QAAQ;kBAAhB,KAAK;YACG,KAAK;kBAAb,KAAK;YACI,IAAI;kBAAb,MAAM;YACG,MAAM;kBAAf,MAAM;;kFAJI,qBAAqB"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { OnInit, OnDestroy, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { FlowEditorService } from '../../services/flow-editor.service';
|
|
3
|
+
import { Step, StepOption, StepProperty } from '../../models/step.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class PropertiesPanelComponent implements OnInit, OnDestroy {
|
|
6
|
+
private flowEditor;
|
|
7
|
+
private cdr;
|
|
8
|
+
private destroy$;
|
|
9
|
+
selectedStep: Step | null;
|
|
10
|
+
availableOptions: StepOption[];
|
|
11
|
+
constructor(flowEditor: FlowEditorService, cdr: ChangeDetectorRef);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
ngOnDestroy(): void;
|
|
14
|
+
onStepNameChange(newName: string): void;
|
|
15
|
+
onStepOptionChange(value: string): void;
|
|
16
|
+
getSelectedOption(): StepOption | undefined;
|
|
17
|
+
getOptionProperties(): StepProperty[];
|
|
18
|
+
getPropertyValue(key: string): any;
|
|
19
|
+
onPropertyChange(key: string, value: any): void;
|
|
20
|
+
getAvailableOptions(): StepOption[];
|
|
21
|
+
private getStepCustomPrompts;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PropertiesPanelComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PropertiesPanelComponent, "app-properties-panel", never, {}, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=properties-panel.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"properties-panel.component.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/properties-panel/properties-panel.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAIhF,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AACvE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAgB,MAAM,yBAAyB,CAAC;;AAEvF,qBAkGa,wBAAyB,YAAW,MAAM,EAAE,SAAS;IAO9D,OAAO,CAAC,UAAU;IAClB,OAAO,CAAC,GAAG;IAPb,OAAO,CAAC,QAAQ,CAAuB;IAEvC,YAAY,EAAE,IAAI,GAAG,IAAI,CAAQ;IACjC,gBAAgB,EAAE,UAAU,EAAE,CAAM;gBAG1B,UAAU,EAAE,iBAAiB,EAC7B,GAAG,EAAE,iBAAiB;IAGhC,QAAQ;IA2BR,WAAW;IAKX,gBAAgB,CAAC,OAAO,EAAE,MAAM;IAOhC,kBAAkB,CAAC,KAAK,EAAE,MAAM;IA4ChC,iBAAiB,IAAI,UAAU,GAAG,SAAS;IAO3C,mBAAmB,IAAI,YAAY,EAAE;IAKrC,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG;IAOlC,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG;IAWxC,mBAAmB,IAAI,UAAU,EAAE;IAsCnC,OAAO,CAAC,oBAAoB;yCAlKjB,wBAAwB;2CAAxB,wBAAwB;CAyMpC"}
|
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormsModule } from '@angular/forms';
|
|
4
|
+
import { Subject, takeUntil } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "../../services/flow-editor.service";
|
|
7
|
+
import * as i2 from "@angular/common";
|
|
8
|
+
import * as i3 from "@angular/forms";
|
|
9
|
+
function PropertiesPanelComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
10
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
11
|
+
i0.ɵɵelement(1, "i", 8);
|
|
12
|
+
i0.ɵɵelementStart(2, "p");
|
|
13
|
+
i0.ɵɵtext(3, "Select a step to view its properties");
|
|
14
|
+
i0.ɵɵelementEnd()();
|
|
15
|
+
} }
|
|
16
|
+
function PropertiesPanelComponent_div_7_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
17
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
18
|
+
i0.ɵɵelementStart(0, "div", 9)(1, "label", 27);
|
|
19
|
+
i0.ɵɵtext(2, " Prompt Display Name ");
|
|
20
|
+
i0.ɵɵelementStart(3, "span", 28);
|
|
21
|
+
i0.ɵɵtext(4, "Editable");
|
|
22
|
+
i0.ɵɵelementEnd()();
|
|
23
|
+
i0.ɵɵelementStart(5, "div", 29)(6, "input", 30);
|
|
24
|
+
i0.ɵɵtwoWayListener("ngModelChange", function PropertiesPanelComponent_div_7_div_5_Template_input_ngModelChange_6_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.selectedStep.name, $event) || (ctx_r1.selectedStep.name = $event); return i0.ɵɵresetView($event); });
|
|
25
|
+
i0.ɵɵlistener("blur", function PropertiesPanelComponent_div_7_div_5_Template_input_blur_6_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onStepNameChange(ctx_r1.selectedStep.name)); })("keyup.enter", function PropertiesPanelComponent_div_7_div_5_Template_input_keyup_enter_6_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onStepNameChange(ctx_r1.selectedStep.name)); });
|
|
26
|
+
i0.ɵɵelementEnd()()();
|
|
27
|
+
} if (rf & 2) {
|
|
28
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
29
|
+
i0.ɵɵadvance(6);
|
|
30
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.selectedStep.name);
|
|
31
|
+
} }
|
|
32
|
+
function PropertiesPanelComponent_div_7_option_22_Template(rf, ctx) { if (rf & 1) {
|
|
33
|
+
i0.ɵɵelementStart(0, "option", 31);
|
|
34
|
+
i0.ɵɵtext(1);
|
|
35
|
+
i0.ɵɵelementEnd();
|
|
36
|
+
} if (rf & 2) {
|
|
37
|
+
const option_r4 = ctx.$implicit;
|
|
38
|
+
const i_r5 = ctx.index;
|
|
39
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
40
|
+
i0.ɵɵclassProp("new-prompt-option", option_r4.value === "new_custom_prompt")("custom-prompt-option", option_r4.value.startsWith("custom_"))("separator-after", i_r5 === 0 && ctx_r1.availableOptions.length > 1);
|
|
41
|
+
i0.ɵɵproperty("value", option_r4.value);
|
|
42
|
+
i0.ɵɵadvance();
|
|
43
|
+
i0.ɵɵtextInterpolate1(" ", option_r4.value === "new_custom_prompt" ? "\u2795 " + option_r4.name : option_r4.name, " ");
|
|
44
|
+
} }
|
|
45
|
+
function PropertiesPanelComponent_div_7_div_24_div_5_input_3_Template(rf, ctx) { if (rf & 1) {
|
|
46
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
47
|
+
i0.ɵɵelementStart(0, "input", 41);
|
|
48
|
+
i0.ɵɵlistener("input", function PropertiesPanelComponent_div_7_div_24_div_5_input_3_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r6); const property_r7 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onPropertyChange(property_r7.key, $event.target.value)); });
|
|
49
|
+
i0.ɵɵelementEnd();
|
|
50
|
+
} if (rf & 2) {
|
|
51
|
+
const property_r7 = i0.ɵɵnextContext().$implicit;
|
|
52
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
53
|
+
i0.ɵɵproperty("id", "prop-" + property_r7.key)("placeholder", property_r7.placeholder || "")("value", ctx_r1.getPropertyValue(property_r7.key));
|
|
54
|
+
} }
|
|
55
|
+
function PropertiesPanelComponent_div_7_div_24_div_5_input_4_Template(rf, ctx) { if (rf & 1) {
|
|
56
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
57
|
+
i0.ɵɵelementStart(0, "input", 42);
|
|
58
|
+
i0.ɵɵlistener("input", function PropertiesPanelComponent_div_7_div_24_div_5_input_4_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r8); const property_r7 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onPropertyChange(property_r7.key, +$event.target.value)); });
|
|
59
|
+
i0.ɵɵelementEnd();
|
|
60
|
+
} if (rf & 2) {
|
|
61
|
+
const property_r7 = i0.ɵɵnextContext().$implicit;
|
|
62
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
63
|
+
i0.ɵɵproperty("id", "prop-" + property_r7.key)("min", property_r7.min)("max", property_r7.max)("step", property_r7.step || 1)("placeholder", property_r7.placeholder || "")("value", ctx_r1.getPropertyValue(property_r7.key));
|
|
64
|
+
} }
|
|
65
|
+
function PropertiesPanelComponent_div_7_div_24_div_5_select_5_option_1_Template(rf, ctx) { if (rf & 1) {
|
|
66
|
+
i0.ɵɵelementStart(0, "option", 31);
|
|
67
|
+
i0.ɵɵtext(1);
|
|
68
|
+
i0.ɵɵelementEnd();
|
|
69
|
+
} if (rf & 2) {
|
|
70
|
+
const option_r10 = ctx.$implicit;
|
|
71
|
+
i0.ɵɵproperty("value", option_r10.value);
|
|
72
|
+
i0.ɵɵadvance();
|
|
73
|
+
i0.ɵɵtextInterpolate1(" ", option_r10.label, " ");
|
|
74
|
+
} }
|
|
75
|
+
function PropertiesPanelComponent_div_7_div_24_div_5_select_5_Template(rf, ctx) { if (rf & 1) {
|
|
76
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
77
|
+
i0.ɵɵelementStart(0, "select", 43);
|
|
78
|
+
i0.ɵɵlistener("change", function PropertiesPanelComponent_div_7_div_24_div_5_select_5_Template_select_change_0_listener($event) { i0.ɵɵrestoreView(_r9); const property_r7 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onPropertyChange(property_r7.key, $event.target.value)); });
|
|
79
|
+
i0.ɵɵtemplate(1, PropertiesPanelComponent_div_7_div_24_div_5_select_5_option_1_Template, 2, 2, "option", 44);
|
|
80
|
+
i0.ɵɵelementEnd();
|
|
81
|
+
} if (rf & 2) {
|
|
82
|
+
const property_r7 = i0.ɵɵnextContext().$implicit;
|
|
83
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
84
|
+
i0.ɵɵproperty("id", "prop-" + property_r7.key)("value", ctx_r1.getPropertyValue(property_r7.key));
|
|
85
|
+
i0.ɵɵadvance();
|
|
86
|
+
i0.ɵɵproperty("ngForOf", property_r7.options);
|
|
87
|
+
} }
|
|
88
|
+
function PropertiesPanelComponent_div_7_div_24_div_5_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
89
|
+
const _r11 = i0.ɵɵgetCurrentView();
|
|
90
|
+
i0.ɵɵelementStart(0, "div", 45)(1, "textarea", 46);
|
|
91
|
+
i0.ɵɵlistener("input", function PropertiesPanelComponent_div_7_div_24_div_5_div_6_Template_textarea_input_1_listener($event) { i0.ɵɵrestoreView(_r11); const property_r7 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onPropertyChange(property_r7.key, $event.target.value)); });
|
|
92
|
+
i0.ɵɵtext(2, " ");
|
|
93
|
+
i0.ɵɵelementEnd()();
|
|
94
|
+
} if (rf & 2) {
|
|
95
|
+
const property_r7 = i0.ɵɵnextContext().$implicit;
|
|
96
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
97
|
+
i0.ɵɵadvance();
|
|
98
|
+
i0.ɵɵproperty("id", "prop-" + property_r7.key)("placeholder", property_r7.placeholder || "")("rows", property_r7.rows || 3)("value", ctx_r1.getPropertyValue(property_r7.key));
|
|
99
|
+
} }
|
|
100
|
+
function PropertiesPanelComponent_div_7_div_24_div_5_label_7_Template(rf, ctx) { if (rf & 1) {
|
|
101
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
102
|
+
i0.ɵɵelementStart(0, "label", 47)(1, "input", 48);
|
|
103
|
+
i0.ɵɵlistener("change", function PropertiesPanelComponent_div_7_div_24_div_5_label_7_Template_input_change_1_listener($event) { i0.ɵɵrestoreView(_r12); const property_r7 = i0.ɵɵnextContext().$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onPropertyChange(property_r7.key, $event.target.checked)); });
|
|
104
|
+
i0.ɵɵelementEnd();
|
|
105
|
+
i0.ɵɵtext(2);
|
|
106
|
+
i0.ɵɵelementEnd();
|
|
107
|
+
} if (rf & 2) {
|
|
108
|
+
const property_r7 = i0.ɵɵnextContext().$implicit;
|
|
109
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
110
|
+
i0.ɵɵadvance();
|
|
111
|
+
i0.ɵɵproperty("checked", ctx_r1.getPropertyValue(property_r7.key));
|
|
112
|
+
i0.ɵɵadvance();
|
|
113
|
+
i0.ɵɵtextInterpolate1(" ", property_r7.label, " ");
|
|
114
|
+
} }
|
|
115
|
+
function PropertiesPanelComponent_div_7_div_24_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
116
|
+
i0.ɵɵelementStart(0, "div", 9)(1, "label", 35);
|
|
117
|
+
i0.ɵɵtext(2);
|
|
118
|
+
i0.ɵɵelementEnd();
|
|
119
|
+
i0.ɵɵtemplate(3, PropertiesPanelComponent_div_7_div_24_div_5_input_3_Template, 1, 3, "input", 36)(4, PropertiesPanelComponent_div_7_div_24_div_5_input_4_Template, 1, 6, "input", 37)(5, PropertiesPanelComponent_div_7_div_24_div_5_select_5_Template, 2, 3, "select", 38)(6, PropertiesPanelComponent_div_7_div_24_div_5_div_6_Template, 3, 4, "div", 39)(7, PropertiesPanelComponent_div_7_div_24_div_5_label_7_Template, 3, 2, "label", 40);
|
|
120
|
+
i0.ɵɵelementEnd();
|
|
121
|
+
} if (rf & 2) {
|
|
122
|
+
const property_r7 = ctx.$implicit;
|
|
123
|
+
i0.ɵɵadvance();
|
|
124
|
+
i0.ɵɵproperty("for", "prop-" + property_r7.key);
|
|
125
|
+
i0.ɵɵadvance();
|
|
126
|
+
i0.ɵɵtextInterpolate1(" ", property_r7.label, " ");
|
|
127
|
+
i0.ɵɵadvance();
|
|
128
|
+
i0.ɵɵproperty("ngIf", property_r7.type === "text");
|
|
129
|
+
i0.ɵɵadvance();
|
|
130
|
+
i0.ɵɵproperty("ngIf", property_r7.type === "number");
|
|
131
|
+
i0.ɵɵadvance();
|
|
132
|
+
i0.ɵɵproperty("ngIf", property_r7.type === "select");
|
|
133
|
+
i0.ɵɵadvance();
|
|
134
|
+
i0.ɵɵproperty("ngIf", property_r7.type === "textarea" || property_r7.type === "json");
|
|
135
|
+
i0.ɵɵadvance();
|
|
136
|
+
i0.ɵɵproperty("ngIf", property_r7.type === "checkbox");
|
|
137
|
+
} }
|
|
138
|
+
function PropertiesPanelComponent_div_7_div_24_Template(rf, ctx) { if (rf & 1) {
|
|
139
|
+
i0.ɵɵelementStart(0, "div", 32)(1, "h4", 33);
|
|
140
|
+
i0.ɵɵtext(2);
|
|
141
|
+
i0.ɵɵelementStart(3, "span", 28);
|
|
142
|
+
i0.ɵɵtext(4, "All properties are editable");
|
|
143
|
+
i0.ɵɵelementEnd()();
|
|
144
|
+
i0.ɵɵtemplate(5, PropertiesPanelComponent_div_7_div_24_div_5_Template, 8, 7, "div", 34);
|
|
145
|
+
i0.ɵɵelementEnd();
|
|
146
|
+
} if (rf & 2) {
|
|
147
|
+
let tmp_2_0;
|
|
148
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
149
|
+
i0.ɵɵadvance(2);
|
|
150
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.selectedStep.selectedOption.startsWith("custom_") ? "Custom Prompt Configuration" : ((tmp_2_0 = ctx_r1.getSelectedOption()) == null ? null : tmp_2_0.name) + " Properties", " ");
|
|
151
|
+
i0.ɵɵadvance(3);
|
|
152
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.getOptionProperties());
|
|
153
|
+
} }
|
|
154
|
+
function PropertiesPanelComponent_div_7_div_25_Template(rf, ctx) { if (rf & 1) {
|
|
155
|
+
i0.ɵɵelementStart(0, "div", 7)(1, "p");
|
|
156
|
+
i0.ɵɵtext(2, "No additional properties for this option");
|
|
157
|
+
i0.ɵɵelementEnd()();
|
|
158
|
+
} }
|
|
159
|
+
function PropertiesPanelComponent_div_7_div_26_Template(rf, ctx) { if (rf & 1) {
|
|
160
|
+
i0.ɵɵelementStart(0, "div", 7)(1, "p");
|
|
161
|
+
i0.ɵɵtext(2, "Select an option above to configure properties");
|
|
162
|
+
i0.ɵɵelementEnd()();
|
|
163
|
+
} }
|
|
164
|
+
function PropertiesPanelComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
165
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
166
|
+
i0.ɵɵelementStart(0, "div")(1, "div", 9)(2, "label", 10);
|
|
167
|
+
i0.ɵɵtext(3, "Step Name");
|
|
168
|
+
i0.ɵɵelementEnd();
|
|
169
|
+
i0.ɵɵelementStart(4, "input", 11);
|
|
170
|
+
i0.ɵɵlistener("input", function PropertiesPanelComponent_div_7_Template_input_input_4_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onStepNameChange($event.target.value)); });
|
|
171
|
+
i0.ɵɵelementEnd()();
|
|
172
|
+
i0.ɵɵtemplate(5, PropertiesPanelComponent_div_7_div_5_Template, 7, 1, "div", 12);
|
|
173
|
+
i0.ɵɵelementStart(6, "div", 9)(7, "label", 13);
|
|
174
|
+
i0.ɵɵtext(8, "Step Type");
|
|
175
|
+
i0.ɵɵelementEnd();
|
|
176
|
+
i0.ɵɵelement(9, "input", 14);
|
|
177
|
+
i0.ɵɵelementEnd();
|
|
178
|
+
i0.ɵɵelementStart(10, "div", 9)(11, "label", 15);
|
|
179
|
+
i0.ɵɵtext(12, "Step ID");
|
|
180
|
+
i0.ɵɵelementEnd();
|
|
181
|
+
i0.ɵɵelement(13, "input", 16);
|
|
182
|
+
i0.ɵɵelementEnd();
|
|
183
|
+
i0.ɵɵelement(14, "div", 17);
|
|
184
|
+
i0.ɵɵelementStart(15, "div", 9)(16, "label", 18);
|
|
185
|
+
i0.ɵɵtext(17, "Selected Option");
|
|
186
|
+
i0.ɵɵelementEnd();
|
|
187
|
+
i0.ɵɵelementStart(18, "div", 19)(19, "select", 20);
|
|
188
|
+
i0.ɵɵlistener("change", function PropertiesPanelComponent_div_7_Template_select_change_19_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onStepOptionChange($event.target.value)); });
|
|
189
|
+
i0.ɵɵelementStart(20, "option", 21);
|
|
190
|
+
i0.ɵɵtext(21);
|
|
191
|
+
i0.ɵɵelementEnd();
|
|
192
|
+
i0.ɵɵtemplate(22, PropertiesPanelComponent_div_7_option_22_Template, 2, 8, "option", 22);
|
|
193
|
+
i0.ɵɵelementEnd()()();
|
|
194
|
+
i0.ɵɵelement(23, "div", 17);
|
|
195
|
+
i0.ɵɵtemplate(24, PropertiesPanelComponent_div_7_div_24_Template, 6, 2, "div", 23)(25, PropertiesPanelComponent_div_7_div_25_Template, 3, 0, "div", 5)(26, PropertiesPanelComponent_div_7_div_26_Template, 3, 0, "div", 5);
|
|
196
|
+
i0.ɵɵelementStart(27, "div", 24)(28, "div", 25);
|
|
197
|
+
i0.ɵɵelement(29, "i", 26);
|
|
198
|
+
i0.ɵɵtext(30);
|
|
199
|
+
i0.ɵɵelementEnd()()();
|
|
200
|
+
} if (rf & 2) {
|
|
201
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
202
|
+
i0.ɵɵadvance(4);
|
|
203
|
+
i0.ɵɵproperty("value", ctx_r1.selectedStep.name);
|
|
204
|
+
i0.ɵɵadvance();
|
|
205
|
+
i0.ɵɵproperty("ngIf", ctx_r1.selectedStep.type === "prompt" && ctx_r1.selectedStep.selectedOption);
|
|
206
|
+
i0.ɵɵadvance(4);
|
|
207
|
+
i0.ɵɵproperty("value", ctx_r1.selectedStep.config.name);
|
|
208
|
+
i0.ɵɵadvance(4);
|
|
209
|
+
i0.ɵɵproperty("value", ctx_r1.selectedStep.id);
|
|
210
|
+
i0.ɵɵadvance(6);
|
|
211
|
+
i0.ɵɵproperty("value", ctx_r1.selectedStep.selectedOption || "");
|
|
212
|
+
i0.ɵɵadvance(2);
|
|
213
|
+
i0.ɵɵtextInterpolate1("Select ", ctx_r1.selectedStep.config.name, "...");
|
|
214
|
+
i0.ɵɵadvance();
|
|
215
|
+
i0.ɵɵproperty("ngForOf", ctx_r1.availableOptions);
|
|
216
|
+
i0.ɵɵadvance(2);
|
|
217
|
+
i0.ɵɵproperty("ngIf", ctx_r1.selectedStep.selectedOption && ctx_r1.getOptionProperties().length > 0);
|
|
218
|
+
i0.ɵɵadvance();
|
|
219
|
+
i0.ɵɵproperty("ngIf", ctx_r1.selectedStep.selectedOption && ctx_r1.getOptionProperties().length === 0);
|
|
220
|
+
i0.ɵɵadvance();
|
|
221
|
+
i0.ɵɵproperty("ngIf", !ctx_r1.selectedStep.selectedOption);
|
|
222
|
+
i0.ɵɵadvance(2);
|
|
223
|
+
i0.ɵɵstyleProp("background-color", ctx_r1.selectedStep.config.color + "20")("color", ctx_r1.selectedStep.config.color);
|
|
224
|
+
i0.ɵɵadvance();
|
|
225
|
+
i0.ɵɵproperty("ngClass", ctx_r1.selectedStep.config.icon);
|
|
226
|
+
i0.ɵɵadvance();
|
|
227
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.selectedStep.config.name, " ");
|
|
228
|
+
} }
|
|
229
|
+
export class PropertiesPanelComponent {
|
|
230
|
+
constructor(flowEditor, cdr) {
|
|
231
|
+
this.flowEditor = flowEditor;
|
|
232
|
+
this.cdr = cdr;
|
|
233
|
+
this.destroy$ = new Subject();
|
|
234
|
+
this.selectedStep = null;
|
|
235
|
+
this.availableOptions = [];
|
|
236
|
+
}
|
|
237
|
+
ngOnInit() {
|
|
238
|
+
// Subscribe to selected step
|
|
239
|
+
this.flowEditor.selectedNode
|
|
240
|
+
.pipe(takeUntil(this.destroy$))
|
|
241
|
+
.subscribe(step => {
|
|
242
|
+
this.selectedStep = step;
|
|
243
|
+
// Update available options
|
|
244
|
+
this.availableOptions = this.getAvailableOptions();
|
|
245
|
+
// Initialize property values with defaults if they don't exist
|
|
246
|
+
if (this.selectedStep && this.selectedStep.selectedOption) {
|
|
247
|
+
const option = this.getSelectedOption();
|
|
248
|
+
if (option?.properties && !this.selectedStep.propertyValues) {
|
|
249
|
+
this.selectedStep.propertyValues = {};
|
|
250
|
+
option.properties.forEach(prop => {
|
|
251
|
+
if (this.selectedStep && this.selectedStep.propertyValues) {
|
|
252
|
+
this.selectedStep.propertyValues[prop.key] = prop.defaultValue;
|
|
253
|
+
}
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
// Force change detection
|
|
258
|
+
this.cdr.detectChanges();
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
ngOnDestroy() {
|
|
262
|
+
this.destroy$.next();
|
|
263
|
+
this.destroy$.complete();
|
|
264
|
+
}
|
|
265
|
+
onStepNameChange(newName) {
|
|
266
|
+
if (this.selectedStep) {
|
|
267
|
+
this.selectedStep.name = newName;
|
|
268
|
+
this.flowEditor.updateNode(this.selectedStep);
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
onStepOptionChange(value) {
|
|
272
|
+
if (this.selectedStep) {
|
|
273
|
+
// Handle creating a new custom prompt
|
|
274
|
+
if (value === 'new_custom_prompt') {
|
|
275
|
+
// Generate a unique ID for this custom prompt
|
|
276
|
+
const customId = `custom_${this.selectedStep.id}_${Date.now()}`;
|
|
277
|
+
this.selectedStep.selectedOption = customId;
|
|
278
|
+
// Give it a unique name
|
|
279
|
+
const customNumber = this.getStepCustomPrompts().length + 1;
|
|
280
|
+
this.selectedStep.name = `Custom Prompt ${customNumber}`;
|
|
281
|
+
}
|
|
282
|
+
else {
|
|
283
|
+
this.selectedStep.selectedOption = value;
|
|
284
|
+
// If selecting a predefined prompt, reset the name to match
|
|
285
|
+
const option = this.getSelectedOption();
|
|
286
|
+
if (option && !value.startsWith('custom_')) {
|
|
287
|
+
this.selectedStep.name = option.name;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
// Initialize property values with defaults when option changes
|
|
291
|
+
const option = this.getSelectedOption();
|
|
292
|
+
if (option?.properties) {
|
|
293
|
+
if (!this.selectedStep.propertyValues) {
|
|
294
|
+
this.selectedStep.propertyValues = {};
|
|
295
|
+
}
|
|
296
|
+
option.properties.forEach(prop => {
|
|
297
|
+
if (this.selectedStep && this.selectedStep.propertyValues && !(prop.key in this.selectedStep.propertyValues)) {
|
|
298
|
+
this.selectedStep.propertyValues[prop.key] = prop.defaultValue;
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
this.flowEditor.updateNode(this.selectedStep);
|
|
303
|
+
// Update available options after changing selection
|
|
304
|
+
this.availableOptions = this.getAvailableOptions();
|
|
305
|
+
// Force change detection
|
|
306
|
+
this.cdr.detectChanges();
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
getSelectedOption() {
|
|
310
|
+
if (!this.selectedStep || !this.selectedStep.selectedOption) {
|
|
311
|
+
return undefined;
|
|
312
|
+
}
|
|
313
|
+
return this.selectedStep.config.options.find(opt => opt.value === this.selectedStep.selectedOption);
|
|
314
|
+
}
|
|
315
|
+
getOptionProperties() {
|
|
316
|
+
const option = this.getSelectedOption();
|
|
317
|
+
return option?.properties || [];
|
|
318
|
+
}
|
|
319
|
+
getPropertyValue(key) {
|
|
320
|
+
if (!this.selectedStep?.propertyValues) {
|
|
321
|
+
return '';
|
|
322
|
+
}
|
|
323
|
+
return this.selectedStep.propertyValues[key] || '';
|
|
324
|
+
}
|
|
325
|
+
onPropertyChange(key, value) {
|
|
326
|
+
if (this.selectedStep) {
|
|
327
|
+
if (!this.selectedStep.propertyValues) {
|
|
328
|
+
this.selectedStep.propertyValues = {};
|
|
329
|
+
}
|
|
330
|
+
this.selectedStep.propertyValues[key] = value;
|
|
331
|
+
this.flowEditor.updateNode(this.selectedStep);
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
// Get available options
|
|
335
|
+
getAvailableOptions() {
|
|
336
|
+
if (!this.selectedStep)
|
|
337
|
+
return [];
|
|
338
|
+
if (this.selectedStep.type === 'prompt') {
|
|
339
|
+
// Create the "New Custom Prompt" option at the top
|
|
340
|
+
const newPromptOption = {
|
|
341
|
+
id: 'new',
|
|
342
|
+
name: 'Create New Custom Prompt',
|
|
343
|
+
value: 'new_custom_prompt',
|
|
344
|
+
properties: [
|
|
345
|
+
{ key: 'promptText', label: 'Prompt Text', type: 'textarea', rows: 6, placeholder: 'Enter your custom prompt here...' },
|
|
346
|
+
{ key: 'temperature', label: 'Temperature', type: 'number', min: 0, max: 2, step: 0.1, defaultValue: 0.7 },
|
|
347
|
+
{ key: 'maxTokens', label: 'Max Tokens', type: 'number', min: 1, max: 4096, defaultValue: 1024 },
|
|
348
|
+
{ key: 'responseFormat', label: 'Response Format', type: 'select', options: [
|
|
349
|
+
{ value: 'text', label: 'Plain Text' },
|
|
350
|
+
{ value: 'json', label: 'JSON' },
|
|
351
|
+
{ value: 'markdown', label: 'Markdown' },
|
|
352
|
+
{ value: 'code', label: 'Code' }
|
|
353
|
+
], defaultValue: 'text' },
|
|
354
|
+
{ key: 'includeContext', label: 'Include Context', type: 'checkbox', defaultValue: true }
|
|
355
|
+
]
|
|
356
|
+
};
|
|
357
|
+
// Get the predefined options
|
|
358
|
+
const predefinedOptions = this.selectedStep.config.options.filter(opt => opt.value !== 'custom');
|
|
359
|
+
// Check if this step has any custom prompts stored
|
|
360
|
+
const customPrompts = this.getStepCustomPrompts();
|
|
361
|
+
// Return new option at top, then custom prompts, then predefined
|
|
362
|
+
const allOptions = [newPromptOption, ...customPrompts, ...predefinedOptions];
|
|
363
|
+
return allOptions;
|
|
364
|
+
}
|
|
365
|
+
return this.selectedStep.config.options;
|
|
366
|
+
}
|
|
367
|
+
// Get custom prompts for this flow
|
|
368
|
+
getStepCustomPrompts() {
|
|
369
|
+
const customPrompts = [];
|
|
370
|
+
// Get all steps from the flow editor service
|
|
371
|
+
const allSteps = this.flowEditor.getAllSteps();
|
|
372
|
+
// Find all unique custom prompts across all prompt steps
|
|
373
|
+
const customPromptMap = new Map();
|
|
374
|
+
allSteps.forEach(step => {
|
|
375
|
+
if (step.type === 'prompt' && step.selectedOption?.startsWith('custom_')) {
|
|
376
|
+
if (!customPromptMap.has(step.selectedOption)) {
|
|
377
|
+
const customOption = {
|
|
378
|
+
id: step.selectedOption,
|
|
379
|
+
name: step.name || 'Custom Prompt',
|
|
380
|
+
value: step.selectedOption,
|
|
381
|
+
properties: [
|
|
382
|
+
{ key: 'promptText', label: 'Prompt Text', type: 'textarea', rows: 6, placeholder: 'Enter your custom prompt here...' },
|
|
383
|
+
{ key: 'temperature', label: 'Temperature', type: 'number', min: 0, max: 2, step: 0.1, defaultValue: 0.7 },
|
|
384
|
+
{ key: 'maxTokens', label: 'Max Tokens', type: 'number', min: 1, max: 4096, defaultValue: 1024 },
|
|
385
|
+
{ key: 'responseFormat', label: 'Response Format', type: 'select', options: [
|
|
386
|
+
{ value: 'text', label: 'Plain Text' },
|
|
387
|
+
{ value: 'json', label: 'JSON' },
|
|
388
|
+
{ value: 'markdown', label: 'Markdown' },
|
|
389
|
+
{ value: 'code', label: 'Code' }
|
|
390
|
+
], defaultValue: 'text' },
|
|
391
|
+
{ key: 'includeContext', label: 'Include Context', type: 'checkbox', defaultValue: true }
|
|
392
|
+
]
|
|
393
|
+
};
|
|
394
|
+
customPromptMap.set(step.selectedOption, customOption);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
// Convert map to array
|
|
399
|
+
customPrompts.push(...customPromptMap.values());
|
|
400
|
+
return customPrompts;
|
|
401
|
+
}
|
|
402
|
+
static { this.ɵfac = function PropertiesPanelComponent_Factory(t) { return new (t || PropertiesPanelComponent)(i0.ɵɵdirectiveInject(i1.FlowEditorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
403
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PropertiesPanelComponent, selectors: [["app-properties-panel"]], standalone: true, features: [i0.ɵɵStandaloneFeature], decls: 8, vars: 2, consts: [[1, "properties-panel"], [1, "properties-header"], [1, "properties-title"], [1, "fa-solid", "fa-cog"], [1, "properties-content"], ["class", "empty-state", 4, "ngIf"], [4, "ngIf"], [1, "empty-state"], [1, "fa-solid", "fa-info-circle"], [1, "property-field"], ["for", "step-name"], ["id", "step-name", "type", "text", 1, "form-input", 3, "input", "value"], ["class", "property-field", 4, "ngIf"], ["for", "step-type"], ["id", "step-type", "type", "text", "readonly", "", "disabled", "", 1, "form-input", 3, "value"], ["for", "step-id"], ["id", "step-id", "type", "text", "readonly", "", "disabled", "", 1, "form-input", 3, "value"], [1, "divider"], ["for", "step-option"], [1, "option-select-container"], ["id", "step-option", 1, "form-input", 3, "change", "value"], ["value", "", "disabled", ""], [3, "value", "new-prompt-option", "custom-prompt-option", "separator-after", 4, "ngFor", "ngForOf"], ["class", "editable-properties-section", 4, "ngIf"], [1, "step-info"], [1, "info-badge"], [1, "fas", 3, "ngClass"], ["for", "prompt-name"], [1, "edit-indicator"], [1, "editable-field"], ["id", "prompt-name", "type", "text", "placeholder", "Enter prompt name...", 1, "form-input", 3, "ngModelChange", "blur", "keyup.enter", "ngModel"], [3, "value"], [1, "editable-properties-section"], [1, "section-title"], ["class", "property-field", 4, "ngFor", "ngForOf"], [3, "for"], ["type", "text", "class", "form-input", 3, "id", "placeholder", "value", "input", 4, "ngIf"], ["type", "number", "class", "form-input", 3, "id", "min", "max", "step", "placeholder", "value", "input", 4, "ngIf"], ["class", "form-input", 3, "id", "value", "change", 4, "ngIf"], ["class", "textarea-wrapper", 4, "ngIf"], ["class", "checkbox-label", 4, "ngIf"], ["type", "text", 1, "form-input", 3, "input", "id", "placeholder", "value"], ["type", "number", 1, "form-input", 3, "input", "id", "min", "max", "step", "placeholder", "value"], [1, "form-input", 3, "change", "id", "value"], [3, "value", 4, "ngFor", "ngForOf"], [1, "textarea-wrapper"], [1, "form-input", "editable-textarea", 3, "input", "id", "placeholder", "rows", "value"], [1, "checkbox-label"], ["type", "checkbox", 3, "change", "checked"]], template: function PropertiesPanelComponent_Template(rf, ctx) { if (rf & 1) {
|
|
404
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "h3", 2);
|
|
405
|
+
i0.ɵɵelement(3, "i", 3);
|
|
406
|
+
i0.ɵɵtext(4, " Properties ");
|
|
407
|
+
i0.ɵɵelementEnd()();
|
|
408
|
+
i0.ɵɵelementStart(5, "div", 4);
|
|
409
|
+
i0.ɵɵtemplate(6, PropertiesPanelComponent_div_6_Template, 4, 0, "div", 5)(7, PropertiesPanelComponent_div_7_Template, 31, 16, "div", 6);
|
|
410
|
+
i0.ɵɵelementEnd()();
|
|
411
|
+
} if (rf & 2) {
|
|
412
|
+
i0.ɵɵadvance(6);
|
|
413
|
+
i0.ɵɵproperty("ngIf", !ctx.selectedStep);
|
|
414
|
+
i0.ɵɵadvance();
|
|
415
|
+
i0.ɵɵproperty("ngIf", ctx.selectedStep);
|
|
416
|
+
} }, dependencies: [CommonModule, i2.NgClass, i2.NgForOf, i2.NgIf, FormsModule, i3.NgSelectOption, i3.ɵNgSelectMultipleOption, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgModel], styles: ["[_nghost-%COMP%] {\n display: block;\n height: 100%;\n background: white;\n }\n \n .properties-panel[_ngcontent-%COMP%] {\n height: 100%;\n background: white;\n border-left: 1px solid #D9D9D9;\n display: flex;\n flex-direction: column;\n box-shadow: -1px 0 3px rgba(0, 0, 0, 0.05);\n }\n \n .properties-header[_ngcontent-%COMP%] {\n padding: 1.5rem;\n border-bottom: 1px solid #D9D9D9;\n background: #F4F4F4;\n }\n \n .properties-title[_ngcontent-%COMP%] {\n font-size: 1.25rem;\n font-weight: 600;\n margin: 0;\n color: #333;\n display: flex;\n align-items: center;\n gap: 0.5rem;\n }\n \n .properties-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: #0076B6;\n }\n \n .properties-content[_ngcontent-%COMP%] {\n flex: 1;\n overflow-y: auto;\n padding: 1rem;\n }\n \n .empty-state[_ngcontent-%COMP%] {\n text-align: center;\n color: #AAA;\n padding: 2rem;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 1rem;\n }\n \n .empty-state[_ngcontent-%COMP%] .fa-info-circle[_ngcontent-%COMP%] {\n font-size: 2rem;\n color: #0076B6;\n }\n \n .empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 0.875rem;\n }\n \n .property-field[_ngcontent-%COMP%] {\n margin-bottom: 1.5rem;\n }\n \n .property-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\n display: block;\n margin-bottom: 0.5rem;\n font-weight: 600;\n color: #333;\n font-size: 0.875rem;\n }\n \n .form-input[_ngcontent-%COMP%] {\n width: 100%;\n padding: 0.5rem;\n border: 1px solid #D9D9D9;\n border-radius: 4px;\n font-size: 0.875rem;\n }\n \n .form-input[_ngcontent-%COMP%]:focus {\n outline: none;\n border-color: #0076B6;\n }\n \n .form-input[readonly][_ngcontent-%COMP%] {\n background-color: #F4F4F4;\n cursor: not-allowed;\n }"] }); }
|
|
417
|
+
}
|
|
418
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PropertiesPanelComponent, [{
|
|
419
|
+
type: Component,
|
|
420
|
+
args: [{ selector: 'app-properties-panel', standalone: true, imports: [CommonModule, FormsModule], template: "<div class=\"properties-panel\">\n <div class=\"properties-header\">\n <h3 class=\"properties-title\">\n <i class=\"fa-solid fa-cog\"></i> Properties\n </h3>\n </div>\n \n <div class=\"properties-content\">\n <!-- Empty State -->\n <div *ngIf=\"!selectedStep\" class=\"empty-state\">\n <i class=\"fa-solid fa-info-circle\"></i>\n <p>Select a step to view its properties</p>\n </div>\n \n <!-- Step Properties -->\n <div *ngIf=\"selectedStep\">\n <div class=\"property-field\">\n <label for=\"step-name\">Step Name</label>\n <input \n id=\"step-name\"\n type=\"text\" \n [value]=\"selectedStep.name\" \n (input)=\"onStepNameChange($any($event.target).value)\"\n class=\"form-input\">\n </div>\n \n <!-- Show editable name for prompts -->\n <div class=\"property-field\" *ngIf=\"selectedStep.type === 'prompt' && selectedStep.selectedOption\">\n <label for=\"prompt-name\">\n Prompt Display Name\n <span class=\"edit-indicator\">Editable</span>\n </label>\n <div class=\"editable-field\">\n <input \n id=\"prompt-name\"\n type=\"text\" \n [(ngModel)]=\"selectedStep.name\" \n (blur)=\"onStepNameChange(selectedStep.name)\"\n (keyup.enter)=\"onStepNameChange(selectedStep.name)\"\n class=\"form-input\"\n placeholder=\"Enter prompt name...\">\n </div>\n </div>\n \n <div class=\"property-field\">\n <label for=\"step-type\">Step Type</label>\n <input \n id=\"step-type\"\n type=\"text\" \n [value]=\"selectedStep.config.name\" \n readonly \n class=\"form-input\"\n disabled>\n </div>\n \n <div class=\"property-field\">\n <label for=\"step-id\">Step ID</label>\n <input \n id=\"step-id\"\n type=\"text\" \n [value]=\"selectedStep.id\" \n readonly \n class=\"form-input\"\n disabled>\n </div>\n \n <div class=\"divider\"></div>\n \n <div class=\"property-field\">\n <label for=\"step-option\">Selected Option</label>\n <div class=\"option-select-container\">\n <select \n id=\"step-option\"\n class=\"form-input\"\n [value]=\"selectedStep.selectedOption || ''\"\n (change)=\"onStepOptionChange($any($event.target).value)\">\n <option value=\"\" disabled>Select {{ selectedStep.config.name }}...</option>\n <option \n *ngFor=\"let option of availableOptions; let i = index\" \n [value]=\"option.value\"\n [class.new-prompt-option]=\"option.value === 'new_custom_prompt'\"\n [class.custom-prompt-option]=\"option.value.startsWith('custom_')\"\n [class.separator-after]=\"i === 0 && availableOptions.length > 1\">\n {{ option.value === 'new_custom_prompt' ? '\u2795 ' + option.name : option.name }}\n </option>\n </select>\n </div>\n </div>\n \n <div class=\"divider\"></div>\n \n <!-- Dynamic properties based on selected option -->\n <div *ngIf=\"selectedStep.selectedOption && getOptionProperties().length > 0\" \n class=\"editable-properties-section\">\n <h4 class=\"section-title\">\n {{ selectedStep.selectedOption.startsWith('custom_') ? 'Custom Prompt Configuration' : getSelectedOption()?.name + ' Properties' }}\n <span class=\"edit-indicator\">All properties are editable</span>\n </h4>\n \n <div *ngFor=\"let property of getOptionProperties()\" class=\"property-field\">\n <label [for]=\"'prop-' + property.key\">\n {{ property.label }}\n </label>\n \n <!-- Text input -->\n <input \n *ngIf=\"property.type === 'text'\"\n [id]=\"'prop-' + property.key\"\n type=\"text\"\n [placeholder]=\"property.placeholder || ''\"\n [value]=\"getPropertyValue(property.key)\"\n (input)=\"onPropertyChange(property.key, $any($event.target).value)\"\n class=\"form-input\">\n \n <!-- Number input -->\n <input \n *ngIf=\"property.type === 'number'\"\n [id]=\"'prop-' + property.key\"\n type=\"number\"\n [min]=\"property.min\"\n [max]=\"property.max\"\n [step]=\"property.step || 1\"\n [placeholder]=\"property.placeholder || ''\"\n [value]=\"getPropertyValue(property.key)\"\n (input)=\"onPropertyChange(property.key, +$any($event.target).value)\"\n class=\"form-input\">\n \n <!-- Select dropdown -->\n <select \n *ngIf=\"property.type === 'select'\"\n [id]=\"'prop-' + property.key\"\n [value]=\"getPropertyValue(property.key)\"\n (change)=\"onPropertyChange(property.key, $any($event.target).value)\"\n class=\"form-input\">\n <option *ngFor=\"let option of property.options\" [value]=\"option.value\">\n {{ option.label }}\n </option>\n </select>\n \n <!-- Textarea -->\n <div *ngIf=\"property.type === 'textarea' || property.type === 'json'\" class=\"textarea-wrapper\">\n <textarea \n [id]=\"'prop-' + property.key\"\n [placeholder]=\"property.placeholder || ''\"\n [rows]=\"property.rows || 3\"\n [value]=\"getPropertyValue(property.key)\"\n (input)=\"onPropertyChange(property.key, $any($event.target).value)\"\n class=\"form-input editable-textarea\">\n </textarea>\n </div>\n \n <!-- Checkbox -->\n <label *ngIf=\"property.type === 'checkbox'\" class=\"checkbox-label\">\n <input \n type=\"checkbox\"\n [checked]=\"getPropertyValue(property.key)\"\n (change)=\"onPropertyChange(property.key, $any($event.target).checked)\">\n {{ property.label }}\n </label>\n </div>\n </div>\n \n <!-- Message when no option is selected -->\n <div *ngIf=\"selectedStep.selectedOption && getOptionProperties().length === 0\" class=\"empty-state\">\n <p>No additional properties for this option</p>\n </div>\n \n <div *ngIf=\"!selectedStep.selectedOption\" class=\"empty-state\">\n <p>Select an option above to configure properties</p>\n </div>\n \n <div class=\"step-info\">\n <div class=\"info-badge\" [style.background-color]=\"selectedStep.config.color + '20'\" [style.color]=\"selectedStep.config.color\">\n <i class=\"fas\" [ngClass]=\"selectedStep.config.icon\"></i>\n {{ selectedStep.config.name }}\n </div>\n </div>\n </div>\n </div>\n</div>\n\n", styles: ["\n :host {\n display: block;\n height: 100%;\n background: white;\n }\n \n .properties-panel {\n height: 100%;\n background: white;\n border-left: 1px solid #D9D9D9;\n display: flex;\n flex-direction: column;\n box-shadow: -1px 0 3px rgba(0, 0, 0, 0.05);\n }\n \n .properties-header {\n padding: 1.5rem;\n border-bottom: 1px solid #D9D9D9;\n background: #F4F4F4;\n }\n \n .properties-title {\n font-size: 1.25rem;\n font-weight: 600;\n margin: 0;\n color: #333;\n display: flex;\n align-items: center;\n gap: 0.5rem;\n }\n \n .properties-title i {\n color: #0076B6;\n }\n \n .properties-content {\n flex: 1;\n overflow-y: auto;\n padding: 1rem;\n }\n \n .empty-state {\n text-align: center;\n color: #AAA;\n padding: 2rem;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: 1rem;\n }\n \n .empty-state .fa-info-circle {\n font-size: 2rem;\n color: #0076B6;\n }\n \n .empty-state p {\n margin: 0;\n font-size: 0.875rem;\n }\n \n .property-field {\n margin-bottom: 1.5rem;\n }\n \n .property-field label {\n display: block;\n margin-bottom: 0.5rem;\n font-weight: 600;\n color: #333;\n font-size: 0.875rem;\n }\n \n .form-input {\n width: 100%;\n padding: 0.5rem;\n border: 1px solid #D9D9D9;\n border-radius: 4px;\n font-size: 0.875rem;\n }\n \n .form-input:focus {\n outline: none;\n border-color: #0076B6;\n }\n \n .form-input[readonly] {\n background-color: #F4F4F4;\n cursor: not-allowed;\n }\n "] }]
|
|
421
|
+
}], () => [{ type: i1.FlowEditorService }, { type: i0.ChangeDetectorRef }], null); })();
|
|
422
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PropertiesPanelComponent, { className: "PropertiesPanelComponent", filePath: "src/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/properties-panel/properties-panel.component.ts", lineNumber: 106 }); })();
|
|
423
|
+
//# sourceMappingURL=properties-panel.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"properties-panel.component.js","sourceRoot":"","sources":["../../../../../../../../src/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/properties-panel/properties-panel.component.ts","../../../../../../../../src/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/properties-panel/properties-panel.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAwC,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;;;;;;ICMtC,8BAA+C;IAC7C,uBAAuC;IACvC,yBAAG;IAAA,oDAAoC;IACzC,AADyC,iBAAI,EACvC;;;;IAgBF,AADF,8BAAkG,gBACvE;IACvB,qCACA;IAAA,gCAA6B;IAAA,wBAAQ;IACvC,AADuC,iBAAO,EACtC;IAEN,AADF,+BAA4B,gBAQW;IAJnC,iUAA+B;IAE/B,AADA,wLAAQ,iDAAmC,KAAC,yLAC7B,iDAAmC,KAAC;IAIzD,AADE,AARE,iBAOqC,EACjC,EACF;;;IANA,eAA+B;IAA/B,wDAA+B;;;IAyC/B,kCAKmE;IACjE,YACF;IAAA,iBAAS;;;;;IAFP,AADA,AADA,4EAAgE,+DACC,qEACD;IAHhE,uCAAsB;IAItB,cACF;IADE,sHACF;;;;IAqBF,iCAOqB;IADnB,iQAAS,6DAAyD,KAAC;IANrE,iBAOqB;;;;IAFnB,AADA,AAFA,8CAA6B,8CAEa,mDACF;;;;IAK1C,iCAUqB;IADnB,iQAAS,8DAA0D,KAAC;IATtE,iBAUqB;;;;IAFnB,AADA,AADA,AADA,AADA,AAFA,8CAA6B,wBAET,wBACA,+BACO,8CACe,mDACF;;;IAWxC,kCAAuE;IACrE,YACF;IAAA,iBAAS;;;IAFuC,wCAAsB;IACpE,cACF;IADE,iDACF;;;;IARF,kCAKqB;IADnB,qQ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,CAAC;gBACzD,CAAC;YACH,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,uBAAuB;QACvB,aAAa,CAAC,IAAI,CAAC,GAAG,eAAe,CAAC,MAAM,EAAE,CAAC,CAAC;QAEhD,OAAO,aAAa,CAAC;IACvB,CAAC;yFAxMU,wBAAwB;oEAAxB,wBAAwB;YCvGjC,AADF,AADF,8BAA8B,aACG,YACA;YAC3B,uBAA+B;YAAC,4BAClC;YACF,AADE,iBAAK,EACD;YAEN,8BAAgC;YAQ9B,AANA,yEAA+C,8DAMrB;YAoK9B,AADE,iBAAM,EACF;;YA1KI,eAAmB;YAAnB,wCAAmB;YAMnB,cAAkB;YAAlB,uCAAkB;4BDLhB,YAAY,mCAAE,WAAW;;iFA+FxB,wBAAwB;cAlGpC,SAAS;2BACE,sBAAsB,cACpB,IAAI,WACP,CAAC,YAAY,EAAE,WAAW,CAAC;;kFA+FzB,wBAAwB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { Connection } from '../../models/connection.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SimpleConditionEditorComponent implements OnInit {
|
|
5
|
+
connection: Connection;
|
|
6
|
+
save: EventEmitter<Connection>;
|
|
7
|
+
cancel: EventEmitter<void>;
|
|
8
|
+
commonConditions: {
|
|
9
|
+
expression: string;
|
|
10
|
+
label: string;
|
|
11
|
+
}[];
|
|
12
|
+
selectedCondition: any;
|
|
13
|
+
customExpression: string;
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
getPreview(): string;
|
|
16
|
+
onSave(): void;
|
|
17
|
+
onCancel(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SimpleConditionEditorComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SimpleConditionEditorComponent, "app-simple-condition-editor", never, { "connection": { "alias": "connection"; "required": false; }; }, { "save": "save"; "cancel": "cancel"; }, never, never, true, never>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=simple-condition-editor.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simple-condition-editor.component.d.ts","sourceRoot":"","sources":["../../../../../../../../src/lib/custom/AIAgents/FlowAgentType/flow-editor-integration/components/simple-condition-editor/simple-condition-editor.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAM/E,OAAO,EAAE,UAAU,EAAuC,MAAM,+BAA+B,CAAC;;AAEhG,qBAuJa,8BAA+B,YAAW,MAAM;IAClD,UAAU,EAAG,UAAU,CAAC;IACvB,IAAI,2BAAkC;IACtC,MAAM,qBAA4B;IAE5C,gBAAgB;;;QAAqB;IACrC,iBAAiB,EAAE,GAAG,CAAQ;IAC9B,gBAAgB,SAAM;IAEtB,QAAQ;IAaR,UAAU,IAAI,MAAM;IASpB,MAAM;IAuBN,QAAQ;yCAtDG,8BAA8B;2CAA9B,8BAA8B;CAyD1C"}
|