@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
|
@@ -25129,11 +25129,20 @@ class TestCaseConditionStepComponent {
|
|
|
25129
25129
|
var _a;
|
|
25130
25130
|
(_a = this.editForm.get(controlName)) === null || _a === void 0 ? void 0 : _a.setValue(value);
|
|
25131
25131
|
}
|
|
25132
|
-
/** Count
|
|
25132
|
+
/** Count and summarize condition branches using their display step numbers.
|
|
25133
|
+
* Example: IF + 2x ELSE IF + ELSE → "Steps 6-9 (4 steps)". */
|
|
25133
25134
|
getStepsSummary() {
|
|
25134
25135
|
var _a, _b;
|
|
25135
25136
|
const branchCount = (_b = (_a = this.branches) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
|
25136
|
-
|
|
25137
|
+
if (branchCount === 0) {
|
|
25138
|
+
return '0 steps';
|
|
25139
|
+
}
|
|
25140
|
+
const first = this.getBranchDisplayNumber(0);
|
|
25141
|
+
const last = this.getBranchDisplayNumber(branchCount - 1);
|
|
25142
|
+
if (branchCount === 1) {
|
|
25143
|
+
return `Steps ${first} (1 step)`;
|
|
25144
|
+
}
|
|
25145
|
+
return `Steps ${first}-${last} (${branchCount} steps)`;
|
|
25137
25146
|
}
|
|
25138
25147
|
/** Branch type badges for step row: IF, ELSE IF (with count if multiple), ELSE */
|
|
25139
25148
|
getBranchTypeBadges() {
|