@cqa-lib/cqa-ui 1.1.261 → 1.1.263
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/esm2020/lib/execution-screen/ai-agent-step/ai-agent-step.component.mjs +11 -6
- package/esm2020/lib/step-builder/step-builder-action/step-builder-action.component.mjs +3 -3
- package/esm2020/lib/step-builder/step-builder-ai-agent/step-builder-ai-agent.component.mjs +198 -5
- package/esm2020/lib/step-builder/step-builder-database/step-builder-database.component.mjs +105 -8
- package/esm2020/lib/step-builder/step-builder-loop/step-builder-loop.component.mjs +123 -13
- package/esm2020/lib/test-case-details/api-edit-step/api-edit-step.component.mjs +65 -5
- package/esm2020/lib/test-case-details/delete-steps/delete-steps.component.mjs +3 -3
- package/fesm2015/cqa-lib-cqa-ui.mjs +656 -185
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +642 -183
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/step-builder/step-builder-ai-agent/step-builder-ai-agent.component.d.ts +31 -2
- package/lib/step-builder/step-builder-database/step-builder-database.component.d.ts +24 -5
- package/lib/step-builder/step-builder-loop/step-builder-loop.component.d.ts +28 -2
- package/lib/test-case-details/api-edit-step/api-edit-step.component.d.ts +18 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
2
|
+
import { FormBuilder, FormGroup, FormArray } from '@angular/forms';
|
|
3
3
|
import { DynamicSelectFieldConfig, SelectOption } from '../../dynamic-select/dynamic-select-field.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export interface AiAgentFormData {
|
|
@@ -13,6 +13,7 @@ export interface AiAgentFormData {
|
|
|
13
13
|
retryCount?: string;
|
|
14
14
|
iframeLocator?: string;
|
|
15
15
|
otherLocators?: string;
|
|
16
|
+
advancedSettingsVariables?: any[];
|
|
16
17
|
}
|
|
17
18
|
export declare class StepBuilderAiAgentComponent implements OnInit, OnChanges {
|
|
18
19
|
private fb;
|
|
@@ -45,19 +46,47 @@ export declare class StepBuilderAiAgentComponent implements OnInit, OnChanges {
|
|
|
45
46
|
aiAgentForm: FormGroup;
|
|
46
47
|
showAdvanced: boolean;
|
|
47
48
|
private hasLoadedInitialData;
|
|
49
|
+
advancedSettingsVariables: any[];
|
|
50
|
+
advancedVariablesForm: FormArray;
|
|
48
51
|
constructor(fb: FormBuilder);
|
|
49
52
|
ngOnInit(): void;
|
|
50
53
|
ngOnChanges(changes: SimpleChanges): void;
|
|
51
54
|
private hasInitialData;
|
|
52
55
|
private loadInitialData;
|
|
56
|
+
/**
|
|
57
|
+
* Initialize advanced settings variables based on current form values when
|
|
58
|
+
* parent has not provided any advancedSettingsVariables.
|
|
59
|
+
*/
|
|
60
|
+
private initializeAdvancedSettings;
|
|
61
|
+
/**
|
|
62
|
+
* Apply incoming advancedSettingsVariables to the underlying form controls.
|
|
63
|
+
* Used when parent passes advanced variables (e.g. from StepBuilderService).
|
|
64
|
+
*/
|
|
65
|
+
private applyAdvancedSettingsToForm;
|
|
66
|
+
/**
|
|
67
|
+
* Convert the otherLocators form value to a string array for str_list.
|
|
68
|
+
*/
|
|
69
|
+
private convertOtherLocatorsToArray;
|
|
70
|
+
/**
|
|
71
|
+
* Build reactive form for advanced settings variables (same pattern as action step).
|
|
72
|
+
*/
|
|
73
|
+
private buildAdvancedVariablesForm;
|
|
53
74
|
getTypeConfig(): DynamicSelectFieldConfig;
|
|
54
75
|
getEnvironmentConfig(): DynamicSelectFieldConfig;
|
|
55
76
|
getRetryCountConfig(): DynamicSelectFieldConfig;
|
|
56
77
|
getIframeLocatorConfig(): DynamicSelectFieldConfig;
|
|
57
78
|
getOtherLocatorsConfig(): DynamicSelectFieldConfig;
|
|
58
79
|
toggleAdvanced(): void;
|
|
80
|
+
/**
|
|
81
|
+
* Handle advanced boolean variable changes and sync to form.
|
|
82
|
+
*/
|
|
83
|
+
onAdvancedVariableBooleanChange(variableName: string, value: boolean): void;
|
|
84
|
+
/**
|
|
85
|
+
* Handle advanced non-boolean value changes (e.g. pwLocator) and sync to form.
|
|
86
|
+
*/
|
|
87
|
+
onAdvancedVariableValueChange(variableName: string, value: any): void;
|
|
59
88
|
onCancel(): void;
|
|
60
89
|
onCreateStep(): void;
|
|
61
90
|
static ɵfac: i0.ɵɵFactoryDeclaration<StepBuilderAiAgentComponent, never>;
|
|
62
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StepBuilderAiAgentComponent, "cqa-step-builder-ai-agent", never, { "typeOptions": "typeOptions"; "environmentOptions": "environmentOptions"; "retryCountOptions": "retryCountOptions"; "iframeLocatorOptions": "iframeLocatorOptions"; "otherLocatorsOptions": "otherLocatorsOptions"; "initialQuery": "initialQuery"; "initialType": "initialType"; "initialDescription": "initialDescription"; "initialEnvironments": "initialEnvironments"; "initialMetadata": "initialMetadata"; "initialDisabled": "initialDisabled"; "initialContinueOnError": "initialContinueOnError"; "initialRetryCount": "initialRetryCount"; "initialIframeLocator": "initialIframeLocator"; "initialOtherLocators": "initialOtherLocators"; "editMode": "editMode"; }, { "createStep": "createStep"; "cancelled": "cancelled"; }, never, never>;
|
|
91
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StepBuilderAiAgentComponent, "cqa-step-builder-ai-agent", never, { "typeOptions": "typeOptions"; "environmentOptions": "environmentOptions"; "retryCountOptions": "retryCountOptions"; "iframeLocatorOptions": "iframeLocatorOptions"; "otherLocatorsOptions": "otherLocatorsOptions"; "initialQuery": "initialQuery"; "initialType": "initialType"; "initialDescription": "initialDescription"; "initialEnvironments": "initialEnvironments"; "initialMetadata": "initialMetadata"; "initialDisabled": "initialDisabled"; "initialContinueOnError": "initialContinueOnError"; "initialRetryCount": "initialRetryCount"; "initialIframeLocator": "initialIframeLocator"; "initialOtherLocators": "initialOtherLocators"; "editMode": "editMode"; "advancedSettingsVariables": "advancedSettingsVariables"; }, { "createStep": "createStep"; "cancelled": "cancelled"; }, never, never>;
|
|
63
92
|
}
|
|
@@ -13,6 +13,7 @@ export interface DatabaseQuery {
|
|
|
13
13
|
export interface DatabaseFormData {
|
|
14
14
|
dbEnvironment: string;
|
|
15
15
|
queries: DatabaseQuery[];
|
|
16
|
+
advancedSettingsVariables?: any[];
|
|
16
17
|
}
|
|
17
18
|
export declare class StepBuilderDatabaseComponent implements OnInit, OnChanges, OnDestroy {
|
|
18
19
|
private fb;
|
|
@@ -51,15 +52,17 @@ export declare class StepBuilderDatabaseComponent implements OnInit, OnChanges,
|
|
|
51
52
|
/** Emit when selected query index changes */
|
|
52
53
|
selectedQueryIndexChange: EventEmitter<number>;
|
|
53
54
|
/** Emit when active tab changes */
|
|
54
|
-
activeTabChange: EventEmitter<"output" | "verification">;
|
|
55
|
+
activeTabChange: EventEmitter<"output" | "verification" | "advanced">;
|
|
55
56
|
databaseForm: FormGroup;
|
|
56
|
-
selectedTab: 'output' | 'verification';
|
|
57
|
+
selectedTab: 'output' | 'verification' | 'advanced';
|
|
57
58
|
selectedQueryIndex: number;
|
|
58
59
|
assertionsForms: Map<number, FormGroup>;
|
|
59
60
|
displayedColumns: string[];
|
|
60
61
|
defaultExpectedType: string;
|
|
61
62
|
private formSubscriptions;
|
|
62
63
|
assertionsTable?: MatTable<any>;
|
|
64
|
+
advancedSettingsVariables: any[];
|
|
65
|
+
advancedVariablesForm: FormArray;
|
|
63
66
|
constructor(fb: FormBuilder, cdr: ChangeDetectorRef);
|
|
64
67
|
ngOnInit(): void;
|
|
65
68
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -80,8 +83,8 @@ export declare class StepBuilderDatabaseComponent implements OnInit, OnChanges,
|
|
|
80
83
|
/**
|
|
81
84
|
* Get the currently active tab
|
|
82
85
|
*/
|
|
83
|
-
getActiveTab(): 'output' | 'verification';
|
|
84
|
-
onTabChange(tab: 'output' | 'verification'): void;
|
|
86
|
+
getActiveTab(): 'output' | 'verification' | 'advanced';
|
|
87
|
+
onTabChange(tab: 'output' | 'verification' | 'advanced'): void;
|
|
85
88
|
onCopyResults(): void;
|
|
86
89
|
onCancel(): void;
|
|
87
90
|
isFormValid(): boolean;
|
|
@@ -162,6 +165,22 @@ export declare class StepBuilderDatabaseComponent implements OnInit, OnChanges,
|
|
|
162
165
|
*/
|
|
163
166
|
trackByIndex(index: number): any;
|
|
164
167
|
ngOnDestroy(): void;
|
|
168
|
+
/**
|
|
169
|
+
* Initialize advanced settings variables for database steps.
|
|
170
|
+
*/
|
|
171
|
+
private initializeAdvancedSettings;
|
|
172
|
+
/**
|
|
173
|
+
* Build reactive form for advanced settings variables.
|
|
174
|
+
*/
|
|
175
|
+
private buildAdvancedVariablesForm;
|
|
176
|
+
/**
|
|
177
|
+
* Handle advanced boolean changes and keep data/form in sync.
|
|
178
|
+
*/
|
|
179
|
+
onAdvancedVariableBooleanChange(variableName: string, value: boolean): void;
|
|
180
|
+
/**
|
|
181
|
+
* Handle non-boolean advanced variable changes (reserved for future use).
|
|
182
|
+
*/
|
|
183
|
+
onAdvancedVariableValueChange(variableName: string, value: any): void;
|
|
165
184
|
static ɵfac: i0.ɵɵFactoryDeclaration<StepBuilderDatabaseComponent, never>;
|
|
166
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StepBuilderDatabaseComponent, "cqa-step-builder-database", never, { "dbEnvironmentOptions": "dbEnvironmentOptions"; "queries": "queries"; "queryResults": "queryResults"; "isLoading": "isLoading"; "initialDbEnvironment": "initialDbEnvironment"; "editMode": "editMode"; }, { "createStep": "createStep"; "cancelled": "cancelled"; "runQuery": "runQuery"; "addQuery": "addQuery"; "deleteQuery": "deleteQuery"; "assertionDataChange": "assertionDataChange"; "selectedQueryIndexChange": "selectedQueryIndexChange"; "activeTabChange": "activeTabChange"; }, never, never>;
|
|
185
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StepBuilderDatabaseComponent, "cqa-step-builder-database", never, { "dbEnvironmentOptions": "dbEnvironmentOptions"; "queries": "queries"; "queryResults": "queryResults"; "isLoading": "isLoading"; "initialDbEnvironment": "initialDbEnvironment"; "editMode": "editMode"; "advancedSettingsVariables": "advancedSettingsVariables"; }, { "createStep": "createStep"; "cancelled": "cancelled"; "runQuery": "runQuery"; "addQuery": "addQuery"; "deleteQuery": "deleteQuery"; "assertionDataChange": "assertionDataChange"; "selectedQueryIndexChange": "selectedQueryIndexChange"; "activeTabChange": "activeTabChange"; }, never, never>;
|
|
167
186
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
2
|
+
import { FormGroup, FormArray, FormBuilder } from '@angular/forms';
|
|
3
3
|
import { DynamicSelectFieldConfig } from '../../dynamic-select/dynamic-select-field.component';
|
|
4
4
|
import { ActionTemplate } from '../step-builder-action/step-builder-action.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
@@ -26,8 +26,10 @@ export interface LoopFormData {
|
|
|
26
26
|
runTime?: string;
|
|
27
27
|
whileTemplate?: any;
|
|
28
28
|
event?: any;
|
|
29
|
+
advancedSettingsVariables?: any[];
|
|
29
30
|
}
|
|
30
31
|
export declare class StepBuilderLoopComponent implements OnInit, OnChanges {
|
|
32
|
+
private fb;
|
|
31
33
|
/** Currently selected loop type */
|
|
32
34
|
loopType: LoopType;
|
|
33
35
|
/** Options for the select option dropdown */
|
|
@@ -97,6 +99,9 @@ export declare class StepBuilderLoopComponent implements OnInit, OnChanges {
|
|
|
97
99
|
selectedWhileTemplate: any;
|
|
98
100
|
selectedLoopType: LoopType;
|
|
99
101
|
loopForm: FormGroup;
|
|
102
|
+
advancedExpanded: boolean;
|
|
103
|
+
advancedSettingsVariables: any[];
|
|
104
|
+
advancedVariablesForm: FormArray;
|
|
100
105
|
selectOptionConfig: DynamicSelectFieldConfig;
|
|
101
106
|
dataProfileConfig: DynamicSelectFieldConfig;
|
|
102
107
|
loopStartConfig: DynamicSelectFieldConfig;
|
|
@@ -104,9 +109,18 @@ export declare class StepBuilderLoopComponent implements OnInit, OnChanges {
|
|
|
104
109
|
private selectedDataProfile;
|
|
105
110
|
private startArray;
|
|
106
111
|
private endArray;
|
|
107
|
-
constructor();
|
|
112
|
+
constructor(fb: FormBuilder);
|
|
108
113
|
ngOnInit(): void;
|
|
109
114
|
ngOnChanges(changes: SimpleChanges): void;
|
|
115
|
+
/**
|
|
116
|
+
* Initialize advanced settings variables for loop steps.
|
|
117
|
+
* For loops, we currently support the same generic advanced flag: shouldSkip.
|
|
118
|
+
*/
|
|
119
|
+
private initAdvancedSettingsVariables;
|
|
120
|
+
/**
|
|
121
|
+
* Build reactive form for advanced settings variables (mirrors action step behavior).
|
|
122
|
+
*/
|
|
123
|
+
private buildAdvancedVariablesForm;
|
|
110
124
|
private updateConfigs;
|
|
111
125
|
private convertDataProfileOptionsToSelectOptions;
|
|
112
126
|
/**
|
|
@@ -126,6 +140,18 @@ export declare class StepBuilderLoopComponent implements OnInit, OnChanges {
|
|
|
126
140
|
*/
|
|
127
141
|
private updateLoopIndexOptions;
|
|
128
142
|
onLoopTypeChange(type: string | LoopType): void;
|
|
143
|
+
/**
|
|
144
|
+
* Toggle visibility of the Advanced settings section.
|
|
145
|
+
*/
|
|
146
|
+
toggleAdvanced(): void;
|
|
147
|
+
/**
|
|
148
|
+
* Handle advanced boolean variable change (e.g. shouldSkip).
|
|
149
|
+
*/
|
|
150
|
+
onAdvancedVariableBooleanChange(variableName: string, value: boolean): void;
|
|
151
|
+
/**
|
|
152
|
+
* Handle advanced non-boolean value changes (kept generic for future use, e.g. str_list).
|
|
153
|
+
*/
|
|
154
|
+
onAdvancedVariableValueChange(variableName: string, value: any): void;
|
|
129
155
|
onCancel(): void;
|
|
130
156
|
isFormValid(): boolean;
|
|
131
157
|
onCreateStep(): void;
|
|
@@ -88,6 +88,8 @@ export interface ApiEditCreatePayload {
|
|
|
88
88
|
step1: ApiEditStep1Payload;
|
|
89
89
|
step2: ApiEditStep2Payload;
|
|
90
90
|
step3: ApiEditStep3Payload;
|
|
91
|
+
/** Advanced settings variables for this API step (e.g. isStepOptional, shouldSkip). */
|
|
92
|
+
advancedSettingsVariables?: any[];
|
|
91
93
|
}
|
|
92
94
|
/** Environment option: either a string (display = value) or an object with id, name, value, label. */
|
|
93
95
|
export declare type EnvironmentOptionInput = string | SelectOption;
|
|
@@ -343,6 +345,9 @@ export declare class ApiEditStepComponent implements OnChanges, OnInit, AfterVie
|
|
|
343
345
|
private environmentFormChangesSub?;
|
|
344
346
|
private methodFormChangesSub?;
|
|
345
347
|
private paramsFormArrayChangesSub?;
|
|
348
|
+
advancedExpanded: boolean;
|
|
349
|
+
advancedSettingsVariables: any[];
|
|
350
|
+
advancedVariablesForm: FormArray;
|
|
346
351
|
constructor(fb: FormBuilder, cdr: ChangeDetectorRef);
|
|
347
352
|
ngOnInit(): void;
|
|
348
353
|
ngAfterViewInit(): void;
|
|
@@ -418,6 +423,18 @@ export declare class ApiEditStepComponent implements OnChanges, OnInit, AfterVie
|
|
|
418
423
|
addStatusVerificationRow(): void;
|
|
419
424
|
removeStatusVerificationRow(index: number): void;
|
|
420
425
|
trackByStatusVerification(index: number): number;
|
|
426
|
+
/**
|
|
427
|
+
* Build reactive form for advanced settings variables.
|
|
428
|
+
*/
|
|
429
|
+
private buildAdvancedVariablesForm;
|
|
430
|
+
/**
|
|
431
|
+
* Handle advanced boolean changes and keep both data and form in sync.
|
|
432
|
+
*/
|
|
433
|
+
onAdvancedVariableBooleanChange(variableName: string, value: boolean): void;
|
|
434
|
+
/**
|
|
435
|
+
* Handle non-boolean advanced values (kept for API compatibility; currently unused).
|
|
436
|
+
*/
|
|
437
|
+
onAdvancedVariableValueChange(variableName: string, value: any): void;
|
|
421
438
|
/** Emit all entered details (environment, HTTP method, URL, headers, body, step2 variable, step3 verifications) when user clicks Create. */
|
|
422
439
|
onCreate(): void;
|
|
423
440
|
/** Minimal payload when getCreatePayload throws (so create always emits). */
|
|
@@ -430,5 +447,5 @@ export declare class ApiEditStepComponent implements OnChanges, OnInit, AfterVie
|
|
|
430
447
|
get headers(): ApiEditHeaderRow[];
|
|
431
448
|
ngOnChanges(changes: SimpleChanges): void;
|
|
432
449
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApiEditStepComponent, never>;
|
|
433
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ApiEditStepComponent, "cqa-api-edit-step", never, { "initialMethod": "initialMethod"; "initialEnvironment": "initialEnvironment"; "initialStep": "initialStep"; "initialUrl": "initialUrl"; "initialPayloadTab": "initialPayloadTab"; "initialHeaders": "initialHeaders"; "initialResponsePreview": "initialResponsePreview"; "initialVariableName": "initialVariableName"; "editMode": "editMode"; "httpMethodOptions": "httpMethodOptions"; "environmentOptions": "environmentOptions"; "authTypeOptions": "authTypeOptions"; "initialAuthType": "initialAuthType"; "formatOptions": "formatOptions"; "initialFormat": "initialFormat"; "headerNameOptions": "headerNameOptions"; "verificationOptions": "verificationOptions"; "verificationDataTypeOptions": "verificationDataTypeOptions"; "statusVerificationOptions": "statusVerificationOptions"; }, { "importCurl": "importCurl"; "importCurlCancel": "importCurlCancel"; "sendRequest": "sendRequest"; "back": "back"; "cancel": "cancel"; "next": "next"; "create": "create"; "headersChange": "headersChange"; }, never, never>;
|
|
450
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ApiEditStepComponent, "cqa-api-edit-step", never, { "initialMethod": "initialMethod"; "initialEnvironment": "initialEnvironment"; "initialStep": "initialStep"; "initialUrl": "initialUrl"; "initialPayloadTab": "initialPayloadTab"; "initialHeaders": "initialHeaders"; "initialResponsePreview": "initialResponsePreview"; "initialVariableName": "initialVariableName"; "editMode": "editMode"; "httpMethodOptions": "httpMethodOptions"; "environmentOptions": "environmentOptions"; "authTypeOptions": "authTypeOptions"; "initialAuthType": "initialAuthType"; "formatOptions": "formatOptions"; "initialFormat": "initialFormat"; "headerNameOptions": "headerNameOptions"; "verificationOptions": "verificationOptions"; "verificationDataTypeOptions": "verificationDataTypeOptions"; "statusVerificationOptions": "statusVerificationOptions"; "advancedSettingsVariables": "advancedSettingsVariables"; }, { "importCurl": "importCurl"; "importCurlCancel": "importCurlCancel"; "sendRequest": "sendRequest"; "back": "back"; "cancel": "cancel"; "next": "next"; "create": "create"; "headersChange": "headersChange"; }, never, never>;
|
|
434
451
|
}
|