@memberjunction/ng-actions 0.0.1 → 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/action-param-dialog/action-param-dialog.component.d.ts +60 -0
- package/dist/lib/action-param-dialog/action-param-dialog.component.d.ts.map +1 -0
- package/dist/lib/action-param-dialog/action-param-dialog.component.js +424 -0
- package/dist/lib/action-param-dialog/action-param-dialog.component.js.map +1 -0
- package/dist/lib/action-result-code-dialog/action-result-code-dialog.component.d.ts +48 -0
- package/dist/lib/action-result-code-dialog/action-result-code-dialog.component.d.ts.map +1 -0
- package/dist/lib/action-result-code-dialog/action-result-code-dialog.component.js +213 -0
- package/dist/lib/action-result-code-dialog/action-result-code-dialog.component.js.map +1 -0
- package/dist/lib/action-test-harness/action-test-harness.component.d.ts +70 -0
- package/dist/lib/action-test-harness/action-test-harness.component.d.ts.map +1 -0
- package/dist/lib/action-test-harness/action-test-harness.component.js +850 -0
- package/dist/lib/action-test-harness/action-test-harness.component.js.map +1 -0
- package/dist/lib/action-test-harness-dialog/action-test-harness-dialog.component.d.ts +38 -0
- package/dist/lib/action-test-harness-dialog/action-test-harness-dialog.component.d.ts.map +1 -0
- package/dist/lib/action-test-harness-dialog/action-test-harness-dialog.component.js +140 -0
- package/dist/lib/action-test-harness-dialog/action-test-harness-dialog.component.js.map +1 -0
- package/dist/lib/actions.module.d.ts +14 -0
- package/dist/lib/actions.module.d.ts.map +1 -0
- package/dist/lib/actions.module.js +48 -0
- package/dist/lib/actions.module.js.map +1 -0
- package/dist/public-api.d.ts +12 -0
- package/dist/public-api.d.ts.map +1 -0
- package/dist/public-api.js +17 -0
- package/dist/public-api.js.map +1 -0
- package/package.json +41 -6
- package/README.md +0 -45
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { ActionParamEntity } from '@memberjunction/core-entities';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface ActionParamDialogResult {
|
|
5
|
+
Param: ActionParamEntity;
|
|
6
|
+
Save: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A dialog component for editing action parameters.
|
|
10
|
+
* This component provides a form for creating and editing action parameters.
|
|
11
|
+
*
|
|
12
|
+
* Usage:
|
|
13
|
+
* <mj-action-param-dialog
|
|
14
|
+
* [Param]="myParam"
|
|
15
|
+
* [IsNew]="false"
|
|
16
|
+
* [EditMode]="true"
|
|
17
|
+
* [IsOpen]="showDialog"
|
|
18
|
+
* (Close)="onDialogClose($event)">
|
|
19
|
+
* </mj-action-param-dialog>
|
|
20
|
+
*/
|
|
21
|
+
export declare class ActionParamDialogComponent implements OnInit {
|
|
22
|
+
private _param;
|
|
23
|
+
private _isNew;
|
|
24
|
+
private _editMode;
|
|
25
|
+
private _isOpen;
|
|
26
|
+
set Param(value: ActionParamEntity);
|
|
27
|
+
get Param(): ActionParamEntity;
|
|
28
|
+
set IsNew(value: boolean);
|
|
29
|
+
get IsNew(): boolean;
|
|
30
|
+
set EditMode(value: boolean);
|
|
31
|
+
get EditMode(): boolean;
|
|
32
|
+
set IsOpen(value: boolean);
|
|
33
|
+
get IsOpen(): boolean;
|
|
34
|
+
Close: EventEmitter<ActionParamDialogResult>;
|
|
35
|
+
ParamName: string;
|
|
36
|
+
ParamType: 'Input' | 'Output' | 'Both';
|
|
37
|
+
ValueType: 'Scalar' | 'Simple Object' | 'BaseEntity Sub-Class' | 'Other' | 'MediaOutput';
|
|
38
|
+
Description: string;
|
|
39
|
+
DefaultValue: string;
|
|
40
|
+
IsRequired: boolean;
|
|
41
|
+
IsArray: boolean;
|
|
42
|
+
ValueTypes: {
|
|
43
|
+
Text: string;
|
|
44
|
+
Value: string;
|
|
45
|
+
}[];
|
|
46
|
+
ParamTypes: {
|
|
47
|
+
Text: string;
|
|
48
|
+
Value: string;
|
|
49
|
+
}[];
|
|
50
|
+
ngOnInit(): void;
|
|
51
|
+
private loadParamValues;
|
|
52
|
+
OnSave(): void;
|
|
53
|
+
OnCancel(): void;
|
|
54
|
+
OnBackdropClick(event: MouseEvent): void;
|
|
55
|
+
GetTypeClass(type: string): string;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionParamDialogComponent, never>;
|
|
57
|
+
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; }; "IsOpen": { "alias": "IsOpen"; "required": false; }; }, { "Close": "Close"; }, never, never, false, never>;
|
|
58
|
+
}
|
|
59
|
+
export declare function LoadActionParamDialogComponent(): void;
|
|
60
|
+
//# sourceMappingURL=action-param-dialog.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-param-dialog.component.d.ts","sourceRoot":"","sources":["../../../src/lib/action-param-dialog/action-param-dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;;AAElE,MAAM,WAAW,uBAAuB;IACpC,KAAK,EAAE,iBAAiB,CAAC;IACzB,IAAI,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;;;GAYG;AACH,qBAKa,0BAA2B,YAAW,MAAM;IAErD,OAAO,CAAC,MAAM,CAAqB;IACnC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,OAAO,CAAS;IAExB,IACI,KAAK,CAAC,KAAK,EAAE,iBAAiB,EAKjC;IACD,IAAI,KAAK,IAAI,iBAAiB,CAE7B;IAED,IACI,KAAK,CAAC,KAAK,EAAE,OAAO,EAEvB;IACD,IAAI,KAAK,IAAI,OAAO,CAEnB;IAED,IACI,QAAQ,CAAC,KAAK,EAAE,OAAO,EAE1B;IACD,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IACI,MAAM,CAAC,KAAK,EAAE,OAAO,EAQxB;IACD,IAAI,MAAM,IAAI,OAAO,CAEpB;IAES,KAAK,wCAA+C;IAGvD,SAAS,SAAM;IACf,SAAS,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAW;IACjD,SAAS,EAAE,QAAQ,GAAG,eAAe,GAAG,sBAAsB,GAAG,OAAO,GAAG,aAAa,CAAY;IACpG,WAAW,SAAM;IACjB,YAAY,SAAM;IAClB,UAAU,UAAS;IACnB,OAAO,UAAS;IAGhB,UAAU;;;QAMf;IAEK,UAAU;;;QAIf;IAEF,QAAQ,IAAI,IAAI;IAIhB,OAAO,CAAC,eAAe;IAYhB,MAAM,IAAI,IAAI;IAed,QAAQ,IAAI,IAAI;IAKhB,eAAe,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAMxC,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;yCApHhC,0BAA0B;2CAA1B,0BAA0B;CAuHtC;AAGD,wBAAgB,8BAA8B,IAAI,IAAI,CAErD"}
|
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@angular/forms";
|
|
4
|
+
const _forTrack0 = ($index, $item) => $item.Value;
|
|
5
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
6
|
+
i0.ɵɵelementStart(0, "span", 11);
|
|
7
|
+
i0.ɵɵtext(1, "*");
|
|
8
|
+
i0.ɵɵelementEnd();
|
|
9
|
+
} }
|
|
10
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_14_Template(rf, ctx) { if (rf & 1) {
|
|
11
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
12
|
+
i0.ɵɵelementStart(0, "input", 26);
|
|
13
|
+
i0.ɵɵtwoWayListener("ngModelChange", function ActionParamDialogComponent_Conditional_0_Conditional_14_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.ParamName, $event) || (ctx_r1.ParamName = $event); return i0.ɵɵresetView($event); });
|
|
14
|
+
i0.ɵɵelementEnd();
|
|
15
|
+
} if (rf & 2) {
|
|
16
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
17
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.ParamName);
|
|
18
|
+
} }
|
|
19
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_15_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
+
i0.ɵɵelementStart(0, "div", 13);
|
|
21
|
+
i0.ɵɵtext(1);
|
|
22
|
+
i0.ɵɵelementEnd();
|
|
23
|
+
} if (rf & 2) {
|
|
24
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
25
|
+
i0.ɵɵadvance();
|
|
26
|
+
i0.ɵɵtextInterpolate(ctx_r1.ParamName || "N/A");
|
|
27
|
+
} }
|
|
28
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_19_Template(rf, ctx) { if (rf & 1) {
|
|
29
|
+
i0.ɵɵelementStart(0, "span", 11);
|
|
30
|
+
i0.ɵɵtext(1, "*");
|
|
31
|
+
i0.ɵɵelementEnd();
|
|
32
|
+
} }
|
|
33
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_20_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
34
|
+
i0.ɵɵelementStart(0, "option", 28);
|
|
35
|
+
i0.ɵɵtext(1);
|
|
36
|
+
i0.ɵɵelementEnd();
|
|
37
|
+
} if (rf & 2) {
|
|
38
|
+
const pt_r5 = ctx.$implicit;
|
|
39
|
+
i0.ɵɵproperty("value", pt_r5.Value);
|
|
40
|
+
i0.ɵɵadvance();
|
|
41
|
+
i0.ɵɵtextInterpolate(pt_r5.Text);
|
|
42
|
+
} }
|
|
43
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_20_Template(rf, ctx) { if (rf & 1) {
|
|
44
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
45
|
+
i0.ɵɵelementStart(0, "select", 27);
|
|
46
|
+
i0.ɵɵtwoWayListener("ngModelChange", function ActionParamDialogComponent_Conditional_0_Conditional_20_Template_select_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.ParamType, $event) || (ctx_r1.ParamType = $event); return i0.ɵɵresetView($event); });
|
|
47
|
+
i0.ɵɵrepeaterCreate(1, ActionParamDialogComponent_Conditional_0_Conditional_20_For_2_Template, 2, 2, "option", 28, _forTrack0);
|
|
48
|
+
i0.ɵɵelementEnd();
|
|
49
|
+
} if (rf & 2) {
|
|
50
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
51
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.ParamType);
|
|
52
|
+
i0.ɵɵadvance();
|
|
53
|
+
i0.ɵɵrepeater(ctx_r1.ParamTypes);
|
|
54
|
+
} }
|
|
55
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_21_Template(rf, ctx) { if (rf & 1) {
|
|
56
|
+
i0.ɵɵelementStart(0, "div", 13)(1, "span", 29);
|
|
57
|
+
i0.ɵɵtext(2);
|
|
58
|
+
i0.ɵɵelementEnd()();
|
|
59
|
+
} if (rf & 2) {
|
|
60
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
61
|
+
i0.ɵɵadvance();
|
|
62
|
+
i0.ɵɵclassMap(ctx_r1.GetTypeClass(ctx_r1.ParamType));
|
|
63
|
+
i0.ɵɵadvance();
|
|
64
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.ParamType, " ");
|
|
65
|
+
} }
|
|
66
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_25_Template(rf, ctx) { if (rf & 1) {
|
|
67
|
+
i0.ɵɵelementStart(0, "span", 11);
|
|
68
|
+
i0.ɵɵtext(1, "*");
|
|
69
|
+
i0.ɵɵelementEnd();
|
|
70
|
+
} }
|
|
71
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_26_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
72
|
+
i0.ɵɵelementStart(0, "option", 28);
|
|
73
|
+
i0.ɵɵtext(1);
|
|
74
|
+
i0.ɵɵelementEnd();
|
|
75
|
+
} if (rf & 2) {
|
|
76
|
+
const vt_r7 = ctx.$implicit;
|
|
77
|
+
i0.ɵɵproperty("value", vt_r7.Value);
|
|
78
|
+
i0.ɵɵadvance();
|
|
79
|
+
i0.ɵɵtextInterpolate(vt_r7.Text);
|
|
80
|
+
} }
|
|
81
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_26_Template(rf, ctx) { if (rf & 1) {
|
|
82
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
83
|
+
i0.ɵɵelementStart(0, "select", 30);
|
|
84
|
+
i0.ɵɵtwoWayListener("ngModelChange", function ActionParamDialogComponent_Conditional_0_Conditional_26_Template_select_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.ValueType, $event) || (ctx_r1.ValueType = $event); return i0.ɵɵresetView($event); });
|
|
85
|
+
i0.ɵɵrepeaterCreate(1, ActionParamDialogComponent_Conditional_0_Conditional_26_For_2_Template, 2, 2, "option", 28, _forTrack0);
|
|
86
|
+
i0.ɵɵelementEnd();
|
|
87
|
+
} if (rf & 2) {
|
|
88
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
89
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.ValueType);
|
|
90
|
+
i0.ɵɵadvance();
|
|
91
|
+
i0.ɵɵrepeater(ctx_r1.ValueTypes);
|
|
92
|
+
} }
|
|
93
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_27_Template(rf, ctx) { if (rf & 1) {
|
|
94
|
+
i0.ɵɵelementStart(0, "div", 13);
|
|
95
|
+
i0.ɵɵtext(1);
|
|
96
|
+
i0.ɵɵelementEnd();
|
|
97
|
+
} if (rf & 2) {
|
|
98
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
99
|
+
i0.ɵɵadvance();
|
|
100
|
+
i0.ɵɵtextInterpolate(ctx_r1.ValueType);
|
|
101
|
+
} }
|
|
102
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_31_Template(rf, ctx) { if (rf & 1) {
|
|
103
|
+
const _r8 = i0.ɵɵgetCurrentView();
|
|
104
|
+
i0.ɵɵelementStart(0, "textarea", 31);
|
|
105
|
+
i0.ɵɵtwoWayListener("ngModelChange", function ActionParamDialogComponent_Conditional_0_Conditional_31_Template_textarea_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.Description, $event) || (ctx_r1.Description = $event); return i0.ɵɵresetView($event); });
|
|
106
|
+
i0.ɵɵelementEnd();
|
|
107
|
+
} if (rf & 2) {
|
|
108
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
109
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.Description);
|
|
110
|
+
} }
|
|
111
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_32_Template(rf, ctx) { if (rf & 1) {
|
|
112
|
+
i0.ɵɵelementStart(0, "div", 17);
|
|
113
|
+
i0.ɵɵtext(1);
|
|
114
|
+
i0.ɵɵelementEnd();
|
|
115
|
+
} if (rf & 2) {
|
|
116
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
117
|
+
i0.ɵɵadvance();
|
|
118
|
+
i0.ɵɵtextInterpolate(ctx_r1.Description || "No description provided");
|
|
119
|
+
} }
|
|
120
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_36_Template(rf, ctx) { if (rf & 1) {
|
|
121
|
+
const _r9 = i0.ɵɵgetCurrentView();
|
|
122
|
+
i0.ɵɵelementStart(0, "input", 32);
|
|
123
|
+
i0.ɵɵtwoWayListener("ngModelChange", function ActionParamDialogComponent_Conditional_0_Conditional_36_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.DefaultValue, $event) || (ctx_r1.DefaultValue = $event); return i0.ɵɵresetView($event); });
|
|
124
|
+
i0.ɵɵelementEnd();
|
|
125
|
+
} if (rf & 2) {
|
|
126
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
127
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.DefaultValue);
|
|
128
|
+
} }
|
|
129
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_37_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
130
|
+
i0.ɵɵelementStart(0, "code");
|
|
131
|
+
i0.ɵɵtext(1);
|
|
132
|
+
i0.ɵɵelementEnd();
|
|
133
|
+
} if (rf & 2) {
|
|
134
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
135
|
+
i0.ɵɵadvance();
|
|
136
|
+
i0.ɵɵtextInterpolate(ctx_r1.DefaultValue);
|
|
137
|
+
} }
|
|
138
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_37_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
139
|
+
i0.ɵɵelementStart(0, "span", 33);
|
|
140
|
+
i0.ɵɵtext(1, "No default value");
|
|
141
|
+
i0.ɵɵelementEnd();
|
|
142
|
+
} }
|
|
143
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_37_Template(rf, ctx) { if (rf & 1) {
|
|
144
|
+
i0.ɵɵelementStart(0, "div", 13);
|
|
145
|
+
i0.ɵɵtemplate(1, ActionParamDialogComponent_Conditional_0_Conditional_37_Conditional_1_Template, 2, 1, "code")(2, ActionParamDialogComponent_Conditional_0_Conditional_37_Conditional_2_Template, 2, 0, "span", 33);
|
|
146
|
+
i0.ɵɵelementEnd();
|
|
147
|
+
} if (rf & 2) {
|
|
148
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
149
|
+
i0.ɵɵadvance();
|
|
150
|
+
i0.ɵɵconditional(ctx_r1.DefaultValue ? 1 : 2);
|
|
151
|
+
} }
|
|
152
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_41_Template(rf, ctx) { if (rf & 1) {
|
|
153
|
+
const _r10 = i0.ɵɵgetCurrentView();
|
|
154
|
+
i0.ɵɵelementStart(0, "input", 34);
|
|
155
|
+
i0.ɵɵtwoWayListener("ngModelChange", function ActionParamDialogComponent_Conditional_0_Conditional_41_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.IsRequired, $event) || (ctx_r1.IsRequired = $event); return i0.ɵɵresetView($event); });
|
|
156
|
+
i0.ɵɵelementEnd();
|
|
157
|
+
i0.ɵɵelement(1, "span", 35);
|
|
158
|
+
} if (rf & 2) {
|
|
159
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
160
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.IsRequired);
|
|
161
|
+
} }
|
|
162
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_42_Template(rf, ctx) { if (rf & 1) {
|
|
163
|
+
i0.ɵɵelement(0, "i", 36);
|
|
164
|
+
} if (rf & 2) {
|
|
165
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
166
|
+
i0.ɵɵstyleProp("color", ctx_r1.IsRequired ? "#28a745" : "#6c757d");
|
|
167
|
+
i0.ɵɵclassProp("fa-check-circle", ctx_r1.IsRequired)("fa-times-circle", !ctx_r1.IsRequired);
|
|
168
|
+
} }
|
|
169
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_47_Template(rf, ctx) { if (rf & 1) {
|
|
170
|
+
const _r11 = i0.ɵɵgetCurrentView();
|
|
171
|
+
i0.ɵɵelementStart(0, "input", 37);
|
|
172
|
+
i0.ɵɵtwoWayListener("ngModelChange", function ActionParamDialogComponent_Conditional_0_Conditional_47_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.IsArray, $event) || (ctx_r1.IsArray = $event); return i0.ɵɵresetView($event); });
|
|
173
|
+
i0.ɵɵelementEnd();
|
|
174
|
+
i0.ɵɵelement(1, "span", 35);
|
|
175
|
+
} if (rf & 2) {
|
|
176
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
177
|
+
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.IsArray);
|
|
178
|
+
} }
|
|
179
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_48_Template(rf, ctx) { if (rf & 1) {
|
|
180
|
+
i0.ɵɵelement(0, "i", 36);
|
|
181
|
+
} if (rf & 2) {
|
|
182
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
183
|
+
i0.ɵɵstyleProp("color", ctx_r1.IsArray ? "#28a745" : "#6c757d");
|
|
184
|
+
i0.ɵɵclassProp("fa-check-circle", ctx_r1.IsArray)("fa-times-circle", !ctx_r1.IsArray);
|
|
185
|
+
} }
|
|
186
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_52_Template(rf, ctx) { if (rf & 1) {
|
|
187
|
+
const _r12 = i0.ɵɵgetCurrentView();
|
|
188
|
+
i0.ɵɵelementStart(0, "button", 38);
|
|
189
|
+
i0.ɵɵlistener("click", function ActionParamDialogComponent_Conditional_0_Conditional_52_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnCancel()); });
|
|
190
|
+
i0.ɵɵtext(1, "Cancel");
|
|
191
|
+
i0.ɵɵelementEnd();
|
|
192
|
+
i0.ɵɵelementStart(2, "button", 39);
|
|
193
|
+
i0.ɵɵlistener("click", function ActionParamDialogComponent_Conditional_0_Conditional_52_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r12); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnSave()); });
|
|
194
|
+
i0.ɵɵtext(3, "Save");
|
|
195
|
+
i0.ɵɵelementEnd();
|
|
196
|
+
} }
|
|
197
|
+
function ActionParamDialogComponent_Conditional_0_Conditional_53_Template(rf, ctx) { if (rf & 1) {
|
|
198
|
+
const _r13 = i0.ɵɵgetCurrentView();
|
|
199
|
+
i0.ɵɵelementStart(0, "button", 39);
|
|
200
|
+
i0.ɵɵlistener("click", function ActionParamDialogComponent_Conditional_0_Conditional_53_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.OnCancel()); });
|
|
201
|
+
i0.ɵɵtext(1, "Close");
|
|
202
|
+
i0.ɵɵelementEnd();
|
|
203
|
+
} }
|
|
204
|
+
function ActionParamDialogComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
205
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
206
|
+
i0.ɵɵelementStart(0, "div", 1);
|
|
207
|
+
i0.ɵɵlistener("click", function ActionParamDialogComponent_Conditional_0_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnBackdropClick($event)); });
|
|
208
|
+
i0.ɵɵelementStart(1, "div", 2)(2, "div", 3)(3, "span", 4);
|
|
209
|
+
i0.ɵɵelement(4, "i", 5);
|
|
210
|
+
i0.ɵɵtext(5);
|
|
211
|
+
i0.ɵɵelementEnd();
|
|
212
|
+
i0.ɵɵelementStart(6, "button", 6);
|
|
213
|
+
i0.ɵɵlistener("click", function ActionParamDialogComponent_Conditional_0_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.OnCancel()); });
|
|
214
|
+
i0.ɵɵelement(7, "i", 7);
|
|
215
|
+
i0.ɵɵelementEnd()();
|
|
216
|
+
i0.ɵɵelementStart(8, "div", 8)(9, "form", 9)(10, "div", 10)(11, "label");
|
|
217
|
+
i0.ɵɵtext(12, " Parameter Name ");
|
|
218
|
+
i0.ɵɵtemplate(13, ActionParamDialogComponent_Conditional_0_Conditional_13_Template, 2, 0, "span", 11);
|
|
219
|
+
i0.ɵɵelementEnd();
|
|
220
|
+
i0.ɵɵtemplate(14, ActionParamDialogComponent_Conditional_0_Conditional_14_Template, 1, 1, "input", 12)(15, ActionParamDialogComponent_Conditional_0_Conditional_15_Template, 2, 1, "div", 13);
|
|
221
|
+
i0.ɵɵelementEnd();
|
|
222
|
+
i0.ɵɵelementStart(16, "div", 10)(17, "label");
|
|
223
|
+
i0.ɵɵtext(18, " Type ");
|
|
224
|
+
i0.ɵɵtemplate(19, ActionParamDialogComponent_Conditional_0_Conditional_19_Template, 2, 0, "span", 11);
|
|
225
|
+
i0.ɵɵelementEnd();
|
|
226
|
+
i0.ɵɵtemplate(20, ActionParamDialogComponent_Conditional_0_Conditional_20_Template, 3, 1, "select", 14)(21, ActionParamDialogComponent_Conditional_0_Conditional_21_Template, 3, 3, "div", 13);
|
|
227
|
+
i0.ɵɵelementEnd();
|
|
228
|
+
i0.ɵɵelementStart(22, "div", 10)(23, "label");
|
|
229
|
+
i0.ɵɵtext(24, " Value Type ");
|
|
230
|
+
i0.ɵɵtemplate(25, ActionParamDialogComponent_Conditional_0_Conditional_25_Template, 2, 0, "span", 11);
|
|
231
|
+
i0.ɵɵelementEnd();
|
|
232
|
+
i0.ɵɵtemplate(26, ActionParamDialogComponent_Conditional_0_Conditional_26_Template, 3, 1, "select", 15)(27, ActionParamDialogComponent_Conditional_0_Conditional_27_Template, 2, 1, "div", 13);
|
|
233
|
+
i0.ɵɵelementEnd();
|
|
234
|
+
i0.ɵɵelementStart(28, "div", 10)(29, "label");
|
|
235
|
+
i0.ɵɵtext(30, "Description");
|
|
236
|
+
i0.ɵɵelementEnd();
|
|
237
|
+
i0.ɵɵtemplate(31, ActionParamDialogComponent_Conditional_0_Conditional_31_Template, 1, 1, "textarea", 16)(32, ActionParamDialogComponent_Conditional_0_Conditional_32_Template, 2, 1, "div", 17);
|
|
238
|
+
i0.ɵɵelementEnd();
|
|
239
|
+
i0.ɵɵelementStart(33, "div", 10)(34, "label");
|
|
240
|
+
i0.ɵɵtext(35, "Default Value");
|
|
241
|
+
i0.ɵɵelementEnd();
|
|
242
|
+
i0.ɵɵtemplate(36, ActionParamDialogComponent_Conditional_0_Conditional_36_Template, 1, 1, "input", 18)(37, ActionParamDialogComponent_Conditional_0_Conditional_37_Template, 3, 1, "div", 13);
|
|
243
|
+
i0.ɵɵelementEnd();
|
|
244
|
+
i0.ɵɵelementStart(38, "div", 19)(39, "div", 20)(40, "label", 21);
|
|
245
|
+
i0.ɵɵtemplate(41, ActionParamDialogComponent_Conditional_0_Conditional_41_Template, 2, 1)(42, ActionParamDialogComponent_Conditional_0_Conditional_42_Template, 1, 6, "i", 22);
|
|
246
|
+
i0.ɵɵelementStart(43, "span", 23);
|
|
247
|
+
i0.ɵɵtext(44, "Required Parameter");
|
|
248
|
+
i0.ɵɵelementEnd()()();
|
|
249
|
+
i0.ɵɵelementStart(45, "div", 20)(46, "label", 21);
|
|
250
|
+
i0.ɵɵtemplate(47, ActionParamDialogComponent_Conditional_0_Conditional_47_Template, 2, 1)(48, ActionParamDialogComponent_Conditional_0_Conditional_48_Template, 1, 6, "i", 22);
|
|
251
|
+
i0.ɵɵelementStart(49, "span", 23);
|
|
252
|
+
i0.ɵɵtext(50, "Array Type");
|
|
253
|
+
i0.ɵɵelementEnd()()()()()();
|
|
254
|
+
i0.ɵɵelementStart(51, "div", 24);
|
|
255
|
+
i0.ɵɵtemplate(52, ActionParamDialogComponent_Conditional_0_Conditional_52_Template, 4, 0)(53, ActionParamDialogComponent_Conditional_0_Conditional_53_Template, 2, 0, "button", 25);
|
|
256
|
+
i0.ɵɵelementEnd()()();
|
|
257
|
+
} if (rf & 2) {
|
|
258
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
259
|
+
i0.ɵɵadvance(5);
|
|
260
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.IsNew ? "Add Parameter" : ctx_r1.EditMode ? "Edit Parameter" : "Parameter Details", " ");
|
|
261
|
+
i0.ɵɵadvance(8);
|
|
262
|
+
i0.ɵɵconditional(ctx_r1.EditMode ? 13 : -1);
|
|
263
|
+
i0.ɵɵadvance();
|
|
264
|
+
i0.ɵɵconditional(ctx_r1.EditMode ? 14 : 15);
|
|
265
|
+
i0.ɵɵadvance(5);
|
|
266
|
+
i0.ɵɵconditional(ctx_r1.EditMode ? 19 : -1);
|
|
267
|
+
i0.ɵɵadvance();
|
|
268
|
+
i0.ɵɵconditional(ctx_r1.EditMode ? 20 : 21);
|
|
269
|
+
i0.ɵɵadvance(5);
|
|
270
|
+
i0.ɵɵconditional(ctx_r1.EditMode ? 25 : -1);
|
|
271
|
+
i0.ɵɵadvance();
|
|
272
|
+
i0.ɵɵconditional(ctx_r1.EditMode ? 26 : 27);
|
|
273
|
+
i0.ɵɵadvance(5);
|
|
274
|
+
i0.ɵɵconditional(ctx_r1.EditMode ? 31 : 32);
|
|
275
|
+
i0.ɵɵadvance(5);
|
|
276
|
+
i0.ɵɵconditional(ctx_r1.EditMode ? 36 : 37);
|
|
277
|
+
i0.ɵɵadvance(5);
|
|
278
|
+
i0.ɵɵconditional(ctx_r1.EditMode ? 41 : 42);
|
|
279
|
+
i0.ɵɵadvance(6);
|
|
280
|
+
i0.ɵɵconditional(ctx_r1.EditMode ? 47 : 48);
|
|
281
|
+
i0.ɵɵadvance(5);
|
|
282
|
+
i0.ɵɵconditional(ctx_r1.EditMode ? 52 : 53);
|
|
283
|
+
} }
|
|
284
|
+
/**
|
|
285
|
+
* A dialog component for editing action parameters.
|
|
286
|
+
* This component provides a form for creating and editing action parameters.
|
|
287
|
+
*
|
|
288
|
+
* Usage:
|
|
289
|
+
* <mj-action-param-dialog
|
|
290
|
+
* [Param]="myParam"
|
|
291
|
+
* [IsNew]="false"
|
|
292
|
+
* [EditMode]="true"
|
|
293
|
+
* [IsOpen]="showDialog"
|
|
294
|
+
* (Close)="onDialogClose($event)">
|
|
295
|
+
* </mj-action-param-dialog>
|
|
296
|
+
*/
|
|
297
|
+
export class ActionParamDialogComponent {
|
|
298
|
+
constructor() {
|
|
299
|
+
this._isNew = false;
|
|
300
|
+
this._editMode = false;
|
|
301
|
+
this._isOpen = false;
|
|
302
|
+
this.Close = new EventEmitter();
|
|
303
|
+
// Form fields
|
|
304
|
+
this.ParamName = '';
|
|
305
|
+
this.ParamType = 'Input';
|
|
306
|
+
this.ValueType = 'Scalar';
|
|
307
|
+
this.Description = '';
|
|
308
|
+
this.DefaultValue = '';
|
|
309
|
+
this.IsRequired = false;
|
|
310
|
+
this.IsArray = false;
|
|
311
|
+
// Value type options
|
|
312
|
+
this.ValueTypes = [
|
|
313
|
+
{ Text: 'Scalar', Value: 'Scalar' },
|
|
314
|
+
{ Text: 'Simple Object', Value: 'Simple Object' },
|
|
315
|
+
{ Text: 'BaseEntity Sub-Class', Value: 'BaseEntity Sub-Class' },
|
|
316
|
+
{ Text: 'MediaOutput', Value: 'MediaOutput' },
|
|
317
|
+
{ Text: 'Other', Value: 'Other' }
|
|
318
|
+
];
|
|
319
|
+
this.ParamTypes = [
|
|
320
|
+
{ Text: 'Input', Value: 'Input' },
|
|
321
|
+
{ Text: 'Output', Value: 'Output' },
|
|
322
|
+
{ Text: 'Both', Value: 'Both' }
|
|
323
|
+
];
|
|
324
|
+
}
|
|
325
|
+
set Param(value) {
|
|
326
|
+
this._param = value;
|
|
327
|
+
if (value) {
|
|
328
|
+
this.loadParamValues();
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
get Param() {
|
|
332
|
+
return this._param;
|
|
333
|
+
}
|
|
334
|
+
set IsNew(value) {
|
|
335
|
+
this._isNew = value;
|
|
336
|
+
}
|
|
337
|
+
get IsNew() {
|
|
338
|
+
return this._isNew;
|
|
339
|
+
}
|
|
340
|
+
set EditMode(value) {
|
|
341
|
+
this._editMode = value;
|
|
342
|
+
}
|
|
343
|
+
get EditMode() {
|
|
344
|
+
return this._editMode;
|
|
345
|
+
}
|
|
346
|
+
set IsOpen(value) {
|
|
347
|
+
this._isOpen = value;
|
|
348
|
+
if (value) {
|
|
349
|
+
document.body.style.overflow = 'hidden';
|
|
350
|
+
this.loadParamValues();
|
|
351
|
+
}
|
|
352
|
+
else {
|
|
353
|
+
document.body.style.overflow = '';
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
get IsOpen() {
|
|
357
|
+
return this._isOpen;
|
|
358
|
+
}
|
|
359
|
+
ngOnInit() {
|
|
360
|
+
this.loadParamValues();
|
|
361
|
+
}
|
|
362
|
+
loadParamValues() {
|
|
363
|
+
if (this._param) {
|
|
364
|
+
this.ParamName = this._param.Name || '';
|
|
365
|
+
this.ParamType = this._param.Type;
|
|
366
|
+
this.ValueType = this._param.ValueType || 'Scalar';
|
|
367
|
+
this.Description = this._param.Description || '';
|
|
368
|
+
this.DefaultValue = this._param.DefaultValue || '';
|
|
369
|
+
this.IsRequired = this._param.IsRequired || false;
|
|
370
|
+
this.IsArray = this._param.IsArray || false;
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
OnSave() {
|
|
374
|
+
// Update the param entity with form values
|
|
375
|
+
this._param.Name = this.ParamName;
|
|
376
|
+
this._param.Type = this.ParamType;
|
|
377
|
+
this._param.ValueType = this.ValueType;
|
|
378
|
+
this._param.Description = this.Description;
|
|
379
|
+
this._param.DefaultValue = this.DefaultValue;
|
|
380
|
+
this._param.IsRequired = this.IsRequired;
|
|
381
|
+
this._param.IsArray = this.IsArray;
|
|
382
|
+
// Close dialog and pass back the result
|
|
383
|
+
this.IsOpen = false;
|
|
384
|
+
this.Close.emit({ Param: this._param, Save: true });
|
|
385
|
+
}
|
|
386
|
+
OnCancel() {
|
|
387
|
+
this.IsOpen = false;
|
|
388
|
+
this.Close.emit({ Param: this._param, Save: false });
|
|
389
|
+
}
|
|
390
|
+
OnBackdropClick(event) {
|
|
391
|
+
if (event.target.classList.contains('dialog-backdrop')) {
|
|
392
|
+
this.OnCancel();
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
GetTypeClass(type) {
|
|
396
|
+
return 'type-' + type.toLowerCase();
|
|
397
|
+
}
|
|
398
|
+
static { this.ɵfac = function ActionParamDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ActionParamDialogComponent)(); }; }
|
|
399
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ActionParamDialogComponent, selectors: [["mj-action-param-dialog"]], inputs: { Param: "Param", IsNew: "IsNew", EditMode: "EditMode", IsOpen: "IsOpen" }, outputs: { Close: "Close" }, decls: 1, vars: 1, consts: [[1, "dialog-backdrop"], [1, "dialog-backdrop", 3, "click"], [1, "dialog-container"], [1, "dialog-header"], [1, "dialog-title"], [1, "fa-solid", "fa-sliders"], ["title", "Close", 1, "dialog-close-btn", 3, "click"], [1, "fa-solid", "fa-times"], [1, "dialog-content"], [1, "param-form"], [1, "form-field"], [1, "required"], ["type", "text", "name", "paramName", "placeholder", "Enter parameter name...", 1, "form-input", 3, "ngModel"], [1, "readonly-value"], ["name", "paramType", 1, "form-select", 3, "ngModel"], ["name", "valueType", 1, "form-select", 3, "ngModel"], ["name", "description", "rows", "3", "placeholder", "Enter parameter description...", 1, "form-textarea", 3, "ngModel"], [1, "readonly-value", "description"], ["type", "text", "name", "defaultValue", "placeholder", "Enter default value...", 1, "form-input", 3, "ngModel"], [1, "form-field-row"], [1, "checkbox-field"], [1, "checkbox-label"], [1, "fa-solid", 3, "fa-check-circle", "fa-times-circle", "color"], [1, "checkbox-text"], [1, "dialog-footer"], [1, "btn", "btn-primary"], ["type", "text", "name", "paramName", "placeholder", "Enter parameter name...", 1, "form-input", 3, "ngModelChange", "ngModel"], ["name", "paramType", 1, "form-select", 3, "ngModelChange", "ngModel"], [3, "value"], [1, "type-badge"], ["name", "valueType", 1, "form-select", 3, "ngModelChange", "ngModel"], ["name", "description", "rows", "3", "placeholder", "Enter parameter description...", 1, "form-textarea", 3, "ngModelChange", "ngModel"], ["type", "text", "name", "defaultValue", "placeholder", "Enter default value...", 1, "form-input", 3, "ngModelChange", "ngModel"], [1, "no-value"], ["type", "checkbox", "name", "isRequired", 1, "checkbox-input", 3, "ngModelChange", "ngModel"], [1, "checkbox-custom"], [1, "fa-solid"], ["type", "checkbox", "name", "isArray", 1, "checkbox-input", 3, "ngModelChange", "ngModel"], [1, "btn", "btn-outline", 3, "click"], [1, "btn", "btn-primary", 3, "click"]], template: function ActionParamDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
400
|
+
i0.ɵɵtemplate(0, ActionParamDialogComponent_Conditional_0_Template, 54, 12, "div", 0);
|
|
401
|
+
} if (rf & 2) {
|
|
402
|
+
i0.ɵɵconditional(ctx.IsOpen ? 0 : -1);
|
|
403
|
+
} }, dependencies: [i1.ɵNgNoValidate, i1.NgSelectOption, i1.ɵNgSelectMultipleOption, i1.DefaultValueAccessor, i1.CheckboxControlValueAccessor, i1.SelectControlValueAccessor, i1.NgControlStatus, i1.NgControlStatusGroup, i1.NgModel, i1.NgForm], styles: [".dialog-backdrop[_ngcontent-%COMP%] {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1000;\n padding: 20px;\n}\n\n.dialog-container[_ngcontent-%COMP%] {\n background: white;\n border-radius: 8px;\n box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);\n max-width: 500px;\n width: 100%;\n max-height: 90vh;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n}\n\n.dialog-header[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 20px;\n background: #f8f9fa;\n border-bottom: 1px solid #e9ecef;\n}\n\n.dialog-title[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: 1.1rem;\n font-weight: 600;\n color: #2c3e50;\n}\n\n.dialog-title[_ngcontent-%COMP%] i[_ngcontent-%COMP%] {\n color: #6f42c1;\n}\n\n.dialog-close-btn[_ngcontent-%COMP%] {\n background: transparent;\n border: none;\n padding: 8px;\n cursor: pointer;\n color: #6c757d;\n border-radius: 4px;\n transition: all 0.2s;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.dialog-close-btn[_ngcontent-%COMP%]:hover {\n background: #e9ecef;\n color: #495057;\n}\n\n.dialog-content[_ngcontent-%COMP%] {\n flex: 1;\n overflow-y: auto;\n padding: 20px;\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.form-input[_ngcontent-%COMP%], \n.form-select[_ngcontent-%COMP%], \n.form-textarea[_ngcontent-%COMP%] {\n width: 100%;\n padding: 10px 12px;\n border: 1px solid #ced4da;\n border-radius: 4px;\n font-family: inherit;\n font-size: 0.95em;\n transition: border-color 0.2s, box-shadow 0.2s;\n background: white;\n}\n\n.form-input[_ngcontent-%COMP%]:focus, \n.form-select[_ngcontent-%COMP%]:focus, \n.form-textarea[_ngcontent-%COMP%]:focus {\n outline: none;\n border-color: #6f42c1;\n box-shadow: 0 0 0 2px rgba(111, 66, 193, 0.1);\n}\n\n.form-textarea[_ngcontent-%COMP%] {\n resize: vertical;\n min-height: 80px;\n}\n\n.readonly-value[_ngcontent-%COMP%] {\n padding: 10px 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.no-value[_ngcontent-%COMP%] {\n color: #6c757d;\n font-style: italic;\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-label[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: pointer;\n font-weight: normal;\n margin: 0;\n}\n\n.checkbox-input[_ngcontent-%COMP%] {\n display: none;\n}\n\n.checkbox-custom[_ngcontent-%COMP%] {\n width: 18px;\n height: 18px;\n border: 2px solid #ced4da;\n border-radius: 3px;\n position: relative;\n transition: all 0.2s;\n}\n\n.checkbox-input[_ngcontent-%COMP%]:checked + .checkbox-custom[_ngcontent-%COMP%] {\n background: #6f42c1;\n border-color: #6f42c1;\n}\n\n.checkbox-input[_ngcontent-%COMP%]:checked + .checkbox-custom[_ngcontent-%COMP%]::after {\n content: '';\n position: absolute;\n left: 5px;\n top: 1px;\n width: 4px;\n height: 9px;\n border: solid white;\n border-width: 0 2px 2px 0;\n transform: rotate(45deg);\n}\n\n.checkbox-text[_ngcontent-%COMP%] {\n font-size: 0.9em;\n color: #495057;\n}\n\n.dialog-footer[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n gap: 12px;\n padding: 12px 20px;\n background: #f8f9fa;\n border-top: 1px solid #e9ecef;\n}\n\n\n\n.btn[_ngcontent-%COMP%] {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 8px 16px;\n border: 1px solid transparent;\n border-radius: 4px;\n font-size: 0.95em;\n font-weight: 500;\n cursor: pointer;\n transition: all 0.2s;\n font-family: inherit;\n}\n\n.btn-primary[_ngcontent-%COMP%] {\n background: #6f42c1;\n color: white;\n border-color: #6f42c1;\n}\n\n.btn-primary[_ngcontent-%COMP%]:hover {\n background: #5a32a3;\n border-color: #5a32a3;\n}\n\n.btn-outline[_ngcontent-%COMP%] {\n background: white;\n color: #495057;\n border-color: #ced4da;\n}\n\n.btn-outline[_ngcontent-%COMP%]:hover {\n background: #f8f9fa;\n border-color: #adb5bd;\n}\n\n\n\n@media (max-width: 768px) {\n .dialog-backdrop[_ngcontent-%COMP%] {\n padding: 10px;\n }\n\n .form-field-row[_ngcontent-%COMP%] {\n flex-direction: column;\n gap: 12px;\n }\n}"] }); }
|
|
404
|
+
}
|
|
405
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ActionParamDialogComponent, [{
|
|
406
|
+
type: Component,
|
|
407
|
+
args: [{ selector: 'mj-action-param-dialog', template: "@if (IsOpen) {\n <div class=\"dialog-backdrop\" (click)=\"OnBackdropClick($event)\">\n <div class=\"dialog-container\">\n <div class=\"dialog-header\">\n <span class=\"dialog-title\">\n <i class=\"fa-solid fa-sliders\"></i>\n {{ IsNew ? 'Add Parameter' : (EditMode ? 'Edit Parameter' : 'Parameter Details') }}\n </span>\n <button class=\"dialog-close-btn\" (click)=\"OnCancel()\" title=\"Close\">\n <i class=\"fa-solid fa-times\"></i>\n </button>\n </div>\n\n <div class=\"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 <input\n type=\"text\"\n [(ngModel)]=\"ParamName\"\n name=\"paramName\"\n placeholder=\"Enter parameter name...\"\n class=\"form-input\">\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 <select\n [(ngModel)]=\"ParamType\"\n name=\"paramType\"\n class=\"form-select\">\n @for (pt of ParamTypes; track pt.Value) {\n <option [value]=\"pt.Value\">{{ pt.Text }}</option>\n }\n </select>\n } @else {\n <div class=\"readonly-value\">\n <span class=\"type-badge\" [class]=\"GetTypeClass(ParamType)\">\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 <select\n [(ngModel)]=\"ValueType\"\n name=\"valueType\"\n class=\"form-select\">\n @for (vt of ValueTypes; track vt.Value) {\n <option [value]=\"vt.Value\">{{ vt.Text }}</option>\n }\n </select>\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 <textarea\n [(ngModel)]=\"Description\"\n name=\"description\"\n rows=\"3\"\n placeholder=\"Enter parameter description...\"\n class=\"form-textarea\"></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 <input\n type=\"text\"\n [(ngModel)]=\"DefaultValue\"\n name=\"defaultValue\"\n placeholder=\"Enter default value...\"\n class=\"form-input\">\n } @else {\n <div class=\"readonly-value\">\n @if (DefaultValue) {\n <code>{{ DefaultValue }}</code>\n } @else {\n <span class=\"no-value\">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 class=\"checkbox-label\">\n @if (EditMode) {\n <input\n type=\"checkbox\"\n [(ngModel)]=\"IsRequired\"\n name=\"isRequired\"\n class=\"checkbox-input\">\n <span class=\"checkbox-custom\"></span>\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 class=\"checkbox-text\">Required Parameter</span>\n </label>\n </div>\n\n <div class=\"checkbox-field\">\n <label class=\"checkbox-label\">\n @if (EditMode) {\n <input\n type=\"checkbox\"\n [(ngModel)]=\"IsArray\"\n name=\"isArray\"\n class=\"checkbox-input\">\n <span class=\"checkbox-custom\"></span>\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 class=\"checkbox-text\">Array Type</span>\n </label>\n </div>\n </div>\n </form>\n </div>\n\n <div class=\"dialog-footer\">\n @if (EditMode) {\n <button class=\"btn btn-outline\" (click)=\"OnCancel()\">Cancel</button>\n <button class=\"btn btn-primary\" (click)=\"OnSave()\">Save</button>\n } @else {\n <button class=\"btn btn-primary\" (click)=\"OnCancel()\">Close</button>\n }\n </div>\n </div>\n </div>\n}\n", styles: [".dialog-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(0, 0, 0, 0.5);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1000;\n padding: 20px;\n}\n\n.dialog-container {\n background: white;\n border-radius: 8px;\n box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);\n max-width: 500px;\n width: 100%;\n max-height: 90vh;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n}\n\n.dialog-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 16px 20px;\n background: #f8f9fa;\n border-bottom: 1px solid #e9ecef;\n}\n\n.dialog-title {\n display: flex;\n align-items: center;\n gap: 10px;\n font-size: 1.1rem;\n font-weight: 600;\n color: #2c3e50;\n}\n\n.dialog-title i {\n color: #6f42c1;\n}\n\n.dialog-close-btn {\n background: transparent;\n border: none;\n padding: 8px;\n cursor: pointer;\n color: #6c757d;\n border-radius: 4px;\n transition: all 0.2s;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.dialog-close-btn:hover {\n background: #e9ecef;\n color: #495057;\n}\n\n.dialog-content {\n flex: 1;\n overflow-y: auto;\n padding: 20px;\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.form-input,\n.form-select,\n.form-textarea {\n width: 100%;\n padding: 10px 12px;\n border: 1px solid #ced4da;\n border-radius: 4px;\n font-family: inherit;\n font-size: 0.95em;\n transition: border-color 0.2s, box-shadow 0.2s;\n background: white;\n}\n\n.form-input:focus,\n.form-select:focus,\n.form-textarea:focus {\n outline: none;\n border-color: #6f42c1;\n box-shadow: 0 0 0 2px rgba(111, 66, 193, 0.1);\n}\n\n.form-textarea {\n resize: vertical;\n min-height: 80px;\n}\n\n.readonly-value {\n padding: 10px 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.no-value {\n color: #6c757d;\n font-style: italic;\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-label {\n display: flex;\n align-items: center;\n gap: 8px;\n cursor: pointer;\n font-weight: normal;\n margin: 0;\n}\n\n.checkbox-input {\n display: none;\n}\n\n.checkbox-custom {\n width: 18px;\n height: 18px;\n border: 2px solid #ced4da;\n border-radius: 3px;\n position: relative;\n transition: all 0.2s;\n}\n\n.checkbox-input:checked + .checkbox-custom {\n background: #6f42c1;\n border-color: #6f42c1;\n}\n\n.checkbox-input:checked + .checkbox-custom::after {\n content: '';\n position: absolute;\n left: 5px;\n top: 1px;\n width: 4px;\n height: 9px;\n border: solid white;\n border-width: 0 2px 2px 0;\n transform: rotate(45deg);\n}\n\n.checkbox-text {\n font-size: 0.9em;\n color: #495057;\n}\n\n.dialog-footer {\n display: flex;\n justify-content: flex-end;\n gap: 12px;\n padding: 12px 20px;\n background: #f8f9fa;\n border-top: 1px solid #e9ecef;\n}\n\n/* Button styles */\n.btn {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n padding: 8px 16px;\n border: 1px solid transparent;\n border-radius: 4px;\n font-size: 0.95em;\n font-weight: 500;\n cursor: pointer;\n transition: all 0.2s;\n font-family: inherit;\n}\n\n.btn-primary {\n background: #6f42c1;\n color: white;\n border-color: #6f42c1;\n}\n\n.btn-primary:hover {\n background: #5a32a3;\n border-color: #5a32a3;\n}\n\n.btn-outline {\n background: white;\n color: #495057;\n border-color: #ced4da;\n}\n\n.btn-outline:hover {\n background: #f8f9fa;\n border-color: #adb5bd;\n}\n\n/* Responsive */\n@media (max-width: 768px) {\n .dialog-backdrop {\n padding: 10px;\n }\n\n .form-field-row {\n flex-direction: column;\n gap: 12px;\n }\n}\n"] }]
|
|
408
|
+
}], null, { Param: [{
|
|
409
|
+
type: Input
|
|
410
|
+
}], IsNew: [{
|
|
411
|
+
type: Input
|
|
412
|
+
}], EditMode: [{
|
|
413
|
+
type: Input
|
|
414
|
+
}], IsOpen: [{
|
|
415
|
+
type: Input
|
|
416
|
+
}], Close: [{
|
|
417
|
+
type: Output
|
|
418
|
+
}] }); })();
|
|
419
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ActionParamDialogComponent, { className: "ActionParamDialogComponent", filePath: "lib/action-param-dialog/action-param-dialog.component.ts", lineNumber: 27 }); })();
|
|
420
|
+
// Tree-shaking prevention function
|
|
421
|
+
export function LoadActionParamDialogComponent() {
|
|
422
|
+
// This function ensures the component is included in the bundle
|
|
423
|
+
}
|
|
424
|
+
//# sourceMappingURL=action-param-dialog.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-param-dialog.component.js","sourceRoot":"","sources":["../../../src/lib/action-param-dialog/action-param-dialog.component.ts","../../../src/lib/action-param-dialog/action-param-dialog.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,YAAY,EAAU,MAAM,eAAe,CAAC;;;;;ICoB/C,gCAAuB;IAAA,iBAAC;IAAA,iBAAO;;;;IAInC,iCAKuB;IAHnB,oUAAuB;IAF3B,iBAKuB;;;IAHnB,gDAAuB;;;IAK3B,+BAA4B;IAAA,YAAwB;IAAA,iBAAM;;;IAA9B,cAAwB;IAAxB,+CAAwB;;;IAShD,gCAAuB;IAAA,iBAAC;IAAA,iBAAO;;;IAS3B,kCAA2B;IAAA,YAAa;IAAA,iBAAS;;;IAAzC,mCAAkB;IAAC,cAAa;IAAb,gCAAa;;;;IAL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QACpB,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACzD,CAAC;IAEM,eAAe,CAAC,KAAiB;QACpC,IAAK,KAAK,CAAC,MAAsB,CAAC,SAAS,CAAC,QAAQ,CAAC,iBAAiB,CAAC,EAAE,CAAC;YACtE,IAAI,CAAC,QAAQ,EAAE,CAAC;QACpB,CAAC;IACL,CAAC;IAEM,YAAY,CAAC,IAAY;QAC5B,OAAO,OAAO,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC;IACxC,CAAC;2HAtHQ,0BAA0B;oEAA1B,0BAA0B;YC1BvC,qFAAc;;YAAd,qCAwKC;;;iFD9IY,0BAA0B;cALtC,SAAS;2BACI,wBAAwB;gBAY9B,KAAK;kBADR,KAAK;YAYF,KAAK;kBADR,KAAK;YASF,QAAQ;kBADX,KAAK;YASF,MAAM;kBADT,KAAK;YAcI,KAAK;kBAAd,MAAM;;kFAhDE,0BAA0B;AAyHvC,mCAAmC;AACnC,MAAM,UAAU,8BAA8B;IAC1C,gEAAgE;AACpE,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { ActionResultCodeEntity } from '@memberjunction/core-entities';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface ActionResultCodeDialogResult {
|
|
5
|
+
ResultCode: ActionResultCodeEntity;
|
|
6
|
+
Save: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* A dialog component for editing action result codes.
|
|
10
|
+
* This component provides a form for creating and editing action result codes.
|
|
11
|
+
*
|
|
12
|
+
* Usage:
|
|
13
|
+
* <mj-action-result-code-dialog
|
|
14
|
+
* [ResultCode]="myResultCode"
|
|
15
|
+
* [IsNew]="false"
|
|
16
|
+
* [EditMode]="true"
|
|
17
|
+
* [IsOpen]="showDialog"
|
|
18
|
+
* (Close)="onDialogClose($event)">
|
|
19
|
+
* </mj-action-result-code-dialog>
|
|
20
|
+
*/
|
|
21
|
+
export declare class ActionResultCodeDialogComponent implements OnInit {
|
|
22
|
+
private _resultCode;
|
|
23
|
+
private _isNew;
|
|
24
|
+
private _editMode;
|
|
25
|
+
private _isOpen;
|
|
26
|
+
set ResultCode(value: ActionResultCodeEntity);
|
|
27
|
+
get ResultCode(): ActionResultCodeEntity;
|
|
28
|
+
set IsNew(value: boolean);
|
|
29
|
+
get IsNew(): boolean;
|
|
30
|
+
set EditMode(value: boolean);
|
|
31
|
+
get EditMode(): boolean;
|
|
32
|
+
set IsOpen(value: boolean);
|
|
33
|
+
get IsOpen(): boolean;
|
|
34
|
+
Close: EventEmitter<ActionResultCodeDialogResult>;
|
|
35
|
+
Code: string;
|
|
36
|
+
Description: string;
|
|
37
|
+
IsSuccess: boolean;
|
|
38
|
+
ngOnInit(): void;
|
|
39
|
+
private loadResultCodeValues;
|
|
40
|
+
OnSave(): void;
|
|
41
|
+
OnCancel(): void;
|
|
42
|
+
OnBackdropClick(event: MouseEvent): void;
|
|
43
|
+
get CanSave(): boolean;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionResultCodeDialogComponent, never>;
|
|
45
|
+
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; }; "IsOpen": { "alias": "IsOpen"; "required": false; }; }, { "Close": "Close"; }, never, never, false, never>;
|
|
46
|
+
}
|
|
47
|
+
export declare function LoadActionResultCodeDialogComponent(): void;
|
|
48
|
+
//# sourceMappingURL=action-result-code-dialog.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-result-code-dialog.component.d.ts","sourceRoot":"","sources":["../../../src/lib/action-result-code-dialog/action-result-code-dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;;AAEvE,MAAM,WAAW,4BAA4B;IACzC,UAAU,EAAE,sBAAsB,CAAC;IACnC,IAAI,EAAE,OAAO,CAAC;CACjB;AAED;;;;;;;;;;;;GAYG;AACH,qBAKa,+BAAgC,YAAW,MAAM;IAE1D,OAAO,CAAC,WAAW,CAA0B;IAC7C,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,OAAO,CAAS;IAExB,IACI,UAAU,CAAC,KAAK,EAAE,sBAAsB,EAK3C;IACD,IAAI,UAAU,IAAI,sBAAsB,CAEvC;IAED,IACI,KAAK,CAAC,KAAK,EAAE,OAAO,EAEvB;IACD,IAAI,KAAK,IAAI,OAAO,CAEnB;IAED,IACI,QAAQ,CAAC,KAAK,EAAE,OAAO,EAE1B;IACD,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IACI,MAAM,CAAC,KAAK,EAAE,OAAO,EAQxB;IACD,IAAI,MAAM,IAAI,OAAO,CAEpB;IAES,KAAK,6CAAoD;IAG5D,IAAI,SAAM;IACV,WAAW,SAAM;IACjB,SAAS,UAAS;IAEzB,QAAQ,IAAI,IAAI;IAIhB,OAAO,CAAC,oBAAoB;IAQrB,MAAM,IAAI,IAAI;IAWd,QAAQ,IAAI,IAAI;IAKhB,eAAe,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAM/C,IAAW,OAAO,IAAI,OAAO,CAE5B;yCA3FQ,+BAA+B;2CAA/B,+BAA+B;CA4F3C;AAGD,wBAAgB,mCAAmC,IAAI,IAAI,CAE1D"}
|