@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.
- package/esm2020/lib/test-case-details/condition-step/condition-step.component.mjs +159 -21
- package/fesm2015/cqa-lib-cqa-ui.mjs +151 -21
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +158 -20
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/test-case-details/condition-step/condition-step.component.d.ts +14 -2
- package/package.json +1 -1
|
@@ -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
|
-
/**
|
|
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
|
-
/**
|
|
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;
|