@cqa-lib/cqa-ui 1.1.90 → 1.1.92

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.
@@ -1,9 +1,9 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
2
2
  import { BasicStepConfig, SelfHealAction, SubStep, StepStatus, TimingBreakdown, SelfHealAnalysisData, FailureDetails, ExecutionStepConfig, ConditionBranch } from '../execution-step.models';
3
3
  import { BaseStepComponent } from '../base-step.component';
4
4
  import { makeCurrentBaselineEvent, uploadBaselineEvent } from '../visual-comparison/visual-comparison.component';
5
5
  import * as i0 from "@angular/core";
6
- export declare class BasicStepComponent extends BaseStepComponent implements OnInit {
6
+ export declare class BasicStepComponent extends BaseStepComponent implements OnInit, OnChanges {
7
7
  id: string;
8
8
  testStepResultId: string;
9
9
  stepNumber: string;
@@ -55,6 +55,7 @@ export declare class BasicStepComponent extends BaseStepComponent implements OnI
55
55
  }>;
56
56
  config: BasicStepConfig;
57
57
  ngOnInit(): void;
58
+ ngOnChanges(changes: SimpleChanges): void;
58
59
  get hasSubSteps(): boolean;
59
60
  showFailedStepDetails: boolean;
60
61
  onViewMoreFailedStepClick(expanded: boolean): void;
@@ -80,24 +80,8 @@ export declare class ConditionStepComponent extends BaseStepComponent implements
80
80
  get showViewMoreButton(): boolean;
81
81
  toggleHeader(): void;
82
82
  get hasExpandableContent(): boolean;
83
- /**
84
- * Determine the active branch step ID based on executed branch.
85
- * Always derives activeBranchStepId from the executed branch (not user selection).
86
- */
87
83
  private determineActiveBranch;
88
- /**
89
- * Filter nested steps to show only children of the active branch step.
90
- */
91
- /**
92
- * Branch click handler - DISABLED for manual selection.
93
- * Branches are now automatically determined by executed status.
94
- * This method is kept for backward compatibility but does not allow manual selection.
95
- */
96
84
  onBranchClick(branch: ConditionBranch): void;
97
- /**
98
- * Get CSS classes for branch button based on execution status and active state.
99
- * For live mode: shows blue border if branch is active but not executed.
100
- */
101
85
  getBranchClass(branch: any): string;
102
86
  /**
103
87
  * Check if any branch is executed.
@@ -39,6 +39,7 @@ export interface LogEntry {
39
39
  timestamp?: string;
40
40
  }
41
41
  export interface FailureDetails {
42
+ testStepId: string;
42
43
  expected: string;
43
44
  actual: string;
44
45
  failedAction?: string;
@@ -1,9 +1,9 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { FailedStepConfig, SubStep, FailureDetails, TimingBreakdown } from '../execution-step.models';
3
3
  import { BaseStepComponent } from '../base-step.component';
4
4
  import { makeCurrentBaselineEvent, uploadBaselineEvent } from '../visual-comparison/visual-comparison.component';
5
5
  import * as i0 from "@angular/core";
6
- export declare class UpdatedFailedStepComponent extends BaseStepComponent implements OnInit {
6
+ export declare class UpdatedFailedStepComponent extends BaseStepComponent implements OnInit, OnChanges {
7
7
  timingBreakdown?: TimingBreakdown;
8
8
  testStepResultId: string;
9
9
  expanded?: boolean;
@@ -20,6 +20,7 @@ export declare class UpdatedFailedStepComponent extends BaseStepComponent implem
20
20
  viewFullLogs: EventEmitter<void>;
21
21
  config: FailedStepConfig;
22
22
  ngOnInit(): void;
23
+ ngOnChanges(changes: SimpleChanges): void;
23
24
  onMakeCurrentBaseline(event: makeCurrentBaselineEvent): void;
24
25
  onUploadBaseline(event: uploadBaselineEvent): void;
25
26
  onAnalyze(): void;
@@ -1,16 +1,19 @@
1
- import { EventEmitter, ElementRef } from '@angular/core';
2
- import { ScreenshotData, LogEntry } from '../execution-step.models';
1
+ import { EventEmitter, ElementRef, OnChanges, SimpleChanges, ChangeDetectorRef, AfterViewInit } from '@angular/core';
2
+ import { ScreenshotData, LogEntry, FailureDetails } from '../execution-step.models';
3
3
  import { ImageViewType } from '../../visual-difference-modal/visual-difference-modal.component';
4
4
  import * as i0 from "@angular/core";
5
5
  export interface makeCurrentBaselineEvent {
6
6
  testStepResultId: string;
7
7
  currentUrl: string;
8
+ failureDetails?: FailureDetails;
8
9
  }
9
10
  export interface uploadBaselineEvent {
10
11
  file: File;
11
12
  testStepResultId: string;
13
+ failureDetails?: FailureDetails;
12
14
  }
13
- export declare class VisualComparisonComponent {
15
+ export declare class VisualComparisonComponent implements OnChanges, AfterViewInit {
16
+ private cdr;
14
17
  screenshots?: ScreenshotData;
15
18
  logs?: LogEntry[];
16
19
  showFullLogsLink?: boolean;
@@ -23,8 +26,14 @@ export declare class VisualComparisonComponent {
23
26
  analyze: EventEmitter<void>;
24
27
  viewFullLogs: EventEmitter<void>;
25
28
  fileInput: ElementRef<HTMLInputElement>;
29
+ baselineImage: ElementRef<HTMLImageElement>;
26
30
  isModalOpen: boolean;
27
31
  initialModalView: ImageViewType;
32
+ baselineImageUrl?: string;
33
+ constructor(cdr: ChangeDetectorRef);
34
+ ngAfterViewInit(): void;
35
+ ngOnChanges(changes: SimpleChanges): void;
36
+ private updateBaselineUrl;
28
37
  get isCurrentImageAvailable(): boolean;
29
38
  onMakeCurrentBaseline(): void;
30
39
  onUploadBaseline(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.1.90",
3
+ "version": "1.1.92",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",