@cqa-lib/cqa-ui 1.1.379 → 1.1.381

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.
@@ -146,6 +146,29 @@ export declare class ConditionStepComponent extends BaseStepComponent implements
146
146
  */
147
147
  private hasAnyExecutedBranch;
148
148
  onJumpToTimestamp(event: Event): void;
149
+ /**
150
+ * Get the step number for a branch based on its index
151
+ * Branches consume sequential numbers at their level
152
+ *
153
+ * Top-level: condition step "1" → branches "1" (IF), "2" (ELSE IF), "3" (ELSE)
154
+ * - IF branch children: 1.1, 1.2, etc.
155
+ * - ELSE IF branch children: 2.1, 2.2, etc.
156
+ * - ELSE branch children: 3.1, 3.2, etc.
157
+ *
158
+ * Nested: condition step "3.2.1" → branches "3.2.1" (IF), "3.2.2" (ELSE IF), "3.2.3" (ELSE)
159
+ * - IF branch children: 3.2.1.1, 3.2.1.2, etc.
160
+ * - ELSE IF branch children: 3.2.2.1, 3.2.2.2, etc.
161
+ * - ELSE branch children: 3.2.3.1, 3.2.3.2, etc.
162
+ */
163
+ getBranchStepNumber(branchIndex: number): string;
164
+ /**
165
+ * Get the base step number for nested steps within the executed branch
166
+ * If ELSE branch (index 2) is executed and its step number is 3,
167
+ * its children should be numbered 3.1, 3.2, etc.
168
+ *
169
+ * For nested condition: if ELSE branch is 2.1.3, children are 2.1.3.1, 2.1.3.2, etc.
170
+ */
171
+ getExecutedBranchBaseStepNumber(): string;
149
172
  static ɵfac: i0.ɵɵFactoryDeclaration<ConditionStepComponent, never>;
150
173
  static ɵcmp: i0.ɵɵComponentDeclaration<ConditionStepComponent, "cqa-condition-step", never, { "id": "id"; "testStepResultId": "testStepResultId"; "stepNumber": "stepNumber"; "title": "title"; "status": "status"; "duration": "duration"; "timingBreakdown": "timingBreakdown"; "expanded": "expanded"; "conditionText": "conditionText"; "branches": "branches"; "failureDetails": "failureDetails"; "reasoning": "reasoning"; "confidence": "confidence"; "selfHealAnalysis": "selfHealAnalysis"; "isLoading": "isLoading"; "nestedSteps": "nestedSteps"; "hasChild": "hasChild"; "stepDeleted": "stepDeleted"; "isDebug": "isDebug"; "debugPointSet": "debugPointSet"; "parentSkipped": "parentSkipped"; "getDebugPointSetHandler": "getDebugPointSetHandler"; "onDebugPointChangeHandler": "onDebugPointChangeHandler"; "addStepMenuOptions": "addStepMenuOptions"; "stepMoreMenuOptions": "stepMoreMenuOptions"; "ifChild": "ifChild"; "activeBranchStepId": "activeBranchStepId"; "onExpandHandler": "onExpandHandler"; "onEditStepHandler": "onEditStepHandler"; "onAddStepOptionSelectHandler": "onAddStepOptionSelectHandler"; "onStepMoreOptionSelectHandler": "onStepMoreOptionSelectHandler"; "getAddStepMenuOptionsForNested": "getAddStepMenuOptionsForNested"; "getStepMoreMenuOptionsForNested": "getStepMoreMenuOptionsForNested"; "getConditionBranchesHandler": "getConditionBranchesHandler"; "isStepLoadingHandler": "isStepLoadingHandler"; "isStepExpandedHandler": "isStepExpandedHandler"; "convertMsToSecondsHandler": "convertMsToSecondsHandler"; "formatFailureDetailsHandler": "formatFailureDetailsHandler"; "getSelfHealAnalysisHandler": "getSelfHealAnalysisHandler"; "onMakeCurrentBaselineHandler": "onMakeCurrentBaselineHandler"; "onUploadBaselineHandler": "onUploadBaselineHandler"; "onAnalyzeHandler": "onAnalyzeHandler"; "onViewFullLogsHandler": "onViewFullLogsHandler"; "onSelfHealActionHandler": "onSelfHealActionHandler"; "getSelfHealLoadingStatesHandler": "getSelfHealLoadingStatesHandler"; "getLoopIterationsHandler": "getLoopIterationsHandler"; "getApiAssertionsHandler": "getApiAssertionsHandler"; "formatActionsHandler": "formatActionsHandler"; "onViewAllIterationsHandler": "onViewAllIterationsHandler"; "onConditionBranchClickHandler": "onConditionBranchClickHandler"; "onStepClickHandler": "onStepClickHandler"; "onJsonPathCopiedHandler": "onJsonPathCopiedHandler"; "onDownloadHandler": "onDownloadHandler"; "onFilePathCopiedHandler": "onFilePathCopiedHandler"; "onTextCopiedHandler": "onTextCopiedHandler"; "jumpToTimestampHandler": "jumpToTimestampHandler"; "downloadingStepId": "downloadingStepId"; "step": "step"; "isUploadingBaseline": "isUploadingBaseline"; "isMakingCurrentBaseline": "isMakingCurrentBaseline"; "isLive": "isLive"; }, { "debugPointChange": "debugPointChange"; "editStep": "editStep"; "addStepOptionSelect": "addStepOptionSelect"; "stepMoreOptionSelect": "stepMoreOptionSelect"; "onBranchClickEvent": "onBranchClickEvent"; "onExpand": "onExpand"; "makeCurrentBaseline": "makeCurrentBaseline"; "uploadBaseline": "uploadBaseline"; "analyze": "analyze"; "viewFullLogs": "viewFullLogs"; "selfHealAction": "selfHealAction"; }, never, never>;
