@cqa-lib/cqa-ui 1.1.378 → 1.1.379
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 +12 -3
- package/fesm2015/cqa-lib-cqa-ui.mjs +11 -2
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +11 -2
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/test-case-details/condition-step/condition-step.component.d.ts +2 -1
- package/package.json +1 -1
|
@@ -25137,10 +25137,19 @@ class TestCaseConditionStepComponent {
|
|
|
25137
25137
|
onEditFormFieldChange(controlName, value) {
|
|
25138
25138
|
this.editForm.get(controlName)?.setValue(value);
|
|
25139
25139
|
}
|
|
25140
|
-
/** Count
|
|
25140
|
+
/** Count and summarize condition branches using their display step numbers.
|
|
25141
|
+
* Example: IF + 2x ELSE IF + ELSE → "Steps 6-9 (4 steps)". */
|
|
25141
25142
|
getStepsSummary() {
|
|
25142
25143
|
const branchCount = this.branches?.length ?? 0;
|
|
25143
|
-
|
|
25144
|
+
if (branchCount === 0) {
|
|
25145
|
+
return '0 steps';
|
|
25146
|
+
}
|
|
25147
|
+
const first = this.getBranchDisplayNumber(0);
|
|
25148
|
+
const last = this.getBranchDisplayNumber(branchCount - 1);
|
|
25149
|
+
if (branchCount === 1) {
|
|
25150
|
+
return `Steps ${first} (1 step)`;
|
|
25151
|
+
}
|
|
25152
|
+
return `Steps ${first}-${last} (${branchCount} steps)`;
|
|
25144
25153
|
}
|
|
25145
25154
|
/** Branch type badges for step row: IF, ELSE IF (with count if multiple), ELSE */
|
|
25146
25155
|
getBranchTypeBadges() {
|