@cqa-lib/cqa-ui 1.1.302 → 1.1.304
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/execution-screen/loop-step/loop-step.component.mjs +4 -1
- package/esm2020/lib/test-case-details/loop-step/loop-step.component.mjs +12 -4
- package/fesm2015/cqa-lib-cqa-ui.mjs +15 -4
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +14 -3
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -10824,6 +10824,9 @@ class LoopStepComponent extends BaseStepComponent {
|
|
|
10824
10824
|
this.config.title = stepTitle;
|
|
10825
10825
|
}
|
|
10826
10826
|
}
|
|
10827
|
+
if (changes['duration'] && this.config) {
|
|
10828
|
+
this.config.duration = changes['duration'].currentValue || 0;
|
|
10829
|
+
}
|
|
10827
10830
|
if (changes['stepDeleted'] && this.config) {
|
|
10828
10831
|
this.config.stepDeleted = changes['stepDeleted'].currentValue;
|
|
10829
10832
|
}
|
|
@@ -22790,14 +22793,22 @@ class TestCaseLoopStepComponent {
|
|
|
22790
22793
|
return false;
|
|
22791
22794
|
}
|
|
22792
22795
|
getStepsSummary() {
|
|
22793
|
-
var _a, _b;
|
|
22796
|
+
var _a, _b, _c;
|
|
22794
22797
|
if (this.nestedSteps.length === 0) {
|
|
22795
22798
|
return '0 steps';
|
|
22796
22799
|
}
|
|
22797
|
-
const start = (_a = this.getDisplayStartIndex()) !== null && _a !== void 0 ? _a : 1;
|
|
22798
|
-
const end = (_b = this.getDisplayEndIndex()) !== null && _b !== void 0 ? _b : this.nestedSteps.length;
|
|
22799
22800
|
const count = this.nestedSteps.length;
|
|
22800
|
-
|
|
22801
|
+
let startVal = this.getDisplayStartIndex();
|
|
22802
|
+
let endVal = this.getDisplayEndIndex();
|
|
22803
|
+
// -1 means "Start"/"End" placeholder; use actual step numbers from nested steps (e.g. 1.1, 1.13)
|
|
22804
|
+
if (startVal == null || startVal === -1) {
|
|
22805
|
+
startVal = (_b = (_a = this.nestedSteps[0]) === null || _a === void 0 ? void 0 : _a.stepNumber) !== null && _b !== void 0 ? _b : 1;
|
|
22806
|
+
}
|
|
22807
|
+
if (endVal == null || endVal === -1) {
|
|
22808
|
+
const last = this.nestedSteps[this.nestedSteps.length - 1];
|
|
22809
|
+
endVal = (_c = last === null || last === void 0 ? void 0 : last.stepNumber) !== null && _c !== void 0 ? _c : count;
|
|
22810
|
+
}
|
|
22811
|
+
return `Steps ${startVal}-${endVal} (${count} step${count !== 1 ? 's' : ''})`;
|
|
22801
22812
|
}
|
|
22802
22813
|
getStartStepLabel() {
|
|
22803
22814
|
var _a, _b;
|