@cqa-lib/cqa-ui 1.1.541 → 1.1.542
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/step-builder/template-variables-form/template-variables-form.component.mjs +144 -3
- package/esm2020/lib/test-case-details/ai-agent-step/ai-agent-step.component.mjs +3 -3
- package/esm2020/lib/test-case-details/ai-verify-step/ai-verify-step.component.mjs +3 -3
- package/fesm2015/cqa-lib-cqa-ui.mjs +148 -6
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +147 -6
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/step-builder/template-variables-form/template-variables-form.component.d.ts +16 -0
- package/package.json +1 -1
|
@@ -119,6 +119,7 @@ export declare class TemplateVariablesFormComponent implements OnChanges {
|
|
|
119
119
|
private dataTypeSelectConfigCache;
|
|
120
120
|
private parameterSelectConfigCache;
|
|
121
121
|
private environmentSelectConfigCache;
|
|
122
|
+
private environmentNameSelectConfigCache;
|
|
122
123
|
private environmentParameterSelectConfigCache;
|
|
123
124
|
private screenNameSelectConfigCache;
|
|
124
125
|
private elementSelectConfigCache;
|
|
@@ -152,6 +153,21 @@ export declare class TemplateVariablesFormComponent implements OnChanges {
|
|
|
152
153
|
onVariableBooleanChange(variableName: string, value: boolean): void;
|
|
153
154
|
shouldShowDropdown(variable: TemplateVariable): boolean;
|
|
154
155
|
needsDataTypeDropdown(variable: TemplateVariable): boolean;
|
|
156
|
+
/** True when the variable is the synthetic AI Ask / AI Verify environment dropdown. */
|
|
157
|
+
isEnvironmentNameType(variable: TemplateVariable): boolean;
|
|
158
|
+
/**
|
|
159
|
+
* Builds the dynamic-select config for the synthetic AI Ask / AI Verify
|
|
160
|
+
* environment dropdown. Prepends a sentinel "None" entry (empty value) so
|
|
161
|
+
* the user can explicitly clear the choice — the empty value round-trips
|
|
162
|
+
* through onVariableValueChange → setValue('') → backend reads
|
|
163
|
+
* `event.environment` as '' and treats it as no environment context.
|
|
164
|
+
*
|
|
165
|
+
* Deduplicates by environment name to mirror getUniqueEnvironments() used
|
|
166
|
+
* by the existing test-data environment selector.
|
|
167
|
+
*/
|
|
168
|
+
getEnvironmentNameSelectConfig(variable: TemplateVariable): DynamicSelectFieldConfig;
|
|
169
|
+
/** Look up an environment's display name from the numeric id stored on the variable. */
|
|
170
|
+
private resolveEnvironmentNameById;
|
|
155
171
|
getDataTypeOptions(): SelectOption[];
|
|
156
172
|
getDataTypeSelectConfig(variable: TemplateVariable, index: number): DynamicSelectFieldConfig;
|
|
157
173
|
getCurrentDataType(variable: TemplateVariable): 'plain-text' | 'parameter' | 'runtime' | 'environment';
|