@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
|
@@ -10766,6 +10766,9 @@ class LoopStepComponent extends BaseStepComponent {
|
|
|
10766
10766
|
this.config.title = stepTitle;
|
|
10767
10767
|
}
|
|
10768
10768
|
}
|
|
10769
|
+
if (changes['duration'] && this.config) {
|
|
10770
|
+
this.config.duration = changes['duration'].currentValue || 0;
|
|
10771
|
+
}
|
|
10769
10772
|
if (changes['stepDeleted'] && this.config) {
|
|
10770
10773
|
this.config.stepDeleted = changes['stepDeleted'].currentValue;
|
|
10771
10774
|
}
|
|
@@ -22824,10 +22827,18 @@ class TestCaseLoopStepComponent {
|
|
|
22824
22827
|
if (this.nestedSteps.length === 0) {
|
|
22825
22828
|
return '0 steps';
|
|
22826
22829
|
}
|
|
22827
|
-
const start = this.getDisplayStartIndex() ?? 1;
|
|
22828
|
-
const end = this.getDisplayEndIndex() ?? this.nestedSteps.length;
|
|
22829
22830
|
const count = this.nestedSteps.length;
|
|
22830
|
-
|
|
22831
|
+
let startVal = this.getDisplayStartIndex();
|
|
22832
|
+
let endVal = this.getDisplayEndIndex();
|
|
22833
|
+
// -1 means "Start"/"End" placeholder; use actual step numbers from nested steps (e.g. 1.1, 1.13)
|
|
22834
|
+
if (startVal == null || startVal === -1) {
|
|
22835
|
+
startVal = this.nestedSteps[0]?.stepNumber ?? 1;
|
|
22836
|
+
}
|
|
22837
|
+
if (endVal == null || endVal === -1) {
|
|
22838
|
+
const last = this.nestedSteps[this.nestedSteps.length - 1];
|
|
22839
|
+
endVal = last?.stepNumber ?? count;
|
|
22840
|
+
}
|
|
22841
|
+
return `Steps ${startVal}-${endVal} (${count} step${count !== 1 ? 's' : ''})`;
|
|
22831
22842
|
}
|
|
22832
22843
|
getStartStepLabel() {
|
|
22833
22844
|
const start = this.getDisplayStartIndex();
|