@memberjunction/ng-core-entity-forms 3.3.0 → 3.4.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/AIPrompts/ai-prompt-form.component.js +16 -17
- package/dist/lib/custom/AIPrompts/ai-prompt-form.component.js.map +1 -1
- package/dist/lib/custom/Actions/action-form.component.d.ts.map +1 -1
- package/dist/lib/custom/Actions/action-form.component.js +16 -30
- package/dist/lib/custom/Actions/action-form.component.js.map +1 -1
- package/dist/lib/custom/EntityActions/entityaction.form.component.js +9 -10
- package/dist/lib/custom/EntityActions/entityaction.form.component.js.map +1 -1
- package/dist/lib/custom/Queries/query-form.component.js +7 -7
- package/dist/lib/custom/Queries/query-form.component.js.map +1 -1
- package/dist/lib/custom/Templates/templates-form.component.js +195 -112
- package/dist/lib/custom/Templates/templates-form.component.js.map +1 -1
- package/dist/lib/custom/Tests/test-form.component.d.ts +4 -1
- package/dist/lib/custom/Tests/test-form.component.d.ts.map +1 -1
- package/dist/lib/custom/Tests/test-form.component.js +401 -380
- package/dist/lib/custom/Tests/test-form.component.js.map +1 -1
- package/dist/lib/custom/Tests/test-suite-form.component.d.ts +4 -1
- package/dist/lib/custom/Tests/test-suite-form.component.d.ts.map +1 -1
- package/dist/lib/custom/Tests/test-suite-form.component.js +539 -518
- package/dist/lib/custom/Tests/test-suite-form.component.js.map +1 -1
- package/dist/lib/custom/Tests/test-suite-run-form.component.d.ts +4 -1
- package/dist/lib/custom/Tests/test-suite-run-form.component.d.ts.map +1 -1
- package/dist/lib/custom/Tests/test-suite-run-form.component.js +535 -518
- package/dist/lib/custom/Tests/test-suite-run-form.component.js.map +1 -1
- package/dist/lib/custom/custom-forms.module.d.ts +48 -52
- package/dist/lib/custom/custom-forms.module.d.ts.map +1 -1
- package/dist/lib/custom/custom-forms.module.js +11 -25
- package/dist/lib/custom/custom-forms.module.js.map +1 -1
- package/dist/lib/generated/Entities/AIAgentRunStep/aiagentrunstep.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/AIAgentRunStep/aiagentrunstep.form.component.js +18 -24
- package/dist/lib/generated/Entities/AIAgentRunStep/aiagentrunstep.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/AIResultCache/airesultcache.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/AIResultCache/airesultcache.form.component.js +11 -17
- package/dist/lib/generated/Entities/AIResultCache/airesultcache.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/APIScope/apiscope.form.component.js +24 -22
- package/dist/lib/generated/Entities/APIScope/apiscope.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/Action/action.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/Action/action.form.component.js +44 -26
- package/dist/lib/generated/Entities/Action/action.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/ActionCategory/actioncategory.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/ActionCategory/actioncategory.form.component.js +23 -5
- package/dist/lib/generated/Entities/ActionCategory/actioncategory.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/Company/company.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/Company/company.form.component.js +28 -10
- package/dist/lib/generated/Entities/Company/company.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/Conversation/conversation.form.component.js +3 -3
- package/dist/lib/generated/Entities/ConversationDetailArtifact/conversationdetailartifact.form.component.js +3 -3
- package/dist/lib/generated/Entities/ConversationDetailArtifact/conversationdetailartifact.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/ConversationDetailRating/conversationdetailrating.form.component.js +3 -3
- package/dist/lib/generated/Entities/ConversationDetailRating/conversationdetailrating.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/Credential/credential.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/Credential/credential.form.component.js +23 -5
- package/dist/lib/generated/Entities/Credential/credential.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/CredentialType/credentialtype.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/CredentialType/credentialtype.form.component.js +23 -5
- package/dist/lib/generated/Entities/CredentialType/credentialtype.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/DuplicateRunDetail/duplicaterundetail.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/DuplicateRunDetail/duplicaterundetail.form.component.js +14 -20
- package/dist/lib/generated/Entities/DuplicateRunDetail/duplicaterundetail.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/EmployeeCompanyIntegration/employeecompanyintegration.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/EmployeeCompanyIntegration/employeecompanyintegration.form.component.js +9 -15
- package/dist/lib/generated/Entities/EmployeeCompanyIntegration/employeecompanyintegration.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/EmployeeRole/employeerole.form.component.js +3 -3
- package/dist/lib/generated/Entities/EmployeeRole/employeerole.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/EmployeeSkill/employeeskill.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/EmployeeSkill/employeeskill.form.component.js +6 -12
- package/dist/lib/generated/Entities/EmployeeSkill/employeeskill.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/EntityActionFilter/entityactionfilter.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/EntityActionFilter/entityactionfilter.form.component.js +5 -11
- package/dist/lib/generated/Entities/EntityActionFilter/entityactionfilter.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/EntityActionInvocation/entityactioninvocation.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/EntityActionInvocation/entityactioninvocation.form.component.js +8 -14
- package/dist/lib/generated/Entities/EntityActionInvocation/entityactioninvocation.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/EntityActionParam/entityactionparam.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/EntityActionParam/entityactionparam.form.component.js +6 -12
- package/dist/lib/generated/Entities/EntityActionParam/entityactionparam.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/EntityCommunicationField/entitycommunicationfield.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/EntityCommunicationField/entitycommunicationfield.form.component.js +6 -12
- package/dist/lib/generated/Entities/EntityCommunicationField/entitycommunicationfield.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/ErrorLog/errorlog.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/ErrorLog/errorlog.form.component.js +11 -17
- package/dist/lib/generated/Entities/ErrorLog/errorlog.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/MCPServer/mcpserver.form.component.d.ts +11 -0
- package/dist/lib/generated/Entities/MCPServer/mcpserver.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/MCPServer/mcpserver.form.component.js +142 -0
- package/dist/lib/generated/Entities/MCPServer/mcpserver.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/MCPServerConnection/mcpserverconnection.form.component.d.ts +11 -0
- package/dist/lib/generated/Entities/MCPServerConnection/mcpserverconnection.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/MCPServerConnection/mcpserverconnection.form.component.js +158 -0
- package/dist/lib/generated/Entities/MCPServerConnection/mcpserverconnection.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/MCPServerConnectionPermission/mcpserverconnectionpermission.form.component.d.ts +11 -0
- package/dist/lib/generated/Entities/MCPServerConnectionPermission/mcpserverconnectionpermission.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/MCPServerConnectionPermission/mcpserverconnectionpermission.form.component.js +77 -0
- package/dist/lib/generated/Entities/MCPServerConnectionPermission/mcpserverconnectionpermission.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/MCPServerConnectionTool/mcpserverconnectiontool.form.component.d.ts +11 -0
- package/dist/lib/generated/Entities/MCPServerConnectionTool/mcpserverconnectiontool.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/MCPServerConnectionTool/mcpserverconnectiontool.form.component.js +73 -0
- package/dist/lib/generated/Entities/MCPServerConnectionTool/mcpserverconnectiontool.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/MCPServerTool/mcpservertool.form.component.d.ts +11 -0
- package/dist/lib/generated/Entities/MCPServerTool/mcpservertool.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/MCPServerTool/mcpservertool.form.component.js +132 -0
- package/dist/lib/generated/Entities/MCPServerTool/mcpservertool.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/MCPToolExecutionLog/mcptoolexecutionlog.form.component.d.ts +11 -0
- package/dist/lib/generated/Entities/MCPToolExecutionLog/mcptoolexecutionlog.form.component.d.ts.map +1 -0
- package/dist/lib/generated/Entities/MCPToolExecutionLog/mcptoolexecutionlog.form.component.js +101 -0
- package/dist/lib/generated/Entities/MCPToolExecutionLog/mcptoolexecutionlog.form.component.js.map +1 -0
- package/dist/lib/generated/Entities/Role/role.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/Role/role.form.component.js +30 -12
- package/dist/lib/generated/Entities/Role/role.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/Task/task.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/Task/task.form.component.js +26 -32
- package/dist/lib/generated/Entities/Task/task.form.component.js.map +1 -1
- package/dist/lib/generated/Entities/User/user.form.component.d.ts.map +1 -1
- package/dist/lib/generated/Entities/User/user.form.component.js +182 -146
- package/dist/lib/generated/Entities/User/user.form.component.js.map +1 -1
- package/dist/lib/generated/generated-forms.module.d.ts +97 -86
- package/dist/lib/generated/generated-forms.module.d.ts.map +1 -1
- package/dist/lib/generated/generated-forms.module.js +140 -59
- package/dist/lib/generated/generated-forms.module.js.map +1 -1
- package/dist/public-api.js +1 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +30 -30
- package/dist/lib/custom/Actions/action-param-dialog.component.d.ts +0 -32
- package/dist/lib/custom/Actions/action-param-dialog.component.d.ts.map +0 -1
- package/dist/lib/custom/Actions/action-param-dialog.component.js +0 -321
- package/dist/lib/custom/Actions/action-param-dialog.component.js.map +0 -1
- package/dist/lib/custom/Actions/action-result-code-dialog.component.d.ts +0 -20
- package/dist/lib/custom/Actions/action-result-code-dialog.component.d.ts.map +0 -1
- package/dist/lib/custom/Actions/action-result-code-dialog.component.js +0 -127
- package/dist/lib/custom/Actions/action-result-code-dialog.component.js.map +0 -1
- package/dist/lib/custom/Actions/action-test-harness-dialog.component.d.ts +0 -15
- package/dist/lib/custom/Actions/action-test-harness-dialog.component.d.ts.map +0 -1
- package/dist/lib/custom/Actions/action-test-harness-dialog.component.js +0 -96
- package/dist/lib/custom/Actions/action-test-harness-dialog.component.js.map +0 -1
- package/dist/lib/custom/Actions/action-test-harness.component.d.ts +0 -50
- package/dist/lib/custom/Actions/action-test-harness.component.d.ts.map +0 -1
- package/dist/lib/custom/Actions/action-test-harness.component.js +0 -710
- package/dist/lib/custom/Actions/action-test-harness.component.js.map +0 -1
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DialogRef } from '@progress/kendo-angular-dialog';
|
|
3
|
-
import { ActionParamEntity } from '@memberjunction/core-entities';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ActionParamDialogComponent implements OnInit {
|
|
6
|
-
dialogRef: DialogRef;
|
|
7
|
-
param: ActionParamEntity;
|
|
8
|
-
isNew: boolean;
|
|
9
|
-
editMode: boolean;
|
|
10
|
-
paramName: string;
|
|
11
|
-
paramType: 'Input' | 'Output' | 'Both';
|
|
12
|
-
valueType: 'Scalar' | 'Simple Object' | 'BaseEntity Sub-Class' | 'Other' | 'MediaOutput';
|
|
13
|
-
description: string;
|
|
14
|
-
defaultValue: string;
|
|
15
|
-
isRequired: boolean;
|
|
16
|
-
isArray: boolean;
|
|
17
|
-
valueTypes: {
|
|
18
|
-
text: string;
|
|
19
|
-
value: string;
|
|
20
|
-
}[];
|
|
21
|
-
paramTypes: {
|
|
22
|
-
text: string;
|
|
23
|
-
value: string;
|
|
24
|
-
}[];
|
|
25
|
-
constructor(dialogRef: DialogRef);
|
|
26
|
-
ngOnInit(): void;
|
|
27
|
-
save(): void;
|
|
28
|
-
cancel(): void;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ActionParamDialogComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActionParamDialogComponent, "mj-action-param-dialog", never, { "param": { "alias": "param"; "required": false; }; "isNew": { "alias": "isNew"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; }, {}, never, never, false, never>;
|
|
31
|
-
}
|
|
32
|
-
//# sourceMappingURL=action-param-dialog.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action-param-dialog.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/custom/Actions/action-param-dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;;AAElE,qBAKa,0BAA2B,YAAW,MAAM;IA8B1C,SAAS,EAAE,SAAS;IA7BtB,KAAK,EAAG,iBAAiB,CAAC;IAC1B,KAAK,EAAE,OAAO,CAAS;IACvB,QAAQ,EAAE,OAAO,CAAS;IAG5B,SAAS,EAAE,MAAM,CAAM;IACvB,SAAS,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAW;IACjD,SAAS,EAAE,QAAQ,GAAG,eAAe,GAAG,sBAAsB,GAAG,OAAO,GAAG,aAAa,CAAY;IACpG,WAAW,EAAE,MAAM,CAAM;IACzB,YAAY,EAAE,MAAM,CAAM;IAC1B,UAAU,EAAE,OAAO,CAAS;IAC5B,OAAO,EAAE,OAAO,CAAS;IAGzB,UAAU;;;QAMf;IAEK,UAAU;;;QAIf;gBAGS,SAAS,EAAE,SAAS;IAG/B,QAAQ;IAaR,IAAI;IAcJ,MAAM;yCA5DG,0BAA0B;2CAA1B,0BAA0B;CA+DtC"}
|
|
@@ -1,321 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@progress/kendo-angular-dialog";
|
|
4
|
-
import * as i2 from "@angular/forms";
|
|
5
|
-
import * as i3 from "@progress/kendo-angular-inputs";
|
|
6
|
-
import * as i4 from "@progress/kendo-angular-dropdowns";
|
|
7
|
-
import * as i5 from "@progress/kendo-angular-buttons";
|
|
8
|
-
function ActionParamDialogComponent_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
-
i0.ɵɵelementStart(0, "span", 5);
|
|
10
|
-
i0.ɵɵtext(1, "*");
|
|
11
|
-
i0.ɵɵelementEnd();
|
|
12
|
-
} }
|
|
13
|
-
function ActionParamDialogComponent_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
14
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
15
|
-
i0.ɵɵelementStart(0, "kendo-textbox", 20);
|
|
16
|
-
i0.ɵɵtwoWayListener("ngModelChange", function ActionParamDialogComponent_Conditional_10_Template_kendo_textbox_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.paramName, $event) || (ctx_r1.paramName = $event); return i0.ɵɵresetView($event); });
|
|
17
|
-
i0.ɵɵelementEnd();
|
|
18
|
-
} if (rf & 2) {
|
|
19
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
20
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.paramName);
|
|
21
|
-
} }
|
|
22
|
-
function ActionParamDialogComponent_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
23
|
-
i0.ɵɵelementStart(0, "div", 7);
|
|
24
|
-
i0.ɵɵtext(1);
|
|
25
|
-
i0.ɵɵelementEnd();
|
|
26
|
-
} if (rf & 2) {
|
|
27
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
28
|
-
i0.ɵɵadvance();
|
|
29
|
-
i0.ɵɵtextInterpolate(ctx_r1.paramName || "N/A");
|
|
30
|
-
} }
|
|
31
|
-
function ActionParamDialogComponent_Conditional_15_Template(rf, ctx) { if (rf & 1) {
|
|
32
|
-
i0.ɵɵelementStart(0, "span", 5);
|
|
33
|
-
i0.ɵɵtext(1, "*");
|
|
34
|
-
i0.ɵɵelementEnd();
|
|
35
|
-
} }
|
|
36
|
-
function ActionParamDialogComponent_Conditional_16_Template(rf, ctx) { if (rf & 1) {
|
|
37
|
-
const _r3 = i0.ɵɵgetCurrentView();
|
|
38
|
-
i0.ɵɵelementStart(0, "kendo-dropdownlist", 21);
|
|
39
|
-
i0.ɵɵtwoWayListener("ngModelChange", function ActionParamDialogComponent_Conditional_16_Template_kendo_dropdownlist_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.paramType, $event) || (ctx_r1.paramType = $event); return i0.ɵɵresetView($event); });
|
|
40
|
-
i0.ɵɵelementEnd();
|
|
41
|
-
} if (rf & 2) {
|
|
42
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
43
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.paramType);
|
|
44
|
-
i0.ɵɵproperty("data", ctx_r1.paramTypes)("valuePrimitive", true);
|
|
45
|
-
} }
|
|
46
|
-
function ActionParamDialogComponent_Conditional_17_Template(rf, ctx) { if (rf & 1) {
|
|
47
|
-
i0.ɵɵelementStart(0, "div", 7)(1, "span", 22);
|
|
48
|
-
i0.ɵɵtext(2);
|
|
49
|
-
i0.ɵɵelementEnd()();
|
|
50
|
-
} if (rf & 2) {
|
|
51
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
52
|
-
i0.ɵɵadvance();
|
|
53
|
-
i0.ɵɵclassMap("type-" + ctx_r1.paramType.toLowerCase());
|
|
54
|
-
i0.ɵɵadvance();
|
|
55
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.paramType, " ");
|
|
56
|
-
} }
|
|
57
|
-
function ActionParamDialogComponent_Conditional_21_Template(rf, ctx) { if (rf & 1) {
|
|
58
|
-
i0.ɵɵelementStart(0, "span", 5);
|
|
59
|
-
i0.ɵɵtext(1, "*");
|
|
60
|
-
i0.ɵɵelementEnd();
|
|
61
|
-
} }
|
|
62
|
-
function ActionParamDialogComponent_Conditional_22_Template(rf, ctx) { if (rf & 1) {
|
|
63
|
-
const _r4 = i0.ɵɵgetCurrentView();
|
|
64
|
-
i0.ɵɵelementStart(0, "kendo-dropdownlist", 23);
|
|
65
|
-
i0.ɵɵtwoWayListener("ngModelChange", function ActionParamDialogComponent_Conditional_22_Template_kendo_dropdownlist_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.valueType, $event) || (ctx_r1.valueType = $event); return i0.ɵɵresetView($event); });
|
|
66
|
-
i0.ɵɵelementEnd();
|
|
67
|
-
} if (rf & 2) {
|
|
68
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
69
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.valueType);
|
|
70
|
-
i0.ɵɵproperty("data", ctx_r1.valueTypes)("valuePrimitive", true);
|
|
71
|
-
} }
|
|
72
|
-
function ActionParamDialogComponent_Conditional_23_Template(rf, ctx) { if (rf & 1) {
|
|
73
|
-
i0.ɵɵelementStart(0, "div", 7);
|
|
74
|
-
i0.ɵɵtext(1);
|
|
75
|
-
i0.ɵɵelementEnd();
|
|
76
|
-
} if (rf & 2) {
|
|
77
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
78
|
-
i0.ɵɵadvance();
|
|
79
|
-
i0.ɵɵtextInterpolate(ctx_r1.valueType);
|
|
80
|
-
} }
|
|
81
|
-
function ActionParamDialogComponent_Conditional_27_Template(rf, ctx) { if (rf & 1) {
|
|
82
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
83
|
-
i0.ɵɵelementStart(0, "kendo-textarea", 24);
|
|
84
|
-
i0.ɵɵtwoWayListener("ngModelChange", function ActionParamDialogComponent_Conditional_27_Template_kendo_textarea_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.description, $event) || (ctx_r1.description = $event); return i0.ɵɵresetView($event); });
|
|
85
|
-
i0.ɵɵelementEnd();
|
|
86
|
-
} if (rf & 2) {
|
|
87
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
88
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.description);
|
|
89
|
-
i0.ɵɵproperty("rows", 3);
|
|
90
|
-
} }
|
|
91
|
-
function ActionParamDialogComponent_Conditional_28_Template(rf, ctx) { if (rf & 1) {
|
|
92
|
-
i0.ɵɵelementStart(0, "div", 11);
|
|
93
|
-
i0.ɵɵtext(1);
|
|
94
|
-
i0.ɵɵelementEnd();
|
|
95
|
-
} if (rf & 2) {
|
|
96
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
97
|
-
i0.ɵɵadvance();
|
|
98
|
-
i0.ɵɵtextInterpolate(ctx_r1.description || "No description provided");
|
|
99
|
-
} }
|
|
100
|
-
function ActionParamDialogComponent_Conditional_32_Template(rf, ctx) { if (rf & 1) {
|
|
101
|
-
const _r6 = i0.ɵɵgetCurrentView();
|
|
102
|
-
i0.ɵɵelementStart(0, "kendo-textbox", 25);
|
|
103
|
-
i0.ɵɵtwoWayListener("ngModelChange", function ActionParamDialogComponent_Conditional_32_Template_kendo_textbox_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.defaultValue, $event) || (ctx_r1.defaultValue = $event); return i0.ɵɵresetView($event); });
|
|
104
|
-
i0.ɵɵelementEnd();
|
|
105
|
-
} if (rf & 2) {
|
|
106
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
107
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.defaultValue);
|
|
108
|
-
} }
|
|
109
|
-
function ActionParamDialogComponent_Conditional_33_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
110
|
-
i0.ɵɵelementStart(0, "code");
|
|
111
|
-
i0.ɵɵtext(1);
|
|
112
|
-
i0.ɵɵelementEnd();
|
|
113
|
-
} if (rf & 2) {
|
|
114
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
115
|
-
i0.ɵɵadvance();
|
|
116
|
-
i0.ɵɵtextInterpolate(ctx_r1.defaultValue);
|
|
117
|
-
} }
|
|
118
|
-
function ActionParamDialogComponent_Conditional_33_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
119
|
-
i0.ɵɵelementStart(0, "span", 26);
|
|
120
|
-
i0.ɵɵtext(1, "No default value");
|
|
121
|
-
i0.ɵɵelementEnd();
|
|
122
|
-
} }
|
|
123
|
-
function ActionParamDialogComponent_Conditional_33_Template(rf, ctx) { if (rf & 1) {
|
|
124
|
-
i0.ɵɵelementStart(0, "div", 7);
|
|
125
|
-
i0.ɵɵtemplate(1, ActionParamDialogComponent_Conditional_33_Conditional_1_Template, 2, 1, "code")(2, ActionParamDialogComponent_Conditional_33_Conditional_2_Template, 2, 0, "span", 26);
|
|
126
|
-
i0.ɵɵelementEnd();
|
|
127
|
-
} if (rf & 2) {
|
|
128
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
129
|
-
i0.ɵɵadvance();
|
|
130
|
-
i0.ɵɵconditional(ctx_r1.defaultValue ? 1 : 2);
|
|
131
|
-
} }
|
|
132
|
-
function ActionParamDialogComponent_Conditional_37_Template(rf, ctx) { if (rf & 1) {
|
|
133
|
-
const _r7 = i0.ɵɵgetCurrentView();
|
|
134
|
-
i0.ɵɵelementStart(0, "kendo-switch", 27);
|
|
135
|
-
i0.ɵɵtwoWayListener("ngModelChange", function ActionParamDialogComponent_Conditional_37_Template_kendo_switch_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.isRequired, $event) || (ctx_r1.isRequired = $event); return i0.ɵɵresetView($event); });
|
|
136
|
-
i0.ɵɵelementEnd();
|
|
137
|
-
} if (rf & 2) {
|
|
138
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
139
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.isRequired);
|
|
140
|
-
} }
|
|
141
|
-
function ActionParamDialogComponent_Conditional_38_Template(rf, ctx) { if (rf & 1) {
|
|
142
|
-
i0.ɵɵelement(0, "i", 28);
|
|
143
|
-
} if (rf & 2) {
|
|
144
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
145
|
-
i0.ɵɵstyleProp("color", ctx_r1.isRequired ? "#28a745" : "#6c757d");
|
|
146
|
-
i0.ɵɵclassProp("fa-check-circle", ctx_r1.isRequired)("fa-times-circle", !ctx_r1.isRequired);
|
|
147
|
-
} }
|
|
148
|
-
function ActionParamDialogComponent_Conditional_43_Template(rf, ctx) { if (rf & 1) {
|
|
149
|
-
const _r8 = i0.ɵɵgetCurrentView();
|
|
150
|
-
i0.ɵɵelementStart(0, "kendo-switch", 29);
|
|
151
|
-
i0.ɵɵtwoWayListener("ngModelChange", function ActionParamDialogComponent_Conditional_43_Template_kendo_switch_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.isArray, $event) || (ctx_r1.isArray = $event); return i0.ɵɵresetView($event); });
|
|
152
|
-
i0.ɵɵelementEnd();
|
|
153
|
-
} if (rf & 2) {
|
|
154
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
155
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.isArray);
|
|
156
|
-
} }
|
|
157
|
-
function ActionParamDialogComponent_Conditional_44_Template(rf, ctx) { if (rf & 1) {
|
|
158
|
-
i0.ɵɵelement(0, "i", 28);
|
|
159
|
-
} if (rf & 2) {
|
|
160
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
161
|
-
i0.ɵɵstyleProp("color", ctx_r1.isArray ? "#28a745" : "#6c757d");
|
|
162
|
-
i0.ɵɵclassProp("fa-check-circle", ctx_r1.isArray)("fa-times-circle", !ctx_r1.isArray);
|
|
163
|
-
} }
|
|
164
|
-
function ActionParamDialogComponent_Conditional_48_Template(rf, ctx) { if (rf & 1) {
|
|
165
|
-
const _r9 = i0.ɵɵgetCurrentView();
|
|
166
|
-
i0.ɵɵelementStart(0, "button", 30);
|
|
167
|
-
i0.ɵɵlistener("click", function ActionParamDialogComponent_Conditional_48_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.cancel()); });
|
|
168
|
-
i0.ɵɵtext(1, "Cancel");
|
|
169
|
-
i0.ɵɵelementEnd();
|
|
170
|
-
i0.ɵɵelementStart(2, "button", 31);
|
|
171
|
-
i0.ɵɵlistener("click", function ActionParamDialogComponent_Conditional_48_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.save()); });
|
|
172
|
-
i0.ɵɵtext(3, "Save");
|
|
173
|
-
i0.ɵɵelementEnd();
|
|
174
|
-
} }
|
|
175
|
-
function ActionParamDialogComponent_Conditional_49_Template(rf, ctx) { if (rf & 1) {
|
|
176
|
-
const _r10 = i0.ɵɵgetCurrentView();
|
|
177
|
-
i0.ɵɵelementStart(0, "button", 31);
|
|
178
|
-
i0.ɵɵlistener("click", function ActionParamDialogComponent_Conditional_49_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.cancel()); });
|
|
179
|
-
i0.ɵɵtext(1, "Close");
|
|
180
|
-
i0.ɵɵelementEnd();
|
|
181
|
-
} }
|
|
182
|
-
export class ActionParamDialogComponent {
|
|
183
|
-
constructor(dialogRef) {
|
|
184
|
-
this.dialogRef = dialogRef;
|
|
185
|
-
this.isNew = false;
|
|
186
|
-
this.editMode = false;
|
|
187
|
-
// Form fields
|
|
188
|
-
this.paramName = '';
|
|
189
|
-
this.paramType = 'Input';
|
|
190
|
-
this.valueType = 'Scalar';
|
|
191
|
-
this.description = '';
|
|
192
|
-
this.defaultValue = '';
|
|
193
|
-
this.isRequired = false;
|
|
194
|
-
this.isArray = false;
|
|
195
|
-
// Value type options
|
|
196
|
-
this.valueTypes = [
|
|
197
|
-
{ text: 'Scalar', value: 'Scalar' },
|
|
198
|
-
{ text: 'Simple Object', value: 'Simple Object' },
|
|
199
|
-
{ text: 'BaseEntity Sub-Class', value: 'BaseEntity Sub-Class' },
|
|
200
|
-
{ text: 'MediaOutput', value: 'MediaOutput' },
|
|
201
|
-
{ text: 'Other', value: 'Other' }
|
|
202
|
-
];
|
|
203
|
-
this.paramTypes = [
|
|
204
|
-
{ text: 'Input', value: 'Input' },
|
|
205
|
-
{ text: 'Output', value: 'Output' },
|
|
206
|
-
{ text: 'Both', value: 'Both' }
|
|
207
|
-
];
|
|
208
|
-
}
|
|
209
|
-
ngOnInit() {
|
|
210
|
-
if (this.param) {
|
|
211
|
-
// Load existing values
|
|
212
|
-
this.paramName = this.param.Name || '';
|
|
213
|
-
this.paramType = this.param.Type;
|
|
214
|
-
this.valueType = this.param.ValueType || 'Scalar';
|
|
215
|
-
this.description = this.param.Description || '';
|
|
216
|
-
this.defaultValue = this.param.DefaultValue || '';
|
|
217
|
-
this.isRequired = this.param.IsRequired || false;
|
|
218
|
-
this.isArray = this.param.IsArray || false;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
save() {
|
|
222
|
-
// Update the param entity with form values
|
|
223
|
-
this.param.Name = this.paramName;
|
|
224
|
-
this.param.Type = this.paramType;
|
|
225
|
-
this.param.ValueType = this.valueType;
|
|
226
|
-
this.param.Description = this.description;
|
|
227
|
-
this.param.DefaultValue = this.defaultValue;
|
|
228
|
-
this.param.IsRequired = this.isRequired;
|
|
229
|
-
this.param.IsArray = this.isArray;
|
|
230
|
-
// Close dialog and pass back the updated param
|
|
231
|
-
this.dialogRef.close({ param: this.param, save: true });
|
|
232
|
-
}
|
|
233
|
-
cancel() {
|
|
234
|
-
this.dialogRef.close({ save: false });
|
|
235
|
-
}
|
|
236
|
-
static { this.ɵfac = function ActionParamDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ActionParamDialogComponent)(i0.ɵɵdirectiveInject(i1.DialogRef)); }; }
|
|
237
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ActionParamDialogComponent, selectors: [["mj-action-param-dialog"]], inputs: { param: "param", isNew: "isNew", editMode: "editMode" }, decls: 50, vars: 12, consts: [[2, "font-weight", "600"], [1, "fa-solid", "fa-sliders"], [1, "param-dialog-content"], [1, "param-form"], [1, "form-field"], [1, "required"], ["name", "paramName", "placeholder", "Enter parameter name...", 2, "width", "100%", 3, "ngModel"], [1, "readonly-value"], ["name", "paramType", "textField", "text", "valueField", "value", 2, "width", "100%", 3, "ngModel", "data", "valuePrimitive"], ["name", "valueType", "textField", "text", "valueField", "value", 2, "width", "100%", 3, "ngModel", "data", "valuePrimitive"], ["name", "description", "placeholder", "Enter parameter description...", 2, "width", "100%", 3, "ngModel", "rows"], [1, "readonly-value", "description"], ["name", "defaultValue", "placeholder", "Enter default value...", 2, "width", "100%", 3, "ngModel"], [1, "form-field-row"], [1, "checkbox-field"], ["name", "isRequired", 3, "ngModel"], [1, "fa-solid", 3, "fa-check-circle", "fa-times-circle", "color"], [2, "margin-left", "8px"], ["name", "isArray", 3, "ngModel"], ["kendoButton", "", "themeColor", "primary"], ["name", "paramName", "placeholder", "Enter parameter name...", 2, "width", "100%", 3, "ngModelChange", "ngModel"], ["name", "paramType", "textField", "text", "valueField", "value", 2, "width", "100%", 3, "ngModelChange", "ngModel", "data", "valuePrimitive"], [1, "type-badge"], ["name", "valueType", "textField", "text", "valueField", "value", 2, "width", "100%", 3, "ngModelChange", "ngModel", "data", "valuePrimitive"], ["name", "description", "placeholder", "Enter parameter description...", 2, "width", "100%", 3, "ngModelChange", "ngModel", "rows"], ["name", "defaultValue", "placeholder", "Enter default value...", 2, "width", "100%", 3, "ngModelChange", "ngModel"], [2, "color", "#6c757d"], ["name", "isRequired", 3, "ngModelChange", "ngModel"], [1, "fa-solid"], ["name", "isArray", 3, "ngModelChange", "ngModel"], ["kendoButton", "", 3, "click"], ["kendoButton", "", "themeColor", "primary", 3, "click"]], template: function ActionParamDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
238
|
-
i0.ɵɵelementStart(0, "kendo-dialog-titlebar")(1, "span", 0);
|
|
239
|
-
i0.ɵɵelement(2, "i", 1);
|
|
240
|
-
i0.ɵɵtext(3);
|
|
241
|
-
i0.ɵɵelementEnd()();
|
|
242
|
-
i0.ɵɵelementStart(4, "div", 2)(5, "form", 3)(6, "div", 4)(7, "label");
|
|
243
|
-
i0.ɵɵtext(8, " Parameter Name ");
|
|
244
|
-
i0.ɵɵtemplate(9, ActionParamDialogComponent_Conditional_9_Template, 2, 0, "span", 5);
|
|
245
|
-
i0.ɵɵelementEnd();
|
|
246
|
-
i0.ɵɵtemplate(10, ActionParamDialogComponent_Conditional_10_Template, 1, 1, "kendo-textbox", 6)(11, ActionParamDialogComponent_Conditional_11_Template, 2, 1, "div", 7);
|
|
247
|
-
i0.ɵɵelementEnd();
|
|
248
|
-
i0.ɵɵelementStart(12, "div", 4)(13, "label");
|
|
249
|
-
i0.ɵɵtext(14, " Type ");
|
|
250
|
-
i0.ɵɵtemplate(15, ActionParamDialogComponent_Conditional_15_Template, 2, 0, "span", 5);
|
|
251
|
-
i0.ɵɵelementEnd();
|
|
252
|
-
i0.ɵɵtemplate(16, ActionParamDialogComponent_Conditional_16_Template, 1, 3, "kendo-dropdownlist", 8)(17, ActionParamDialogComponent_Conditional_17_Template, 3, 3, "div", 7);
|
|
253
|
-
i0.ɵɵelementEnd();
|
|
254
|
-
i0.ɵɵelementStart(18, "div", 4)(19, "label");
|
|
255
|
-
i0.ɵɵtext(20, " Value Type ");
|
|
256
|
-
i0.ɵɵtemplate(21, ActionParamDialogComponent_Conditional_21_Template, 2, 0, "span", 5);
|
|
257
|
-
i0.ɵɵelementEnd();
|
|
258
|
-
i0.ɵɵtemplate(22, ActionParamDialogComponent_Conditional_22_Template, 1, 3, "kendo-dropdownlist", 9)(23, ActionParamDialogComponent_Conditional_23_Template, 2, 1, "div", 7);
|
|
259
|
-
i0.ɵɵelementEnd();
|
|
260
|
-
i0.ɵɵelementStart(24, "div", 4)(25, "label");
|
|
261
|
-
i0.ɵɵtext(26, "Description");
|
|
262
|
-
i0.ɵɵelementEnd();
|
|
263
|
-
i0.ɵɵtemplate(27, ActionParamDialogComponent_Conditional_27_Template, 1, 2, "kendo-textarea", 10)(28, ActionParamDialogComponent_Conditional_28_Template, 2, 1, "div", 11);
|
|
264
|
-
i0.ɵɵelementEnd();
|
|
265
|
-
i0.ɵɵelementStart(29, "div", 4)(30, "label");
|
|
266
|
-
i0.ɵɵtext(31, "Default Value");
|
|
267
|
-
i0.ɵɵelementEnd();
|
|
268
|
-
i0.ɵɵtemplate(32, ActionParamDialogComponent_Conditional_32_Template, 1, 1, "kendo-textbox", 12)(33, ActionParamDialogComponent_Conditional_33_Template, 3, 1, "div", 7);
|
|
269
|
-
i0.ɵɵelementEnd();
|
|
270
|
-
i0.ɵɵelementStart(34, "div", 13)(35, "div", 14)(36, "label");
|
|
271
|
-
i0.ɵɵtemplate(37, ActionParamDialogComponent_Conditional_37_Template, 1, 1, "kendo-switch", 15)(38, ActionParamDialogComponent_Conditional_38_Template, 1, 6, "i", 16);
|
|
272
|
-
i0.ɵɵelementStart(39, "span", 17);
|
|
273
|
-
i0.ɵɵtext(40, "Required Parameter");
|
|
274
|
-
i0.ɵɵelementEnd()()();
|
|
275
|
-
i0.ɵɵelementStart(41, "div", 14)(42, "label");
|
|
276
|
-
i0.ɵɵtemplate(43, ActionParamDialogComponent_Conditional_43_Template, 1, 1, "kendo-switch", 18)(44, ActionParamDialogComponent_Conditional_44_Template, 1, 6, "i", 16);
|
|
277
|
-
i0.ɵɵelementStart(45, "span", 17);
|
|
278
|
-
i0.ɵɵtext(46, "Array Type");
|
|
279
|
-
i0.ɵɵelementEnd()()()()()();
|
|
280
|
-
i0.ɵɵelementStart(47, "kendo-dialog-actions");
|
|
281
|
-
i0.ɵɵtemplate(48, ActionParamDialogComponent_Conditional_48_Template, 4, 0)(49, ActionParamDialogComponent_Conditional_49_Template, 2, 0, "button", 19);
|
|
282
|
-
i0.ɵɵelementEnd();
|
|
283
|
-
} if (rf & 2) {
|
|
284
|
-
i0.ɵɵadvance(3);
|
|
285
|
-
i0.ɵɵtextInterpolate1(" ", ctx.isNew ? "Add Parameter" : ctx.editMode ? "Edit Parameter" : "Parameter Details", " ");
|
|
286
|
-
i0.ɵɵadvance(6);
|
|
287
|
-
i0.ɵɵconditional(ctx.editMode ? 9 : -1);
|
|
288
|
-
i0.ɵɵadvance();
|
|
289
|
-
i0.ɵɵconditional(ctx.editMode ? 10 : 11);
|
|
290
|
-
i0.ɵɵadvance(5);
|
|
291
|
-
i0.ɵɵconditional(ctx.editMode ? 15 : -1);
|
|
292
|
-
i0.ɵɵadvance();
|
|
293
|
-
i0.ɵɵconditional(ctx.editMode ? 16 : 17);
|
|
294
|
-
i0.ɵɵadvance(5);
|
|
295
|
-
i0.ɵɵconditional(ctx.editMode ? 21 : -1);
|
|
296
|
-
i0.ɵɵadvance();
|
|
297
|
-
i0.ɵɵconditional(ctx.editMode ? 22 : 23);
|
|
298
|
-
i0.ɵɵadvance(5);
|
|
299
|
-
i0.ɵɵconditional(ctx.editMode ? 27 : 28);
|
|
300
|
-
i0.ɵɵadvance(5);
|
|
301
|
-
i0.ɵɵconditional(ctx.editMode ? 32 : 33);
|
|
302
|
-
i0.ɵɵadvance(5);
|
|
303
|
-
i0.ɵɵconditional(ctx.editMode ? 37 : 38);
|
|
304
|
-
i0.ɵɵadvance(6);
|
|
305
|
-
i0.ɵɵconditional(ctx.editMode ? 43 : 44);
|
|
306
|
-
i0.ɵɵadvance(5);
|
|
307
|
-
i0.ɵɵconditional(ctx.editMode ? 48 : 49);
|
|
308
|
-
} }, dependencies: [i2.ɵNgNoValidate, i2.NgControlStatus, i2.NgControlStatusGroup, i2.NgModel, i2.NgForm, i1.DialogTitleBarComponent, i1.DialogActionsComponent, i3.TextAreaComponent, i3.TextBoxComponent, i3.SwitchComponent, i4.DropDownListComponent, i5.ButtonComponent], styles: [".param-dialog-content[_ngcontent-%COMP%] {\n padding: 20px;\n min-width: 400px;\n}\n\n.param-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 20px;\n}\n\n.form-field[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\n font-weight: 600;\n color: #495057;\n font-size: 0.9em;\n}\n\n.required[_ngcontent-%COMP%] {\n color: #dc3545;\n margin-left: 4px;\n}\n\n.readonly-value[_ngcontent-%COMP%] {\n padding: 8px 12px;\n background: #f8f9fa;\n border: 1px solid #e9ecef;\n border-radius: 4px;\n color: #495057;\n}\n\n.readonly-value.description[_ngcontent-%COMP%] {\n line-height: 1.5;\n white-space: pre-wrap;\n}\n\n.readonly-value[_ngcontent-%COMP%] code[_ngcontent-%COMP%] {\n background: #e9ecef;\n padding: 2px 6px;\n border-radius: 3px;\n font-family: 'Courier New', monospace;\n color: #e83e8c;\n}\n\n.type-badge[_ngcontent-%COMP%] {\n display: inline-block;\n padding: 4px 12px;\n border-radius: 12px;\n font-weight: 500;\n font-size: 0.85em;\n}\n\n.type-badge.type-input[_ngcontent-%COMP%] {\n background: #cfe2ff;\n color: #084298;\n}\n\n.type-badge.type-output[_ngcontent-%COMP%] {\n background: #d1e7dd;\n color: #0f5132;\n}\n\n.type-badge.type-both[_ngcontent-%COMP%] {\n background: #e0cffc;\n color: #432874;\n}\n\n.form-field-row[_ngcontent-%COMP%] {\n display: flex;\n gap: 24px;\n margin-top: 8px;\n}\n\n.checkbox-field[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n}\n\n.checkbox-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n margin: 0;\n font-weight: normal;\n}"] }); }
|
|
309
|
-
}
|
|
310
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ActionParamDialogComponent, [{
|
|
311
|
-
type: Component,
|
|
312
|
-
args: [{ selector: 'mj-action-param-dialog', template: "<kendo-dialog-titlebar>\n <span style=\"font-weight: 600;\">\n <i class=\"fa-solid fa-sliders\"></i>\n {{ isNew ? 'Add Parameter' : (editMode ? 'Edit Parameter' : 'Parameter Details') }}\n </span>\n</kendo-dialog-titlebar>\n\n<div class=\"param-dialog-content\">\n <form class=\"param-form\">\n <!-- Parameter Name -->\n <div class=\"form-field\">\n <label>\n Parameter Name\n @if (editMode) {\n <span class=\"required\">*</span>\n }\n </label>\n @if (editMode) {\n <kendo-textbox \n [(ngModel)]=\"paramName\"\n name=\"paramName\"\n placeholder=\"Enter parameter name...\"\n style=\"width: 100%;\">\n </kendo-textbox>\n } @else {\n <div class=\"readonly-value\">{{ paramName || 'N/A' }}</div>\n }\n </div>\n\n <!-- Parameter Type -->\n <div class=\"form-field\">\n <label>\n Type\n @if (editMode) {\n <span class=\"required\">*</span>\n }\n </label>\n @if (editMode) {\n <kendo-dropdownlist \n [(ngModel)]=\"paramType\"\n name=\"paramType\"\n [data]=\"paramTypes\"\n textField=\"text\"\n valueField=\"value\"\n [valuePrimitive]=\"true\"\n style=\"width: 100%;\">\n </kendo-dropdownlist>\n } @else {\n <div class=\"readonly-value\">\n <span class=\"type-badge\" [class]=\"'type-' + paramType.toLowerCase()\">\n {{ paramType }}\n </span>\n </div>\n }\n </div>\n\n <!-- Value Type -->\n <div class=\"form-field\">\n <label>\n Value Type\n @if (editMode) {\n <span class=\"required\">*</span>\n }\n </label>\n @if (editMode) {\n <kendo-dropdownlist \n [(ngModel)]=\"valueType\"\n name=\"valueType\"\n [data]=\"valueTypes\"\n textField=\"text\"\n valueField=\"value\"\n [valuePrimitive]=\"true\"\n style=\"width: 100%;\">\n </kendo-dropdownlist>\n } @else {\n <div class=\"readonly-value\">{{ valueType }}</div>\n }\n </div>\n\n <!-- Description -->\n <div class=\"form-field\">\n <label>Description</label>\n @if (editMode) {\n <kendo-textarea \n [(ngModel)]=\"description\"\n name=\"description\"\n [rows]=\"3\"\n placeholder=\"Enter parameter description...\"\n style=\"width: 100%;\">\n </kendo-textarea>\n } @else {\n <div class=\"readonly-value description\">{{ description || 'No description provided' }}</div>\n }\n </div>\n\n <!-- Default Value -->\n <div class=\"form-field\">\n <label>Default Value</label>\n @if (editMode) {\n <kendo-textbox \n [(ngModel)]=\"defaultValue\"\n name=\"defaultValue\"\n placeholder=\"Enter default value...\"\n style=\"width: 100%;\">\n </kendo-textbox>\n } @else {\n <div class=\"readonly-value\">\n @if (defaultValue) {\n <code>{{ defaultValue }}</code>\n } @else {\n <span style=\"color: #6c757d;\">No default value</span>\n }\n </div>\n }\n </div>\n\n <!-- Checkboxes -->\n <div class=\"form-field-row\">\n <div class=\"checkbox-field\">\n <label>\n @if (editMode) {\n <kendo-switch \n [(ngModel)]=\"isRequired\"\n name=\"isRequired\">\n </kendo-switch>\n } @else {\n <i class=\"fa-solid\" [class.fa-check-circle]=\"isRequired\" [class.fa-times-circle]=\"!isRequired\"\n [style.color]=\"isRequired ? '#28a745' : '#6c757d'\"></i>\n }\n <span style=\"margin-left: 8px;\">Required Parameter</span>\n </label>\n </div>\n \n <div class=\"checkbox-field\">\n <label>\n @if (editMode) {\n <kendo-switch \n [(ngModel)]=\"isArray\"\n name=\"isArray\">\n </kendo-switch>\n } @else {\n <i class=\"fa-solid\" [class.fa-check-circle]=\"isArray\" [class.fa-times-circle]=\"!isArray\"\n [style.color]=\"isArray ? '#28a745' : '#6c757d'\"></i>\n }\n <span style=\"margin-left: 8px;\">Array Type</span>\n </label>\n </div>\n </div>\n </form>\n</div>\n\n<kendo-dialog-actions>\n @if (editMode) {\n <button kendoButton (click)=\"cancel()\">Cancel</button>\n <button kendoButton themeColor=\"primary\" (click)=\"save()\">Save</button>\n } @else {\n <button kendoButton themeColor=\"primary\" (click)=\"cancel()\">Close</button>\n }\n</kendo-dialog-actions>", styles: [".param-dialog-content {\n padding: 20px;\n min-width: 400px;\n}\n\n.param-form {\n display: flex;\n flex-direction: column;\n gap: 20px;\n}\n\n.form-field {\n display: flex;\n flex-direction: column;\n gap: 8px;\n}\n\n.form-field label {\n font-weight: 600;\n color: #495057;\n font-size: 0.9em;\n}\n\n.required {\n color: #dc3545;\n margin-left: 4px;\n}\n\n.readonly-value {\n padding: 8px 12px;\n background: #f8f9fa;\n border: 1px solid #e9ecef;\n border-radius: 4px;\n color: #495057;\n}\n\n.readonly-value.description {\n line-height: 1.5;\n white-space: pre-wrap;\n}\n\n.readonly-value code {\n background: #e9ecef;\n padding: 2px 6px;\n border-radius: 3px;\n font-family: 'Courier New', monospace;\n color: #e83e8c;\n}\n\n.type-badge {\n display: inline-block;\n padding: 4px 12px;\n border-radius: 12px;\n font-weight: 500;\n font-size: 0.85em;\n}\n\n.type-badge.type-input {\n background: #cfe2ff;\n color: #084298;\n}\n\n.type-badge.type-output {\n background: #d1e7dd;\n color: #0f5132;\n}\n\n.type-badge.type-both {\n background: #e0cffc;\n color: #432874;\n}\n\n.form-field-row {\n display: flex;\n gap: 24px;\n margin-top: 8px;\n}\n\n.checkbox-field {\n display: flex;\n align-items: center;\n}\n\n.checkbox-field label {\n display: flex;\n align-items: center;\n margin: 0;\n font-weight: normal;\n}"] }]
|
|
313
|
-
}], () => [{ type: i1.DialogRef }], { param: [{
|
|
314
|
-
type: Input
|
|
315
|
-
}], isNew: [{
|
|
316
|
-
type: Input
|
|
317
|
-
}], editMode: [{
|
|
318
|
-
type: Input
|
|
319
|
-
}] }); })();
|
|
320
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ActionParamDialogComponent, { className: "ActionParamDialogComponent", filePath: "src/lib/custom/Actions/action-param-dialog.component.ts", lineNumber: 10 }); })();
|
|
321
|
-
//# sourceMappingURL=action-param-dialog.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action-param-dialog.component.js","sourceRoot":"","sources":["../../../../src/lib/custom/Actions/action-param-dialog.component.ts","../../../../src/lib/custom/Actions/action-param-dialog.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;;;;;;;;ICcrC,+BAAuB;IAAA,iBAAC;IAAA,iBAAO;;;;IAInC,yCAIyB;IAHrB,6TAAuB;IAI3B,iBAAgB;;;IAJZ,gDAAuB;;;IAM3B,8BAA4B;IAAA,YAAwB;IAAA,iBAAM;;;IAA9B,cAAwB;IAAxB,+CAAwB;;;IAShD,+BAAuB;IAAA,iBAAC;IAAA,iBAAO;;;;IAInC,8CAOyB;IANrB,kUAAuB;IAO3B,iBAAqB;;;IAPjB,gDAAuB;IAKvB,AAHA,wCAAmB,wBAGI;;;IAKvB,AADJ,8BAA4B,eAC6C;IACjE,YACJ;IACJ,AADI,iBAAO,EACL;;;IAHuB,cAA2C;IAA3C,uDAA2C;IAChE,cACJ;IADI,iDACJ;;;IAUA,+BAAuB;IAAA,iBAAC;IAAA,iBAAO;;;;IAInC,8CAOyB;IANrB,kUAAuB;IAO3B,iBAAqB;;;IAPjB,gDAAuB;IAKvB,AAHA,wCAAmB,wBAGI;;;IAI3B,8BAA4B;IAAA,YAAe;IAAA,iBAAM;;;IAArB,cAAe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AGb,iBAAM;YAIF,AADJ,+BAAwB,aACb;YAAA,4BAAW;YAAA,iBAAQ;YASxB,AARF,iGAAgB,yEAQP;YAGb,iBAAM;YAIF,AADJ,+BAAwB,aACb;YAAA,8BAAa;YAAA,iBAAQ;YAQ1B,AAPF,gGAAgB,wEAOP;YASb,iBAAM;YAKE,AADJ,AADJ,gCAA4B,eACI,aACjB;YAMD,AALF,+FAAgB,uEAKP;YAIT,iCAAgC;YAAA,mCAAkB;YAE1D,AADI,AADsD,iBAAO,EACrD,EACN;YAGF,AADJ,gCAA4B,aACjB;YAMD,AALF,+FAAgB,uEAKP;YAIT,iCAAgC;YAAA,2BAAU;YAK9D,AADI,AADI,AADI,AADI,AAD8C,iBAAO,EAC7C,EACN,EACJ,EACH,EACL;YAEN,6CAAsB;YAIhB,AAHF,2EAAgB,4EAGP;YAGb,iBAAuB;;YA3Jf,eACJ;YADI,oHACJ;YASY,eAEC;YAFD,uCAEC;YAEL,cASC;YATD,wCASC;YAOG,eAEC;YAFD,wCAEC;YAEL,cAgBC;YAhBD,wCAgBC;YAOG,eAEC;YAFD,wCAEC;YAEL,cAYC;YAZD,wCAYC;YAMD,eAUC;YAVD,wCAUC;YAMD,eAeC;YAfD,wCAeC;YAOO,eAQC;YARD,wCAQC;YAOD,eAQC;YARD,wCAQC;YASjB,eAKC;YALD,wCAKC;;;iFDpJQ,0BAA0B;cALtC,SAAS;2BACI,wBAAwB;0CAKzB,KAAK;kBAAb,KAAK;YACG,KAAK;kBAAb,KAAK;YACG,QAAQ;kBAAhB,KAAK;;kFAHG,0BAA0B"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DialogRef } from '@progress/kendo-angular-dialog';
|
|
3
|
-
import { ActionResultCodeEntity } from '@memberjunction/core-entities';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ActionResultCodeDialogComponent implements OnInit {
|
|
6
|
-
dialogRef: DialogRef;
|
|
7
|
-
resultCode: ActionResultCodeEntity;
|
|
8
|
-
isNew: boolean;
|
|
9
|
-
editMode: boolean;
|
|
10
|
-
code: string;
|
|
11
|
-
description: string;
|
|
12
|
-
isSuccess: boolean;
|
|
13
|
-
constructor(dialogRef: DialogRef);
|
|
14
|
-
ngOnInit(): void;
|
|
15
|
-
save(): void;
|
|
16
|
-
cancel(): void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ActionResultCodeDialogComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActionResultCodeDialogComponent, "mj-action-result-code-dialog", never, { "resultCode": { "alias": "resultCode"; "required": false; }; "isNew": { "alias": "isNew"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; }, {}, never, never, false, never>;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=action-result-code-dialog.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action-result-code-dialog.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/custom/Actions/action-result-code-dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;;AAEvE,qBAKa,+BAAgC,YAAW,MAAM;IAW/C,SAAS,EAAE,SAAS;IAVtB,UAAU,EAAG,sBAAsB,CAAC;IACpC,KAAK,EAAE,OAAO,CAAS;IACvB,QAAQ,EAAE,OAAO,CAAS;IAG5B,IAAI,EAAE,MAAM,CAAM;IAClB,WAAW,EAAE,MAAM,CAAM;IACzB,SAAS,EAAE,OAAO,CAAS;gBAGvB,SAAS,EAAE,SAAS;IAG/B,QAAQ;IASR,IAAI;IAUJ,MAAM;yCAjCG,+BAA+B;2CAA/B,+BAA+B;CAoC3C"}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { Component, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@progress/kendo-angular-dialog";
|
|
4
|
-
import * as i2 from "@angular/forms";
|
|
5
|
-
import * as i3 from "@progress/kendo-angular-inputs";
|
|
6
|
-
import * as i4 from "@progress/kendo-angular-buttons";
|
|
7
|
-
function ActionResultCodeDialogComponent_Conditional_23_Template(rf, ctx) { if (rf & 1) {
|
|
8
|
-
i0.ɵɵelement(0, "i", 14);
|
|
9
|
-
i0.ɵɵtext(1, " This result indicates successful execution ");
|
|
10
|
-
} }
|
|
11
|
-
function ActionResultCodeDialogComponent_Conditional_24_Template(rf, ctx) { if (rf & 1) {
|
|
12
|
-
i0.ɵɵelement(0, "i", 15);
|
|
13
|
-
i0.ɵɵtext(1, " This result indicates failed or partial execution ");
|
|
14
|
-
} }
|
|
15
|
-
function ActionResultCodeDialogComponent_Conditional_30_Template(rf, ctx) { if (rf & 1) {
|
|
16
|
-
const _r1 = i0.ɵɵgetCurrentView();
|
|
17
|
-
i0.ɵɵelementStart(0, "button", 16);
|
|
18
|
-
i0.ɵɵlistener("click", function ActionResultCodeDialogComponent_Conditional_30_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.save()); });
|
|
19
|
-
i0.ɵɵtext(1);
|
|
20
|
-
i0.ɵɵelementEnd();
|
|
21
|
-
} if (rf & 2) {
|
|
22
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
23
|
-
i0.ɵɵproperty("primary", true)("disabled", !ctx_r1.code);
|
|
24
|
-
i0.ɵɵadvance();
|
|
25
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.isNew ? "Add" : "Save", " ");
|
|
26
|
-
} }
|
|
27
|
-
export class ActionResultCodeDialogComponent {
|
|
28
|
-
constructor(dialogRef) {
|
|
29
|
-
this.dialogRef = dialogRef;
|
|
30
|
-
this.isNew = false;
|
|
31
|
-
this.editMode = false;
|
|
32
|
-
// Form fields
|
|
33
|
-
this.code = '';
|
|
34
|
-
this.description = '';
|
|
35
|
-
this.isSuccess = false;
|
|
36
|
-
}
|
|
37
|
-
ngOnInit() {
|
|
38
|
-
if (this.resultCode) {
|
|
39
|
-
// Load existing values
|
|
40
|
-
this.code = this.resultCode.ResultCode || '';
|
|
41
|
-
this.description = this.resultCode.Description || '';
|
|
42
|
-
this.isSuccess = this.resultCode.IsSuccess || false;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
save() {
|
|
46
|
-
// Update the result code entity with form values
|
|
47
|
-
this.resultCode.ResultCode = this.code;
|
|
48
|
-
this.resultCode.Description = this.description;
|
|
49
|
-
this.resultCode.IsSuccess = this.isSuccess;
|
|
50
|
-
// Close dialog and pass back the updated result code
|
|
51
|
-
this.dialogRef.close({ resultCode: this.resultCode, save: true });
|
|
52
|
-
}
|
|
53
|
-
cancel() {
|
|
54
|
-
this.dialogRef.close({ save: false });
|
|
55
|
-
}
|
|
56
|
-
static { this.ɵfac = function ActionResultCodeDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ActionResultCodeDialogComponent)(i0.ɵɵdirectiveInject(i1.DialogRef)); }; }
|
|
57
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ActionResultCodeDialogComponent, selectors: [["mj-action-result-code-dialog"]], inputs: { resultCode: "resultCode", isNew: "isNew", editMode: "editMode" }, decls: 31, vars: 10, consts: [[1, "dialog-title"], [1, "fa-solid", "fa-clipboard-check"], [1, "dialog-content"], [1, "form-group"], [1, "form-label", "required"], ["placeholder", "Enter result code (e.g., SUCCESS, ERROR_TIMEOUT)", 1, "form-control", 3, "ngModelChange", "ngModel", "disabled"], [1, "form-hint"], [1, "form-label"], ["placeholder", "Describe what this result code means", 1, "form-control", 3, "ngModelChange", "ngModel", "disabled", "rows"], [1, "checkbox-wrapper"], [3, "ngModelChange", "ngModel", "disabled"], [1, "checkbox-label"], ["kendoButton", "", 3, "click"], ["kendoButton", "", 3, "primary", "disabled"], [1, "fa-solid", "fa-check-circle", "success-icon"], [1, "fa-solid", "fa-times-circle", "error-icon"], ["kendoButton", "", 3, "click", "primary", "disabled"]], template: function ActionResultCodeDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
58
|
-
i0.ɵɵelementStart(0, "kendo-dialog-titlebar")(1, "span", 0);
|
|
59
|
-
i0.ɵɵelement(2, "i", 1);
|
|
60
|
-
i0.ɵɵtext(3);
|
|
61
|
-
i0.ɵɵelementEnd()();
|
|
62
|
-
i0.ɵɵelementStart(4, "div", 2)(5, "div", 3)(6, "label", 4);
|
|
63
|
-
i0.ɵɵtext(7, "Result Code");
|
|
64
|
-
i0.ɵɵelementEnd();
|
|
65
|
-
i0.ɵɵelementStart(8, "kendo-textbox", 5);
|
|
66
|
-
i0.ɵɵtwoWayListener("ngModelChange", function ActionResultCodeDialogComponent_Template_kendo_textbox_ngModelChange_8_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.code, $event) || (ctx.code = $event); return $event; });
|
|
67
|
-
i0.ɵɵelementEnd();
|
|
68
|
-
i0.ɵɵelementStart(9, "div", 6);
|
|
69
|
-
i0.ɵɵtext(10, "A unique code that identifies this result type");
|
|
70
|
-
i0.ɵɵelementEnd()();
|
|
71
|
-
i0.ɵɵelementStart(11, "div", 3)(12, "label", 7);
|
|
72
|
-
i0.ɵɵtext(13, "Description");
|
|
73
|
-
i0.ɵɵelementEnd();
|
|
74
|
-
i0.ɵɵelementStart(14, "kendo-textarea", 8);
|
|
75
|
-
i0.ɵɵtwoWayListener("ngModelChange", function ActionResultCodeDialogComponent_Template_kendo_textarea_ngModelChange_14_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.description, $event) || (ctx.description = $event); return $event; });
|
|
76
|
-
i0.ɵɵelementEnd();
|
|
77
|
-
i0.ɵɵelementStart(15, "div", 6);
|
|
78
|
-
i0.ɵɵtext(16, "Explain when this result code is returned");
|
|
79
|
-
i0.ɵɵelementEnd()();
|
|
80
|
-
i0.ɵɵelementStart(17, "div", 3)(18, "label", 7);
|
|
81
|
-
i0.ɵɵtext(19, "Success Status");
|
|
82
|
-
i0.ɵɵelementEnd();
|
|
83
|
-
i0.ɵɵelementStart(20, "div", 9)(21, "kendo-checkbox", 10);
|
|
84
|
-
i0.ɵɵtwoWayListener("ngModelChange", function ActionResultCodeDialogComponent_Template_kendo_checkbox_ngModelChange_21_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.isSuccess, $event) || (ctx.isSuccess = $event); return $event; });
|
|
85
|
-
i0.ɵɵelementEnd();
|
|
86
|
-
i0.ɵɵelementStart(22, "span", 11);
|
|
87
|
-
i0.ɵɵtemplate(23, ActionResultCodeDialogComponent_Conditional_23_Template, 2, 0)(24, ActionResultCodeDialogComponent_Conditional_24_Template, 2, 0);
|
|
88
|
-
i0.ɵɵelementEnd()();
|
|
89
|
-
i0.ɵɵelementStart(25, "div", 6);
|
|
90
|
-
i0.ɵɵtext(26, "Determines if this code represents a successful outcome");
|
|
91
|
-
i0.ɵɵelementEnd()()();
|
|
92
|
-
i0.ɵɵelementStart(27, "kendo-dialog-actions")(28, "button", 12);
|
|
93
|
-
i0.ɵɵlistener("click", function ActionResultCodeDialogComponent_Template_button_click_28_listener() { return ctx.cancel(); });
|
|
94
|
-
i0.ɵɵtext(29, " Cancel ");
|
|
95
|
-
i0.ɵɵelementEnd();
|
|
96
|
-
i0.ɵɵtemplate(30, ActionResultCodeDialogComponent_Conditional_30_Template, 2, 3, "button", 13);
|
|
97
|
-
i0.ɵɵelementEnd();
|
|
98
|
-
} if (rf & 2) {
|
|
99
|
-
i0.ɵɵadvance(3);
|
|
100
|
-
i0.ɵɵtextInterpolate1(" ", ctx.isNew ? "Add" : "Edit", " Result Code ");
|
|
101
|
-
i0.ɵɵadvance(5);
|
|
102
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx.code);
|
|
103
|
-
i0.ɵɵproperty("disabled", !ctx.editMode);
|
|
104
|
-
i0.ɵɵadvance(6);
|
|
105
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx.description);
|
|
106
|
-
i0.ɵɵproperty("disabled", !ctx.editMode)("rows", 3);
|
|
107
|
-
i0.ɵɵadvance(7);
|
|
108
|
-
i0.ɵɵtwoWayProperty("ngModel", ctx.isSuccess);
|
|
109
|
-
i0.ɵɵproperty("disabled", !ctx.editMode);
|
|
110
|
-
i0.ɵɵadvance(2);
|
|
111
|
-
i0.ɵɵconditional(ctx.isSuccess ? 23 : 24);
|
|
112
|
-
i0.ɵɵadvance(7);
|
|
113
|
-
i0.ɵɵconditional(ctx.editMode ? 30 : -1);
|
|
114
|
-
} }, dependencies: [i2.NgControlStatus, i2.NgModel, i1.DialogTitleBarComponent, i1.DialogActionsComponent, i3.TextAreaComponent, i3.TextBoxComponent, i3.CheckBoxComponent, i4.ButtonComponent], styles: [".dialog-title[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 1.1rem;\n font-weight: 600;\n}\n\n.dialog-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: #6f42c1;\n}\n\n.dialog-content[_ngcontent-%COMP%] {\n padding: 20px;\n max-height: 60vh;\n overflow-y: auto;\n}\n\n.form-group[_ngcontent-%COMP%] {\n margin-bottom: 20px;\n}\n\n.form-label[_ngcontent-%COMP%] {\n display: block;\n margin-bottom: 6px;\n font-weight: 500;\n color: #333;\n font-size: 0.9rem;\n}\n\n.form-label.required[_ngcontent-%COMP%]::after {\n content: ' *';\n color: #dc3545;\n}\n\n.form-control[_ngcontent-%COMP%] {\n width: 100%;\n}\n\n.form-hint[_ngcontent-%COMP%] {\n margin-top: 4px;\n font-size: 0.85rem;\n color: #6c757d;\n}\n\n.checkbox-wrapper[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 10px;\n margin-top: 8px;\n}\n\n.checkbox-label[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 0.95rem;\n}\n\n.success-icon[_ngcontent-%COMP%] {\n color: #28a745;\n}\n\n.error-icon[_ngcontent-%COMP%] {\n color: #dc3545;\n}\n\nkendo-dialog-actions[_ngcontent-%COMP%] {\n padding: 15px 20px;\n background: #f8f9fa;\n border-top: 1px solid #dee2e6;\n}"] }); }
|
|
115
|
-
}
|
|
116
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ActionResultCodeDialogComponent, [{
|
|
117
|
-
type: Component,
|
|
118
|
-
args: [{ selector: 'mj-action-result-code-dialog', template: "<kendo-dialog-titlebar>\n <span class=\"dialog-title\">\n <i class=\"fa-solid fa-clipboard-check\"></i>\n {{ isNew ? 'Add' : 'Edit' }} Result Code\n </span>\n</kendo-dialog-titlebar>\n\n<div class=\"dialog-content\">\n <div class=\"form-group\">\n <label class=\"form-label required\">Result Code</label>\n <kendo-textbox \n [(ngModel)]=\"code\"\n [disabled]=\"!editMode\"\n placeholder=\"Enter result code (e.g., SUCCESS, ERROR_TIMEOUT)\"\n class=\"form-control\">\n </kendo-textbox>\n <div class=\"form-hint\">A unique code that identifies this result type</div>\n </div>\n \n <div class=\"form-group\">\n <label class=\"form-label\">Description</label>\n <kendo-textarea \n [(ngModel)]=\"description\"\n [disabled]=\"!editMode\"\n [rows]=\"3\"\n placeholder=\"Describe what this result code means\"\n class=\"form-control\">\n </kendo-textarea>\n <div class=\"form-hint\">Explain when this result code is returned</div>\n </div>\n \n <div class=\"form-group\">\n <label class=\"form-label\">Success Status</label>\n <div class=\"checkbox-wrapper\">\n <kendo-checkbox \n [(ngModel)]=\"isSuccess\"\n [disabled]=\"!editMode\">\n </kendo-checkbox>\n <span class=\"checkbox-label\">\n @if (isSuccess) {\n <i class=\"fa-solid fa-check-circle success-icon\"></i>\n This result indicates successful execution\n } @else {\n <i class=\"fa-solid fa-times-circle error-icon\"></i>\n This result indicates failed or partial execution\n }\n </span>\n </div>\n <div class=\"form-hint\">Determines if this code represents a successful outcome</div>\n </div>\n</div>\n\n<kendo-dialog-actions>\n <button kendoButton (click)=\"cancel()\">\n Cancel\n </button>\n @if (editMode) {\n <button kendoButton [primary]=\"true\" (click)=\"save()\" [disabled]=\"!code\">\n {{ isNew ? 'Add' : 'Save' }}\n </button>\n }\n</kendo-dialog-actions>", styles: [".dialog-title {\n display: flex;\n align-items: center;\n gap: 8px;\n font-size: 1.1rem;\n font-weight: 600;\n}\n\n.dialog-title i {\n color: #6f42c1;\n}\n\n.dialog-content {\n padding: 20px;\n max-height: 60vh;\n overflow-y: auto;\n}\n\n.form-group {\n margin-bottom: 20px;\n}\n\n.form-label {\n display: block;\n margin-bottom: 6px;\n font-weight: 500;\n color: #333;\n font-size: 0.9rem;\n}\n\n.form-label.required::after {\n content: ' *';\n color: #dc3545;\n}\n\n.form-control {\n width: 100%;\n}\n\n.form-hint {\n margin-top: 4px;\n font-size: 0.85rem;\n color: #6c757d;\n}\n\n.checkbox-wrapper {\n display: flex;\n align-items: center;\n gap: 10px;\n margin-top: 8px;\n}\n\n.checkbox-label {\n display: flex;\n align-items: center;\n gap: 6px;\n font-size: 0.95rem;\n}\n\n.success-icon {\n color: #28a745;\n}\n\n.error-icon {\n color: #dc3545;\n}\n\nkendo-dialog-actions {\n padding: 15px 20px;\n background: #f8f9fa;\n border-top: 1px solid #dee2e6;\n}"] }]
|
|
119
|
-
}], () => [{ type: i1.DialogRef }], { resultCode: [{
|
|
120
|
-
type: Input
|
|
121
|
-
}], isNew: [{
|
|
122
|
-
type: Input
|
|
123
|
-
}], editMode: [{
|
|
124
|
-
type: Input
|
|
125
|
-
}] }); })();
|
|
126
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ActionResultCodeDialogComponent, { className: "ActionResultCodeDialogComponent", filePath: "src/lib/custom/Actions/action-result-code-dialog.component.ts", lineNumber: 10 }); })();
|
|
127
|
-
//# sourceMappingURL=action-result-code-dialog.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action-result-code-dialog.component.js","sourceRoot":"","sources":["../../../../src/lib/custom/Actions/action-result-code-dialog.component.ts","../../../../src/lib/custom/Actions/action-result-code-dialog.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAU,MAAM,eAAe,CAAC;;;;;;;ICwCrC,wBAAqD;IACrD,4DACJ;;;IACI,wBAAmD;IACnD,mEACJ;;;;IAYR,kCAAyE;IAApC,oMAAS,aAAM,KAAC;IACjD,YACJ;IAAA,iBAAS;;;IAF6C,AAAlC,8BAAgB,0BAAoC;IACpE,cACJ;IADI,8DACJ;;ADlDR,MAAM,OAAO,+BAA+B;IAUxC,YACW,SAAoB;QAApB,cAAS,GAAT,SAAS,CAAW;QATtB,UAAK,GAAY,KAAK,CAAC;QACvB,aAAQ,GAAY,KAAK,CAAC;QAEnC,cAAc;QACP,SAAI,GAAW,EAAE,CAAC;QAClB,gBAAW,GAAW,EAAE,CAAC;QACzB,cAAS,GAAY,KAAK,CAAC;IAI/B,CAAC;IAEJ,QAAQ;QACJ,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YAClB,uBAAuB;YACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,UAAU,CAAC,UAAU,IAAI,EAAE,CAAC;YAC7C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC,WAAW,IAAI,EAAE,CAAC;YACrD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,IAAI,KAAK,CAAC;QACxD,CAAC;IACL,CAAC;IAED,IAAI;QACA,iDAAiD;QACjD,IAAI,CAAC,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC;QACvC,IAAI,CAAC,UAAU,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QAC/C,IAAI,CAAC,UAAU,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;QAE3C,qDAAqD;QACrD,IAAI,C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IC;;;iFDnDQ,+BAA+B;cAL3C,SAAS;2BACI,8BAA8B;0CAK/B,UAAU;kBAAlB,KAAK;YACG,KAAK;kBAAb,KAAK;YACG,QAAQ;kBAAhB,KAAK;;kFAHG,+BAA+B"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DialogRef } from '@progress/kendo-angular-dialog';
|
|
3
|
-
import { ActionEntity, ActionParamEntity } from '@memberjunction/core-entities';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ActionTestHarnessDialogComponent implements OnInit {
|
|
6
|
-
private dialog;
|
|
7
|
-
action: ActionEntity;
|
|
8
|
-
actionParams: ActionParamEntity[];
|
|
9
|
-
constructor(dialog: DialogRef);
|
|
10
|
-
ngOnInit(): void;
|
|
11
|
-
close(): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ActionTestHarnessDialogComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ActionTestHarnessDialogComponent, "mj-action-test-harness-dialog", never, { "action": { "alias": "action"; "required": false; }; "actionParams": { "alias": "actionParams"; "required": false; }; }, {}, never, never, false, never>;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=action-test-harness-dialog.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action-test-harness-dialog.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/custom/Actions/action-test-harness-dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;;AAEhF,qBAsCa,gCAAiC,YAAW,MAAM;IAKvD,OAAO,CAAC,MAAM;IAJT,MAAM,EAAG,YAAY,CAAC;IACtB,YAAY,EAAE,iBAAiB,EAAE,CAAM;gBAGpC,MAAM,EAAE,SAAS;IAG7B,QAAQ;IAIR,KAAK;yCAZI,gCAAgC;2CAAhC,gCAAgC;CAe5C"}
|