@cqa-lib/cqa-ui 1.1.290 → 1.1.291

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.
@@ -147,7 +147,11 @@ export declare class TestCaseConditionStepComponent implements OnInit, OnChanges
147
147
  private updateConditionLeftSelectConfig;
148
148
  /** Options for the condition left autocomplete (IF_CONDITION natural text actions) */
149
149
  get conditionLeftAutocompleteOptions(): CqaAutocompleteOption[];
150
- /** Display value for IF condition autocomplete: show natural text from option matching naturalTextActionId when available (including when form is empty on open), else form value. */
150
+ /**
151
+ * Display value for IF/ELSE IF condition autocomplete.
152
+ * - For IF (step row / IF branch edit), show naturalText from option matching naturalTextActionId when form is empty.
153
+ * - For ELSE IF branch edit, always use the form value (so clearing leaves the field empty instead of reverting to IF).
154
+ */
151
155
  get conditionLeftDisplayValue(): string;
152
156
  onConditionLeftSelect(option: CqaAutocompleteOption & {
153
157
  template?: any;
@@ -160,7 +164,10 @@ export declare class TestCaseConditionStepComponent implements OnInit, OnChanges
160
164
  onAddElse(): void;
161
165
  onAddElseBranch(): void;
162
166
  onRemoveElse(branchId: string): void;
163
- /** Parse condition string into left, operator, right (e.g. "Usertype is Premium") */
167
+ /** Strip HTML tags from a string to get plain text */
168
+ private stripHtmlTags;
169
+ /** Parse condition string into left, operator, right (e.g. "Usertype is Premium")
170
+ * Strips HTML tags before parsing to handle formatted conditions */
164
171
  private parseCondition;
165
172
  /** Build condition string from form values */
166
173
  private buildConditionFromForm;
@@ -240,6 +247,11 @@ export declare class TestCaseConditionStepComponent implements OnInit, OnChanges
240
247
  */
241
248
  private buildElseIfBranchPayload;
242
249
  onEditApply(): void;
250
+ /**
251
+ * Local helper to substitute #{variable} placeholders in the condition text with HTML badge spans.
252
+ * Mirrors the portal renderer's substituteTemplateVariablesToHtml so inline edit mode never shows raw #{label}.
253
+ */
254
+ private substituteTemplateVariablesToHtmlForCondition;
243
255
  onEditInDepth(templateOverride?: any): void;
244
256
  onLink(): void;
245
257
  onDuplicate(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.1.290",
3
+ "version": "1.1.291",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",