@cqa-lib/cqa-ui 1.1.235 → 1.1.237
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/add-prerequisite-cases-section/add-prerequisite-cases-section.component.mjs +3 -3
- package/esm2020/lib/step-builder/step-builder-action/step-builder-action.component.mjs +100 -12
- package/esm2020/lib/step-builder/step-builder-condition/step-builder-condition.component.mjs +45 -3
- package/esm2020/lib/step-builder/step-builder-loop/step-builder-loop.component.mjs +45 -3
- package/esm2020/lib/step-builder/template-variables-form/template-variables-form.component.mjs +1055 -54
- package/esm2020/lib/test-case-details/condition-step/condition-step.component.mjs +3 -3
- package/esm2020/lib/test-case-details/loop-step/loop-step.component.mjs +3 -3
- package/esm2020/lib/test-case-details/scroll-step/scroll-step.component.mjs +3 -3
- package/esm2020/lib/test-case-details/step-group/step-group.component.mjs +3 -3
- package/fesm2015/cqa-lib-cqa-ui.mjs +1256 -72
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +1243 -70
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/step-builder/step-builder-action/step-builder-action.component.d.ts +50 -3
- package/lib/step-builder/step-builder-condition/step-builder-condition.component.d.ts +23 -1
- package/lib/step-builder/step-builder-loop/step-builder-loop.component.d.ts +20 -1
- package/lib/step-builder/template-variables-form/template-variables-form.component.d.ts +142 -4
- package/package.json +1 -1
- package/styles.css +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { EventEmitter, OnInit, OnChanges, SimpleChanges, OnDestroy } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormGroup, FormArray } from '@angular/forms';
|
|
3
3
|
import { DynamicSelectFieldConfig } from '../../dynamic-select/dynamic-select-field.component';
|
|
4
|
+
import { TemplateVariablesFormComponent } from '../template-variables-form/template-variables-form.component';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
interface Element {
|
|
6
7
|
id?: number;
|
|
@@ -11,7 +12,7 @@ interface Element {
|
|
|
11
12
|
}
|
|
12
13
|
export interface VariableDefinition {
|
|
13
14
|
path: string;
|
|
14
|
-
default: string | boolean;
|
|
15
|
+
default: string | boolean | number | null;
|
|
15
16
|
mutable: boolean;
|
|
16
17
|
type?: string;
|
|
17
18
|
options?: string[];
|
|
@@ -26,6 +27,11 @@ export interface ActionTemplate {
|
|
|
26
27
|
action?: string;
|
|
27
28
|
isAddon?: boolean;
|
|
28
29
|
variables?: Record<string, VariableDefinition>;
|
|
30
|
+
allowedValues?: any;
|
|
31
|
+
data?: any;
|
|
32
|
+
stepActionType?: any;
|
|
33
|
+
stepType?: any;
|
|
34
|
+
displayOrder?: number;
|
|
29
35
|
}
|
|
30
36
|
export interface ElementField {
|
|
31
37
|
key: string;
|
|
@@ -55,6 +61,27 @@ export declare class StepBuilderActionComponent implements OnInit, OnChanges, On
|
|
|
55
61
|
hasMoreScreenNames: boolean;
|
|
56
62
|
/** True while parent is loading screen names (search or load more) */
|
|
57
63
|
isLoadingScreenNames: boolean;
|
|
64
|
+
/** Parameter options for test data parameter dropdown (from API) */
|
|
65
|
+
parameterOptions: any[];
|
|
66
|
+
/** Whether more parameters are available for infinite scroll */
|
|
67
|
+
hasMoreParameters: boolean;
|
|
68
|
+
/** True while parent is loading parameters (search or load more) */
|
|
69
|
+
isLoadingParameters: boolean;
|
|
70
|
+
/** Environment options for environment parameter dropdown (from API) */
|
|
71
|
+
environmentOptions: {
|
|
72
|
+
id: string;
|
|
73
|
+
name: string;
|
|
74
|
+
value: string;
|
|
75
|
+
environment: string;
|
|
76
|
+
}[];
|
|
77
|
+
/** Whether more environments are available for infinite scroll */
|
|
78
|
+
hasMoreEnvironments: boolean;
|
|
79
|
+
/** True while parent is loading environments (search or load more) */
|
|
80
|
+
isLoadingEnvironments: boolean;
|
|
81
|
+
/** Default test data profile ID from test case (if available, profile and data set dropdowns will be disabled) */
|
|
82
|
+
defaultTestDataProfileId?: number;
|
|
83
|
+
/** Default test data start index from test case (data set index in the profile) */
|
|
84
|
+
defaultTestDataStartIndex?: number;
|
|
58
85
|
templateChanged: EventEmitter<ActionTemplate>;
|
|
59
86
|
loadMoreElements: EventEmitter<void>;
|
|
60
87
|
searchElements: EventEmitter<string>;
|
|
@@ -62,10 +89,16 @@ export declare class StepBuilderActionComponent implements OnInit, OnChanges, On
|
|
|
62
89
|
searchScreenName: EventEmitter<string>;
|
|
63
90
|
loadMoreScreenNames: EventEmitter<string>;
|
|
64
91
|
createScreenNameRequest: EventEmitter<string>;
|
|
92
|
+
searchParameters: EventEmitter<string>;
|
|
93
|
+
loadMoreParameters: EventEmitter<void>;
|
|
94
|
+
searchEnvironments: EventEmitter<string>;
|
|
95
|
+
loadMoreEnvironments: EventEmitter<void>;
|
|
65
96
|
/** Emit when step is created */
|
|
66
97
|
createStep: EventEmitter<any>;
|
|
67
98
|
/** Emit when cancelled */
|
|
68
99
|
cancelled: EventEmitter<void>;
|
|
100
|
+
redirectToParameter: EventEmitter<void>;
|
|
101
|
+
redirectToEnvironment: EventEmitter<void>;
|
|
69
102
|
filteredTemplates: ActionTemplate[];
|
|
70
103
|
searchValue: string;
|
|
71
104
|
selectedTemplate: ActionTemplate | null;
|
|
@@ -75,7 +108,8 @@ export declare class StepBuilderActionComponent implements OnInit, OnChanges, On
|
|
|
75
108
|
templateVariables: any[];
|
|
76
109
|
variablesForm: FormArray;
|
|
77
110
|
updatedHtmlGrammar: string;
|
|
78
|
-
|
|
111
|
+
createElementVisible: boolean;
|
|
112
|
+
templateVariablesForm?: TemplateVariablesFormComponent;
|
|
79
113
|
private selectConfigCache;
|
|
80
114
|
private formValidCache;
|
|
81
115
|
private lastFormValidationTime;
|
|
@@ -86,6 +120,7 @@ export declare class StepBuilderActionComponent implements OnInit, OnChanges, On
|
|
|
86
120
|
* Handle element form visibility change
|
|
87
121
|
*/
|
|
88
122
|
onElementFormVisibilityChange(visible: boolean): void;
|
|
123
|
+
onShowElementForm(): void;
|
|
89
124
|
ngOnInit(): void;
|
|
90
125
|
ngOnChanges(changes: SimpleChanges): void;
|
|
91
126
|
onSearchChange(value: string): void;
|
|
@@ -122,7 +157,19 @@ export declare class StepBuilderActionComponent implements OnInit, OnChanges, On
|
|
|
122
157
|
* Update HTML grammar by replacing placeholder spans with actual variable values
|
|
123
158
|
*/
|
|
124
159
|
private updateHtmlGrammar;
|
|
160
|
+
/**
|
|
161
|
+
* Check if selector variable is available in templateVariables
|
|
162
|
+
*/
|
|
163
|
+
get selectorVariableAvailable(): boolean;
|
|
164
|
+
/**
|
|
165
|
+
* Check if parameter variable is available (testData with parameter type)
|
|
166
|
+
*/
|
|
167
|
+
get parameterVariableAvailable(): boolean;
|
|
168
|
+
/**
|
|
169
|
+
* Check if environment variable is available (testData with environment type)
|
|
170
|
+
*/
|
|
171
|
+
get environmentVariableAvailable(): boolean;
|
|
125
172
|
static ɵfac: i0.ɵɵFactoryDeclaration<StepBuilderActionComponent, never>;
|
|
126
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StepBuilderActionComponent, "cqa-step-builder-action", never, { "showHeader": "showHeader"; "templates": "templates"; "searchPlaceholder": "searchPlaceholder"; "setTemplateVariables": "setTemplateVariables"; "preventSelectTemplate": "preventSelectTemplate"; "elementOptions": "elementOptions"; "hasMoreElements": "hasMoreElements"; "isLoadingElements": "isLoadingElements"; "screenNameOptions": "screenNameOptions"; "hasMoreScreenNames": "hasMoreScreenNames"; "isLoadingScreenNames": "isLoadingScreenNames"; }, { "templateChanged": "templateChanged"; "loadMoreElements": "loadMoreElements"; "searchElements": "searchElements"; "createElement": "createElement"; "searchScreenName": "searchScreenName"; "loadMoreScreenNames": "loadMoreScreenNames"; "createScreenNameRequest": "createScreenNameRequest"; "createStep": "createStep"; "cancelled": "cancelled"; }, never, never>;
|
|
173
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StepBuilderActionComponent, "cqa-step-builder-action", never, { "showHeader": "showHeader"; "templates": "templates"; "searchPlaceholder": "searchPlaceholder"; "setTemplateVariables": "setTemplateVariables"; "preventSelectTemplate": "preventSelectTemplate"; "elementOptions": "elementOptions"; "hasMoreElements": "hasMoreElements"; "isLoadingElements": "isLoadingElements"; "screenNameOptions": "screenNameOptions"; "hasMoreScreenNames": "hasMoreScreenNames"; "isLoadingScreenNames": "isLoadingScreenNames"; "parameterOptions": "parameterOptions"; "hasMoreParameters": "hasMoreParameters"; "isLoadingParameters": "isLoadingParameters"; "environmentOptions": "environmentOptions"; "hasMoreEnvironments": "hasMoreEnvironments"; "isLoadingEnvironments": "isLoadingEnvironments"; "defaultTestDataProfileId": "defaultTestDataProfileId"; "defaultTestDataStartIndex": "defaultTestDataStartIndex"; }, { "templateChanged": "templateChanged"; "loadMoreElements": "loadMoreElements"; "searchElements": "searchElements"; "createElement": "createElement"; "searchScreenName": "searchScreenName"; "loadMoreScreenNames": "loadMoreScreenNames"; "createScreenNameRequest": "createScreenNameRequest"; "searchParameters": "searchParameters"; "loadMoreParameters": "loadMoreParameters"; "searchEnvironments": "searchEnvironments"; "loadMoreEnvironments": "loadMoreEnvironments"; "createStep": "createStep"; "cancelled": "cancelled"; "redirectToParameter": "redirectToParameter"; "redirectToEnvironment": "redirectToEnvironment"; }, never, never>;
|
|
127
174
|
}
|
|
128
175
|
export {};
|
|
@@ -43,6 +43,22 @@ export declare class StepBuilderConditionComponent implements OnInit, OnChanges
|
|
|
43
43
|
hasMoreScreenNames: boolean;
|
|
44
44
|
/** True while parent is loading screen names (search or load more) */
|
|
45
45
|
isLoadingScreenNames: boolean;
|
|
46
|
+
/** Parameter fetching properties */
|
|
47
|
+
parameterOptions: any[];
|
|
48
|
+
hasMoreParameters: boolean;
|
|
49
|
+
isLoadingParameters: boolean;
|
|
50
|
+
/** Environment fetching properties */
|
|
51
|
+
environmentOptions: {
|
|
52
|
+
id: string;
|
|
53
|
+
name: string;
|
|
54
|
+
value: string;
|
|
55
|
+
environment: string;
|
|
56
|
+
}[];
|
|
57
|
+
hasMoreEnvironments: boolean;
|
|
58
|
+
isLoadingEnvironments: boolean;
|
|
59
|
+
/** Default test data profile properties */
|
|
60
|
+
defaultTestDataProfileId?: number;
|
|
61
|
+
defaultTestDataStartIndex?: number;
|
|
46
62
|
/** Emit when step is created */
|
|
47
63
|
createStep: EventEmitter<ConditionFormData>;
|
|
48
64
|
/** Emit when cancelled */
|
|
@@ -53,6 +69,12 @@ export declare class StepBuilderConditionComponent implements OnInit, OnChanges
|
|
|
53
69
|
searchScreenName: EventEmitter<string>;
|
|
54
70
|
loadMoreScreenNames: EventEmitter<string>;
|
|
55
71
|
createScreenNameRequest: EventEmitter<string>;
|
|
72
|
+
searchParameters: EventEmitter<string>;
|
|
73
|
+
loadMoreParameters: EventEmitter<void>;
|
|
74
|
+
searchEnvironments: EventEmitter<string>;
|
|
75
|
+
loadMoreEnvironments: EventEmitter<void>;
|
|
76
|
+
redirectToParameter: EventEmitter<void>;
|
|
77
|
+
redirectToEnvironment: EventEmitter<void>;
|
|
56
78
|
conditionForm: FormGroup;
|
|
57
79
|
includeElse: boolean;
|
|
58
80
|
private valueConfigCache;
|
|
@@ -103,6 +125,6 @@ export declare class StepBuilderConditionComponent implements OnInit, OnChanges
|
|
|
103
125
|
onCancel(): void;
|
|
104
126
|
onCreateStep(): void;
|
|
105
127
|
static ɵfac: i0.ɵɵFactoryDeclaration<StepBuilderConditionComponent, never>;
|
|
106
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StepBuilderConditionComponent, "cqa-step-builder-condition", never, { "operatorOptions": "operatorOptions"; "conditionTemplates": "conditionTemplates"; "setConditionTemplateVariables": "setConditionTemplateVariables"; "elementOptions": "elementOptions"; "hasMoreElements": "hasMoreElements"; "isLoadingElements": "isLoadingElements"; "screenNameOptions": "screenNameOptions"; "hasMoreScreenNames": "hasMoreScreenNames"; "isLoadingScreenNames": "isLoadingScreenNames"; }, { "createStep": "createStep"; "cancelled": "cancelled"; "loadMoreElements": "loadMoreElements"; "searchElements": "searchElements"; "createElement": "createElement"; "searchScreenName": "searchScreenName"; "loadMoreScreenNames": "loadMoreScreenNames"; "createScreenNameRequest": "createScreenNameRequest"; }, never, never>;
|
|
128
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StepBuilderConditionComponent, "cqa-step-builder-condition", never, { "operatorOptions": "operatorOptions"; "conditionTemplates": "conditionTemplates"; "setConditionTemplateVariables": "setConditionTemplateVariables"; "elementOptions": "elementOptions"; "hasMoreElements": "hasMoreElements"; "isLoadingElements": "isLoadingElements"; "screenNameOptions": "screenNameOptions"; "hasMoreScreenNames": "hasMoreScreenNames"; "isLoadingScreenNames": "isLoadingScreenNames"; "parameterOptions": "parameterOptions"; "hasMoreParameters": "hasMoreParameters"; "isLoadingParameters": "isLoadingParameters"; "environmentOptions": "environmentOptions"; "hasMoreEnvironments": "hasMoreEnvironments"; "isLoadingEnvironments": "isLoadingEnvironments"; "defaultTestDataProfileId": "defaultTestDataProfileId"; "defaultTestDataStartIndex": "defaultTestDataStartIndex"; }, { "createStep": "createStep"; "cancelled": "cancelled"; "loadMoreElements": "loadMoreElements"; "searchElements": "searchElements"; "createElement": "createElement"; "searchScreenName": "searchScreenName"; "loadMoreScreenNames": "loadMoreScreenNames"; "createScreenNameRequest": "createScreenNameRequest"; "searchParameters": "searchParameters"; "loadMoreParameters": "loadMoreParameters"; "searchEnvironments": "searchEnvironments"; "loadMoreEnvironments": "loadMoreEnvironments"; "redirectToParameter": "redirectToParameter"; "redirectToEnvironment": "redirectToEnvironment"; }, never, never>;
|
|
107
129
|
}
|
|
108
130
|
export {};
|
|
@@ -62,6 +62,19 @@ export declare class StepBuilderLoopComponent implements OnInit, OnChanges {
|
|
|
62
62
|
}[];
|
|
63
63
|
hasMoreScreenNames: boolean;
|
|
64
64
|
isLoadingScreenNames: boolean;
|
|
65
|
+
parameterOptions: any[];
|
|
66
|
+
hasMoreParameters: boolean;
|
|
67
|
+
isLoadingParameters: boolean;
|
|
68
|
+
environmentOptions: {
|
|
69
|
+
id: string;
|
|
70
|
+
name: string;
|
|
71
|
+
value: string;
|
|
72
|
+
environment: string;
|
|
73
|
+
}[];
|
|
74
|
+
hasMoreEnvironments: boolean;
|
|
75
|
+
isLoadingEnvironments: boolean;
|
|
76
|
+
defaultTestDataProfileId?: number;
|
|
77
|
+
defaultTestDataStartIndex?: number;
|
|
65
78
|
loadMoreElements: EventEmitter<void>;
|
|
66
79
|
searchElements: EventEmitter<string>;
|
|
67
80
|
createElement: EventEmitter<any>;
|
|
@@ -69,6 +82,12 @@ export declare class StepBuilderLoopComponent implements OnInit, OnChanges {
|
|
|
69
82
|
loadMoreScreenNames: EventEmitter<string>;
|
|
70
83
|
createScreenNameRequest: EventEmitter<string>;
|
|
71
84
|
cancelElementForm: EventEmitter<void>;
|
|
85
|
+
searchParameters: EventEmitter<string>;
|
|
86
|
+
loadMoreParameters: EventEmitter<void>;
|
|
87
|
+
searchEnvironments: EventEmitter<string>;
|
|
88
|
+
loadMoreEnvironments: EventEmitter<void>;
|
|
89
|
+
redirectToParameter: EventEmitter<void>;
|
|
90
|
+
redirectToEnvironment: EventEmitter<void>;
|
|
72
91
|
selectedWhileTemplate: any;
|
|
73
92
|
selectedLoopType: LoopType;
|
|
74
93
|
loopForm: FormGroup;
|
|
@@ -127,5 +146,5 @@ export declare class StepBuilderLoopComponent implements OnInit, OnChanges {
|
|
|
127
146
|
filterWhileTemplates(query: string): void;
|
|
128
147
|
selectWhileTemplate(template: any): void;
|
|
129
148
|
static ɵfac: i0.ɵɵFactoryDeclaration<StepBuilderLoopComponent, never>;
|
|
130
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StepBuilderLoopComponent, "cqa-step-builder-loop", never, { "loopType": "loopType"; "selectOptions": "selectOptions"; "dataProfileOptions": "dataProfileOptions"; "hasMoreDataProfiles": "hasMoreDataProfiles"; "isLoadingDataProfiles": "isLoadingDataProfiles"; "setWhileTemplateVariables": "setWhileTemplateVariables"; "whileTemplates": "whileTemplates"; "whileSearchPlaceholder": "whileSearchPlaceholder"; "whileSearchValue": "whileSearchValue"; "elementOptions": "elementOptions"; "hasMoreElements": "hasMoreElements"; "isLoadingElements": "isLoadingElements"; "screenNameOptions": "screenNameOptions"; "hasMoreScreenNames": "hasMoreScreenNames"; "isLoadingScreenNames": "isLoadingScreenNames"; }, { "createStep": "createStep"; "cancelled": "cancelled"; "loopTypeChange": "loopTypeChange"; "loadMoreDataProfiles": "loadMoreDataProfiles"; "searchDataProfiles": "searchDataProfiles"; "loadMoreElements": "loadMoreElements"; "searchElements": "searchElements"; "createElement": "createElement"; "searchScreenName": "searchScreenName"; "loadMoreScreenNames": "loadMoreScreenNames"; "createScreenNameRequest": "createScreenNameRequest"; "cancelElementForm": "cancelElementForm"; }, never, never>;
|
|
149
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StepBuilderLoopComponent, "cqa-step-builder-loop", never, { "loopType": "loopType"; "selectOptions": "selectOptions"; "dataProfileOptions": "dataProfileOptions"; "hasMoreDataProfiles": "hasMoreDataProfiles"; "isLoadingDataProfiles": "isLoadingDataProfiles"; "setWhileTemplateVariables": "setWhileTemplateVariables"; "whileTemplates": "whileTemplates"; "whileSearchPlaceholder": "whileSearchPlaceholder"; "whileSearchValue": "whileSearchValue"; "elementOptions": "elementOptions"; "hasMoreElements": "hasMoreElements"; "isLoadingElements": "isLoadingElements"; "screenNameOptions": "screenNameOptions"; "hasMoreScreenNames": "hasMoreScreenNames"; "isLoadingScreenNames": "isLoadingScreenNames"; "parameterOptions": "parameterOptions"; "hasMoreParameters": "hasMoreParameters"; "isLoadingParameters": "isLoadingParameters"; "environmentOptions": "environmentOptions"; "hasMoreEnvironments": "hasMoreEnvironments"; "isLoadingEnvironments": "isLoadingEnvironments"; "defaultTestDataProfileId": "defaultTestDataProfileId"; "defaultTestDataStartIndex": "defaultTestDataStartIndex"; }, { "createStep": "createStep"; "cancelled": "cancelled"; "loopTypeChange": "loopTypeChange"; "loadMoreDataProfiles": "loadMoreDataProfiles"; "searchDataProfiles": "searchDataProfiles"; "loadMoreElements": "loadMoreElements"; "searchElements": "searchElements"; "createElement": "createElement"; "searchScreenName": "searchScreenName"; "loadMoreScreenNames": "loadMoreScreenNames"; "createScreenNameRequest": "createScreenNameRequest"; "cancelElementForm": "cancelElementForm"; "searchParameters": "searchParameters"; "loadMoreParameters": "loadMoreParameters"; "searchEnvironments": "searchEnvironments"; "loadMoreEnvironments": "loadMoreEnvironments"; "redirectToParameter": "redirectToParameter"; "redirectToEnvironment": "redirectToEnvironment"; }, never, never>;
|
|
131
150
|
}
|
|
@@ -17,6 +17,13 @@ export interface TemplateVariable {
|
|
|
17
17
|
value: any;
|
|
18
18
|
type?: string;
|
|
19
19
|
options?: string[];
|
|
20
|
+
dataType?: 'plain-text' | 'parameter' | 'runtime' | 'environment';
|
|
21
|
+
rawValue?: string;
|
|
22
|
+
selectedEnvironment?: string;
|
|
23
|
+
selectedEnvironmentId?: number;
|
|
24
|
+
selectedTestDataProfile?: string;
|
|
25
|
+
selectedTestDataProfileId?: number;
|
|
26
|
+
selectedDataSet?: string;
|
|
20
27
|
}
|
|
21
28
|
export declare class TemplateVariablesFormComponent implements OnChanges {
|
|
22
29
|
private cdr;
|
|
@@ -33,6 +40,27 @@ export declare class TemplateVariablesFormComponent implements OnChanges {
|
|
|
33
40
|
hasMoreScreenNames: boolean;
|
|
34
41
|
/** True while parent is loading screen names (search or load more) */
|
|
35
42
|
isLoadingScreenNames: boolean;
|
|
43
|
+
/** Test data profiles for parameter dropdown (from API) - raw TestData objects */
|
|
44
|
+
parameterOptions: any[];
|
|
45
|
+
/** Whether more parameters are available for infinite scroll */
|
|
46
|
+
hasMoreParameters: boolean;
|
|
47
|
+
/** True while parent is loading parameters (search or load more) */
|
|
48
|
+
isLoadingParameters: boolean;
|
|
49
|
+
/** Environment options for environment parameter dropdown (from API) */
|
|
50
|
+
environmentOptions: {
|
|
51
|
+
id: string;
|
|
52
|
+
name: string;
|
|
53
|
+
value: string;
|
|
54
|
+
environment: string;
|
|
55
|
+
}[];
|
|
56
|
+
/** Whether more environments are available for infinite scroll */
|
|
57
|
+
hasMoreEnvironments: boolean;
|
|
58
|
+
/** True while parent is loading environments (search or load more) */
|
|
59
|
+
isLoadingEnvironments: boolean;
|
|
60
|
+
/** Default test data profile ID from test case (if available, profile and data set dropdowns will be disabled) */
|
|
61
|
+
defaultTestDataProfileId?: number;
|
|
62
|
+
/** Default test data start index from test case (data set index in the profile) */
|
|
63
|
+
defaultTestDataStartIndex?: number;
|
|
36
64
|
variableValueChange: EventEmitter<{
|
|
37
65
|
name: string;
|
|
38
66
|
value: any;
|
|
@@ -49,12 +77,20 @@ export declare class TemplateVariablesFormComponent implements OnChanges {
|
|
|
49
77
|
searchScreenName: EventEmitter<string>;
|
|
50
78
|
loadMoreScreenNames: EventEmitter<string>;
|
|
51
79
|
createScreenNameRequest: EventEmitter<string>;
|
|
80
|
+
searchParameters: EventEmitter<string>;
|
|
81
|
+
loadMoreParameters: EventEmitter<void>;
|
|
82
|
+
searchEnvironments: EventEmitter<string>;
|
|
83
|
+
loadMoreEnvironments: EventEmitter<void>;
|
|
52
84
|
cancelElementForm: EventEmitter<void>;
|
|
53
85
|
elementFormVisibilityChange: EventEmitter<boolean>;
|
|
54
86
|
private selectConfigCache;
|
|
55
87
|
private dataTypeSelectConfigCache;
|
|
56
|
-
private
|
|
57
|
-
private
|
|
88
|
+
private parameterSelectConfigCache;
|
|
89
|
+
private environmentSelectConfigCache;
|
|
90
|
+
private environmentParameterSelectConfigCache;
|
|
91
|
+
private testDataProfileSelectConfigCache;
|
|
92
|
+
private dataSetSelectConfigCache;
|
|
93
|
+
private parameterForDataSetSelectConfigCache;
|
|
58
94
|
private needsDataTypeDropdownCache;
|
|
59
95
|
private shouldShowDropdownCache;
|
|
60
96
|
private readonly dataTypeOptions;
|
|
@@ -62,7 +98,6 @@ export declare class TemplateVariablesFormComponent implements OnChanges {
|
|
|
62
98
|
constructor(cdr: ChangeDetectorRef);
|
|
63
99
|
onCreateElement(payload: ElementCreatePayload): void;
|
|
64
100
|
onCancelElementForm(): void;
|
|
65
|
-
onShowElementForm(): void;
|
|
66
101
|
ngOnChanges(changes: SimpleChanges): void;
|
|
67
102
|
private initializeTestDataVariables;
|
|
68
103
|
/** Get form group for a variable by name from FormArray */
|
|
@@ -100,7 +135,110 @@ export declare class TemplateVariablesFormComponent implements OnChanges {
|
|
|
100
135
|
query: string;
|
|
101
136
|
}): void;
|
|
102
137
|
onTestDataValueChange(variableName: string, rawValue: string): void;
|
|
138
|
+
/**
|
|
139
|
+
* Get unique test data profiles from parameter options (raw TestData objects)
|
|
140
|
+
*/
|
|
141
|
+
getUniqueTestDataProfiles(): {
|
|
142
|
+
id: string;
|
|
143
|
+
name: string;
|
|
144
|
+
}[];
|
|
145
|
+
/**
|
|
146
|
+
* Get data sets for a specific test data profile
|
|
147
|
+
* Returns all data sets from the profile's data array
|
|
148
|
+
*/
|
|
149
|
+
getDataSetsForTestDataProfile(profileId: string): {
|
|
150
|
+
id: string;
|
|
151
|
+
name: string;
|
|
152
|
+
}[];
|
|
153
|
+
/**
|
|
154
|
+
* Get parameters for a specific data set in a test data profile
|
|
155
|
+
* Extracts parameter names from the selected data set's data object
|
|
156
|
+
*/
|
|
157
|
+
getParametersForDataSet(profileIdOrName: string, dataSetName: string): {
|
|
158
|
+
id: string;
|
|
159
|
+
name: string;
|
|
160
|
+
}[];
|
|
161
|
+
/**
|
|
162
|
+
* Get select config for test data profile dropdown (first dropdown for parameters)
|
|
163
|
+
*/
|
|
164
|
+
getTestDataProfileSelectConfig(variable: TemplateVariable, index: number): DynamicSelectFieldConfig;
|
|
165
|
+
/**
|
|
166
|
+
* Get select config for data set dropdown (second dropdown for parameters - shows data sets from selected profile)
|
|
167
|
+
*/
|
|
168
|
+
getDataSetSelectConfig(variable: TemplateVariable, index: number): DynamicSelectFieldConfig;
|
|
169
|
+
/**
|
|
170
|
+
* Get select config for parameter dropdown (third dropdown for parameters - shows parameters from selected data set)
|
|
171
|
+
*/
|
|
172
|
+
getParameterSelectConfig(variable: TemplateVariable, index: number): DynamicSelectFieldConfig;
|
|
173
|
+
/**
|
|
174
|
+
* Get unique environments from environment options
|
|
175
|
+
*/
|
|
176
|
+
getUniqueEnvironments(): {
|
|
177
|
+
id: string;
|
|
178
|
+
name: string;
|
|
179
|
+
}[];
|
|
180
|
+
/**
|
|
181
|
+
* Get parameters for a specific environment
|
|
182
|
+
*/
|
|
183
|
+
getParametersForEnvironment(environmentName: string): {
|
|
184
|
+
id: string;
|
|
185
|
+
name: string;
|
|
186
|
+
}[];
|
|
187
|
+
/**
|
|
188
|
+
* Get select config for environment dropdown (first dropdown - select environment)
|
|
189
|
+
*/
|
|
190
|
+
getEnvironmentSelectConfig(variable: TemplateVariable, index: number): DynamicSelectFieldConfig;
|
|
191
|
+
/**
|
|
192
|
+
* Get select config for environment parameter dropdown (second dropdown - select parameter from environment)
|
|
193
|
+
*/
|
|
194
|
+
getEnvironmentParameterSelectConfig(variable: TemplateVariable, index: number): DynamicSelectFieldConfig;
|
|
195
|
+
/**
|
|
196
|
+
* Get selected environment for a variable
|
|
197
|
+
*/
|
|
198
|
+
getSelectedEnvironment(variable: TemplateVariable): string;
|
|
199
|
+
/**
|
|
200
|
+
* Check if environment is selected for a variable
|
|
201
|
+
*/
|
|
202
|
+
hasSelectedEnvironment(variable: TemplateVariable): boolean;
|
|
203
|
+
/**
|
|
204
|
+
* Get selected environment ID for a variable
|
|
205
|
+
*/
|
|
206
|
+
getSelectedEnvironmentId(variable: TemplateVariable): number | null;
|
|
207
|
+
/**
|
|
208
|
+
* Get all environment IDs for variables that use environment type
|
|
209
|
+
* Returns a map of variable name to environment ID
|
|
210
|
+
*/
|
|
211
|
+
getEnvironmentIdsForVariables(): Map<string, number>;
|
|
212
|
+
/**
|
|
213
|
+
* Check if current data type is plain-text
|
|
214
|
+
*/
|
|
215
|
+
isPlainTextType(variable: TemplateVariable): boolean;
|
|
216
|
+
/**
|
|
217
|
+
* Check if current data type is parameter
|
|
218
|
+
*/
|
|
219
|
+
isParameterType(variable: TemplateVariable): boolean;
|
|
220
|
+
/**
|
|
221
|
+
* Check if test data profile is selected for a variable
|
|
222
|
+
*/
|
|
223
|
+
hasSelectedTestDataProfile(variable: TemplateVariable): boolean;
|
|
224
|
+
/**
|
|
225
|
+
* Check if data set is selected for a variable
|
|
226
|
+
*/
|
|
227
|
+
hasSelectedDataSet(variable: TemplateVariable): boolean;
|
|
228
|
+
/**
|
|
229
|
+
* Check if default test data profile and data set are set (from test case)
|
|
230
|
+
* If true, profile and data set dropdowns should be disabled
|
|
231
|
+
*/
|
|
232
|
+
hasDefaultTestDataSelection(): boolean;
|
|
233
|
+
/**
|
|
234
|
+
* Check if current data type is environment
|
|
235
|
+
*/
|
|
236
|
+
isEnvironmentType(variable: TemplateVariable): boolean;
|
|
237
|
+
/**
|
|
238
|
+
* Check if current data type is runtime
|
|
239
|
+
*/
|
|
240
|
+
isRuntimeType(variable: TemplateVariable): boolean;
|
|
103
241
|
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateVariablesFormComponent, never>;
|
|
104
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TemplateVariablesFormComponent, "cqa-template-variables-form", never, { "templateVariables": "templateVariables"; "variablesForm": "variablesForm"; "metadata": "metadata"; "description": "description"; "elementOptions": "elementOptions"; "hasMoreElements": "hasMoreElements"; "isLoadingElements": "isLoadingElements"; "screenNameOptions": "screenNameOptions"; "hasMoreScreenNames": "hasMoreScreenNames"; "isLoadingScreenNames": "isLoadingScreenNames"; }, { "variableValueChange": "variableValueChange"; "variableBooleanChange": "variableBooleanChange"; "metadataChange": "metadataChange"; "descriptionChange": "descriptionChange"; "loadMoreElements": "loadMoreElements"; "searchElements": "searchElements"; "createElement": "createElement"; "searchScreenName": "searchScreenName"; "loadMoreScreenNames": "loadMoreScreenNames"; "createScreenNameRequest": "createScreenNameRequest"; "cancelElementForm": "cancelElementForm"; "elementFormVisibilityChange": "elementFormVisibilityChange"; }, never, never>;
|
|
242
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TemplateVariablesFormComponent, "cqa-template-variables-form", never, { "templateVariables": "templateVariables"; "variablesForm": "variablesForm"; "metadata": "metadata"; "description": "description"; "elementOptions": "elementOptions"; "hasMoreElements": "hasMoreElements"; "isLoadingElements": "isLoadingElements"; "screenNameOptions": "screenNameOptions"; "hasMoreScreenNames": "hasMoreScreenNames"; "isLoadingScreenNames": "isLoadingScreenNames"; "parameterOptions": "parameterOptions"; "hasMoreParameters": "hasMoreParameters"; "isLoadingParameters": "isLoadingParameters"; "environmentOptions": "environmentOptions"; "hasMoreEnvironments": "hasMoreEnvironments"; "isLoadingEnvironments": "isLoadingEnvironments"; "defaultTestDataProfileId": "defaultTestDataProfileId"; "defaultTestDataStartIndex": "defaultTestDataStartIndex"; "createElementVisible": "createElementVisible"; }, { "variableValueChange": "variableValueChange"; "variableBooleanChange": "variableBooleanChange"; "metadataChange": "metadataChange"; "descriptionChange": "descriptionChange"; "loadMoreElements": "loadMoreElements"; "searchElements": "searchElements"; "createElement": "createElement"; "searchScreenName": "searchScreenName"; "loadMoreScreenNames": "loadMoreScreenNames"; "createScreenNameRequest": "createScreenNameRequest"; "searchParameters": "searchParameters"; "loadMoreParameters": "loadMoreParameters"; "searchEnvironments": "searchEnvironments"; "loadMoreEnvironments": "loadMoreEnvironments"; "cancelElementForm": "cancelElementForm"; "elementFormVisibilityChange": "elementFormVisibilityChange"; }, never, never>;
|
|
105
243
|
}
|
|
106
244
|
export {};
|