@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.
@@ -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';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.1.541",
3
+ "version": "1.1.542",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",