@cqa-lib/cqa-ui 1.1.246 → 1.1.247
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/ai-agent-step/ai-agent-step.component.mjs +3 -3
- package/esm2020/lib/test-case-details/ai-verify-step/ai-verify-step.component.mjs +3 -3
- package/esm2020/lib/test-case-details/api-step/api-step.component.mjs +3 -3
- package/esm2020/lib/test-case-details/condition-step/condition-step.component.mjs +3 -3
- package/esm2020/lib/test-case-details/custom-code-step/custom-code-step.component.mjs +3 -3
- package/esm2020/lib/test-case-details/database-step/database-step.component.mjs +3 -3
- package/esm2020/lib/test-case-details/loop-step/loop-step.component.mjs +80 -15
- package/esm2020/lib/test-case-details/normal-step/normal-step.component.mjs +3 -3
- package/esm2020/lib/test-case-details/restore-session-step/restore-session-step.component.mjs +3 -3
- package/esm2020/lib/test-case-details/screenshot-step/screenshot-step.component.mjs +3 -3
- package/esm2020/lib/test-case-details/scroll-step/scroll-step.component.mjs +3 -3
- package/esm2020/lib/test-case-details/step-group/step-group.component.mjs +3 -3
- package/esm2020/lib/test-case-details/test-case-details-renderer/test-case-details-renderer.component.mjs +32 -4
- package/esm2020/lib/test-case-details/test-case-step.models.mjs +1 -1
- package/esm2020/lib/test-case-details/upload-step/upload-step.component.mjs +3 -3
- package/esm2020/lib/test-case-details/verify-url-step/verify-url-step.component.mjs +3 -3
- package/fesm2015/cqa-lib-cqa-ui.mjs +141 -46
- package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
- package/fesm2020/cqa-lib-cqa-ui.mjs +136 -43
- package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
- package/lib/test-case-details/loop-step/loop-step.component.d.ts +11 -3
- package/lib/test-case-details/test-case-details-renderer/test-case-details-renderer.component.d.ts +2 -0
- package/lib/test-case-details/test-case-step.models.d.ts +2 -0
- package/package.json +1 -1
|
@@ -113,8 +113,8 @@ export declare class TestCaseLoopStepComponent implements OnInit, OnChanges {
|
|
|
113
113
|
templateVariables: any[];
|
|
114
114
|
/** Form group for template variables */
|
|
115
115
|
templateVariablesForm: FormGroup;
|
|
116
|
-
/**
|
|
117
|
-
|
|
116
|
+
/** Default max for Loop Start / End when no profile selected (options 1..10) */
|
|
117
|
+
private static readonly DEFAULT_LOOP_OPTIONS_MAX;
|
|
118
118
|
viewDetailsTrigger?: ElementRef<HTMLElement>;
|
|
119
119
|
/** Local copy of values while editing (for Cancel revert) */
|
|
120
120
|
private editSnapshot;
|
|
@@ -160,7 +160,11 @@ export declare class TestCaseLoopStepComponent implements OnInit, OnChanges {
|
|
|
160
160
|
private updateForLoopSelectConfigsSelectedValues;
|
|
161
161
|
/** Convert DataProfileOption[] to SelectOption[] */
|
|
162
162
|
private convertDataProfileOptionsToSelectOptions;
|
|
163
|
-
/**
|
|
163
|
+
/** Data length (N) of the currently selected test data profile; 0 if none selected or not found. */
|
|
164
|
+
private getSelectedProfileDataLength;
|
|
165
|
+
/** Loop Start/End options: 1 to N based on selected data profile's data array length; falls back to 1..10 if no profile. */
|
|
166
|
+
getLoopStepOptions(): number[];
|
|
167
|
+
/** Handle data profile selection: update display, clamp start/end to new profile range, refresh start/end dropdowns. */
|
|
164
168
|
private onDataProfileChange;
|
|
165
169
|
/** Handle search for data profiles */
|
|
166
170
|
private onSearchDataProfiles;
|
|
@@ -177,6 +181,10 @@ export declare class TestCaseLoopStepComponent implements OnInit, OnChanges {
|
|
|
177
181
|
private getDisplayEndIndex;
|
|
178
182
|
/** Resolve display profile name: map forLoopTestDataId to profile name from dataProfileOptions, else use testDataProfile */
|
|
179
183
|
private getDisplayTestDataProfileName;
|
|
184
|
+
/** Get the selected data profile (by forLoopTestDataId or form value), or null. */
|
|
185
|
+
private getSelectedDataProfile;
|
|
186
|
+
/** Get display name for a 1-based row index from the selected profile's data array (data[index-1].name). Returns null if no name. */
|
|
187
|
+
private getDataRowNameForOneBasedIndex;
|
|
180
188
|
/** Whether test data profile is set (so we can show/hide the chip) */
|
|
181
189
|
hasTestDataProfile(): boolean;
|
|
182
190
|
/** Whether start value is explicitly set (config or startStep input), not inferred from nested steps */
|
package/lib/test-case-details/test-case-details-renderer/test-case-details-renderer.component.d.ts
CHANGED
|
@@ -119,6 +119,8 @@ export declare class TestCaseDetailsRendererComponent implements OnChanges, Afte
|
|
|
119
119
|
constructor(componentMap: TestCaseStepComponentMap, cdr: ChangeDetectorRef);
|
|
120
120
|
ngAfterViewInit(): void;
|
|
121
121
|
ngOnChanges(changes: SimpleChanges): void;
|
|
122
|
+
/** Update only data profile / options inputs on existing instance (avoids full recreate and losing isEditing). */
|
|
123
|
+
private updateOptionsInputs;
|
|
122
124
|
private getComponentType;
|
|
123
125
|
private renderStep;
|
|
124
126
|
private wireOutputs;
|
|
@@ -44,6 +44,8 @@ export interface BaseStepConfig {
|
|
|
44
44
|
disabled?: boolean;
|
|
45
45
|
expanded?: boolean;
|
|
46
46
|
event?: Record<string, unknown>;
|
|
47
|
+
/** Creation timestamp from API (milliseconds since epoch) */
|
|
48
|
+
createdDate?: number;
|
|
47
49
|
}
|
|
48
50
|
export interface NormalStepConfig extends BaseStepConfig {
|
|
49
51
|
stepType: StepTypes.NORMAL;
|