151
174
  }
@@ -72,6 +72,7 @@ export interface BaseStepConfig {
72
72
  isStepGroupChildren?: boolean;
73
73
  stepMoreMenuOptions?: boolean;
74
74
  debugPointDisabled?: boolean;
75
+ isRunResult?: boolean;
75
76
  }
76
77
  export interface SelfHealAnalysisData {
77
78
  originalLocator: string;
@@ -1,20 +1,43 @@
1
1
  import { EventEmitter } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { DynamicSelectFieldConfig } from '../../dynamic-select/dynamic-select-field.component';
2
4
  import * as i0 from "@angular/core";
3
5
  /**
4
6
  * Run Execution alert modal when the user clicks Execution but the test case has no prerequisites.
5
7
  * Similar to delete-steps: two actions — "Cancel" (abort) and "Run Anyway" (proceed with execution).
6
8
  */
7
9
  export declare class RunExecutionAlertComponent {
10
+ /**
11
+ * Title text shown in the header.
12
+ * Can be provided either via @Input() or MAT_DIALOG_DATA.
13
+ */
8
14
  title: string;
15
+ /**
16
+ * Body message shown under the title.
17
+ * Can be provided either via @Input() or MAT_DIALOG_DATA.
18
+ */
9
19
  message: string;
20
+ /**
21
+ * Optional form and config for a prerequisite select field.
22
+ * When provided, a cqa-dynamic-select will be rendered inside this component.
23
+ */
24
+ prerequisiteForm?: FormGroup | null;
25
+ prerequisiteSelectConfig?: DynamicSelectFieldConfig | null;
26
+ /** Emitted when user wants to run with prerequisites. */
27
+ runWithPrerequisites: EventEmitter<void>;
10
28
  constructor(data?: {
11
29
  title?: string;
12
30
  message?: string;
13
31
  });
32
+ /** Emitted when user confirms they want to proceed (Run Anyway). */
14
33
  runAnyway: EventEmitter<void>;
34
+ /** Emitted when user cancels/closes the alert. */
15
35
  cancelled: EventEmitter<void>;
36
+ /** True when "Run with Prerequisites" should be disabled (no selection). */
37
+ get disableRunWithPrereq(): boolean;
16
38
  onCancel(): void;
17
39
  onRunAnyway(): void;
40
+ onRunWithPrerequisites(): void;
18
41
  static ɵfac: i0.ɵɵFactoryDeclaration<RunExecutionAlertComponent, [{ optional: true; }]>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<RunExecutionAlertComponent, "cqa-run-execution-alert", never, {}, { "runAnyway": "runAnyway"; "cancelled": "cancelled"; }, never, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<RunExecutionAlertComponent, "cqa-run-execution-alert", never, { "title": "title"; "message": "message"; "prerequisiteForm": "prerequisiteForm"; "prerequisiteSelectConfig": "prerequisiteSelectConfig"; }, { "runWithPrerequisites": "runWithPrerequisites"; "runAnyway": "runAnyway"; "cancelled": "cancelled"; }, never, never>;
20
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.1.379",
3
+ "version": "1.1.381",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",