@cqa-lib/cqa-ui 1.1.145 → 1.1.147

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.
Files changed (23) hide show
  1. package/esm2020/lib/execution-screen/ai-agent-step/ai-agent-step.component.mjs +7 -2
  2. package/esm2020/lib/execution-screen/api-step/api-step.component.mjs +6 -2
  3. package/esm2020/lib/execution-screen/basic-step/basic-step.component.mjs +8 -4
  4. package/esm2020/lib/execution-screen/condition-step/condition-step.component.mjs +8 -4
  5. package/esm2020/lib/execution-screen/db-verification-step/db-verification-step.component.mjs +6 -2
  6. package/esm2020/lib/execution-screen/execution-step.models.mjs +1 -1
  7. package/esm2020/lib/execution-screen/loop-step/loop-step.component.mjs +8 -4
  8. package/esm2020/lib/execution-screen/step-group/step-group.component.mjs +5 -3
  9. package/esm2020/lib/execution-screen/step-renderer/step-renderer.component.mjs +75 -5
  10. package/fesm2015/cqa-lib-cqa-ui.mjs +124 -19
  11. package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
  12. package/fesm2020/cqa-lib-cqa-ui.mjs +115 -18
  13. package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
  14. package/lib/execution-screen/ai-agent-step/ai-agent-step.component.d.ts +2 -5
  15. package/lib/execution-screen/api-step/api-step.component.d.ts +2 -5
  16. package/lib/execution-screen/basic-step/basic-step.component.d.ts +2 -5
  17. package/lib/execution-screen/condition-step/condition-step.component.d.ts +2 -5
  18. package/lib/execution-screen/db-verification-step/db-verification-step.component.d.ts +2 -5
  19. package/lib/execution-screen/execution-step.models.d.ts +6 -0
  20. package/lib/execution-screen/loop-step/loop-step.component.d.ts +2 -5
  21. package/lib/execution-screen/step-group/step-group.component.d.ts +5 -1
  22. package/lib/execution-screen/step-renderer/step-renderer.component.d.ts +6 -1
  23. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter, OnInit, SimpleChanges } from '@angular/core';
2
- import { AIAgentStepConfig, AIAgentAction, StepStatus, TimingBreakdown, FailureDetails, SubStep, SelfHealAnalysisData, SelfHealAction, ExecutionStepConfig } from '../execution-step.models';
2
+ import { AIAgentStepConfig, AIAgentAction, StepStatus, TimingBreakdown, FailureDetails, SubStep, SelfHealAnalysisData, SelfHealAction, ExecutionStepConfig, SelfHealActionEvent } 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";
@@ -36,10 +36,7 @@ export declare class AIAgentStepComponent extends BaseStepComponent implements O
36
36
  uploadBaseline: EventEmitter<uploadBaselineEvent>;
37
37
  analyze: EventEmitter<void>;
38
38
  viewFullLogs: EventEmitter<void>;
39
- selfHealAction: EventEmitter<{
40
- type: SelfHealAction;
41
- healedLocator: string;
42
- }>;
39
+ selfHealAction: EventEmitter<SelfHealActionEvent>;
43
40
  config: AIAgentStepConfig;
44
41
  private previousStatus?;
45
42
  private userManuallyClosed;
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter, OnInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
2
- import { ApiStepConfig, ApiAssertion, SubStep, StepStatus, TimingBreakdown, FailureDetails, SelfHealAnalysisData, SelfHealAction, ExecutionStepConfig } from '../execution-step.models';
2
+ import { ApiStepConfig, ApiAssertion, SubStep, StepStatus, TimingBreakdown, FailureDetails, SelfHealAnalysisData, SelfHealAction, ExecutionStepConfig, SelfHealActionEvent } 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";
@@ -44,10 +44,7 @@ export declare class ApiStepComponent extends BaseStepComponent implements OnIni
44
44
  uploadBaseline: EventEmitter<uploadBaselineEvent>;
45
45
  analyze: EventEmitter<void>;
46
46
  viewFullLogs: EventEmitter<void>;
47
- selfHealAction: EventEmitter<{
48
- type: SelfHealAction;
49
- healedLocator: string;
50
- }>;
47
+ selfHealAction: EventEmitter<SelfHealActionEvent>;
51
48
  jsonPathCopied: EventEmitter<{
52
49
  path: string;
53
50
  source: 'requestBody' | 'responseBody' | 'requestHeaders' | 'responseHeaders';
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
2
- import { BasicStepConfig, SelfHealAction, SubStep, StepStatus, TimingBreakdown, SelfHealAnalysisData, FailureDetails, ExecutionStepConfig, ConditionBranch } from '../execution-step.models';
2
+ import { BasicStepConfig, SelfHealAction, SubStep, StepStatus, TimingBreakdown, SelfHealAnalysisData, FailureDetails, ExecutionStepConfig, ConditionBranch, SelfHealActionEvent } 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";
@@ -72,10 +72,7 @@ export declare class BasicStepComponent extends BaseStepComponent implements OnI
72
72
  uploadBaseline: EventEmitter<uploadBaselineEvent>;
73
73
  analyze: EventEmitter<void>;
74
74
  viewFullLogs: EventEmitter<void>;
75
- selfHealAction: EventEmitter<{
76
- type: SelfHealAction;
77
- healedLocator: string;
78
- }>;
75
+ selfHealAction: EventEmitter<SelfHealActionEvent>;
79
76
  config: BasicStepConfig;
80
77
  loadingSteps: Set<string>;
81
78
  ngOnInit(): void;
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter, OnInit, OnChanges, SimpleChanges, ChangeDetectorRef } from '@angular/core';
2
- import { ConditionStepConfig, ConditionBranch, StepStatus, TimingBreakdown, FailureDetails, SubStep, SelfHealAnalysisData, SelfHealAction, ExecutionStepConfig } from '../execution-step.models';
2
+ import { ConditionStepConfig, ConditionBranch, StepStatus, TimingBreakdown, FailureDetails, SubStep, SelfHealAnalysisData, SelfHealAction, ExecutionStepConfig, SelfHealActionEvent } 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";
@@ -76,10 +76,7 @@ export declare class ConditionStepComponent extends BaseStepComponent implements
76
76
  uploadBaseline: EventEmitter<uploadBaselineEvent>;
77
77
  analyze: EventEmitter<void>;
78
78
  viewFullLogs: EventEmitter<void>;
79
- selfHealAction: EventEmitter<{
80
- type: SelfHealAction;
81
- healedLocator: string;
82
- }>;
79
+ selfHealAction: EventEmitter<SelfHealActionEvent>;
83
80
  showFailedStepDetails: boolean;
84
81
  config: ConditionStepConfig;
85
82
  loadingSteps: Set<string>;
@@ -1,6 +1,6 @@
1
1
  import { OnInit, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
2
2
  import { BaseStepComponent } from '../base-step.component';
3
- import { DbVerificationStepConfig, DbTestResult, DbQueryResult, DbAssertionResult, StepStatus, TimingBreakdown, FailureDetails, SubStep, SelfHealAnalysisData, SelfHealAction, ExecutionStepConfig } from '../execution-step.models';
3
+ import { DbVerificationStepConfig, DbTestResult, DbQueryResult, DbAssertionResult, StepStatus, TimingBreakdown, FailureDetails, SubStep, SelfHealAnalysisData, SelfHealAction, ExecutionStepConfig, SelfHealActionEvent } from '../execution-step.models';
4
4
  import { DynamicTableColumn } from '../../table/dynamic-table/dynamic-table.component';
5
5
  import { EmptyStateConfig } from '../../empty-state/empty-state-config.interface';
6
6
  import { makeCurrentBaselineEvent, uploadBaselineEvent } from '../visual-comparison/visual-comparison.component';
@@ -38,10 +38,7 @@ export declare class DbVerificationStepComponent extends BaseStepComponent imple
38
38
  uploadBaseline: EventEmitter<uploadBaselineEvent>;
39
39
  analyze: EventEmitter<void>;
40
40
  viewFullLogs: EventEmitter<void>;
41
- selfHealAction: EventEmitter<{
42
- type: SelfHealAction;
43
- healedLocator: string;
44
- }>;
41
+ selfHealAction: EventEmitter<SelfHealActionEvent>;
45
42
  config: DbVerificationStepConfig;
46
43
  verificationFilter: 'all' | 'failed' | 'passed';
47
44
  filterSegments: {
@@ -50,6 +50,7 @@ export interface FailureDetails {
50
50
  }
51
51
  export interface BaseStepConfig {
52
52
  id: string;
53
+ testStepId: number | undefined;
53
54
  testStepResultId: string;
54
55
  stepNumber: string;
55
56
  title: string;
@@ -69,6 +70,11 @@ export interface SelfHealAnalysisData {
69
70
  confidence: number;
70
71
  healMethod: string;
71
72
  }
73
+ export interface SelfHealActionEvent {
74
+ type: SelfHealAction;
75
+ healedLocator: string;
76
+ testStepId: number | undefined;
77
+ }
72
78
  export declare type SelfHealAction = 'accept' | 'reject' | 'modify-accept';
73
79
  export interface BasicStepConfig extends BaseStepConfig {
74
80
  type: 'basic';
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
2
- import { LoopStepConfig, LoopIteration, ExecutionStepConfig, StepStatus, TimingBreakdown, FailureDetails, SubStep, SelfHealAnalysisData, SelfHealAction, ConditionBranch } from '../execution-step.models';
2
+ import { LoopStepConfig, LoopIteration, ExecutionStepConfig, StepStatus, TimingBreakdown, FailureDetails, SubStep, SelfHealAnalysisData, SelfHealAction, ConditionBranch, SelfHealActionEvent } 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";
@@ -75,10 +75,7 @@ export declare class LoopStepComponent extends BaseStepComponent implements OnIn
75
75
  uploadBaseline: EventEmitter<uploadBaselineEvent>;
76
76
  analyze: EventEmitter<void>;
77
77
  viewFullLogs: EventEmitter<void>;
78
- selfHealAction: EventEmitter<{
79
- type: SelfHealAction;
80
- healedLocator: string;
81
- }>;
78
+ selfHealAction: EventEmitter<SelfHealActionEvent>;
82
79
  showFailedStepDetails: boolean;
83
80
  onExpand: EventEmitter<void>;
84
81
  onViewAllIterations: EventEmitter<void>;
@@ -30,6 +30,10 @@ export declare class StepGroupComponent extends BaseStepComponent implements OnI
30
30
  onAnalyzeHandler?: () => void;
31
31
  onViewFullLogsHandler?: () => void;
32
32
  onSelfHealActionHandler?: (event: any) => void;
33
+ getSelfHealLoadingStatesHandler?: () => {
34
+ isLoadingAccept: boolean;
35
+ isLoadingModifyAccept: boolean;
36
+ };
33
37
  getLoopIterationsHandler?: (step: ExecutionStepConfig) => any[];
34
38
  getApiAssertionsHandler?: (step: ExecutionStepConfig) => any[];
35
39
  formatActionsHandler?: (step: ExecutionStepConfig) => any[];
@@ -94,5 +98,5 @@ export declare class StepGroupComponent extends BaseStepComponent implements OnI
94
98
  getLoopShowViewAllIterations(step: ExecutionStepConfig): boolean | undefined;
95
99
  isStepLoading(): boolean;
96
100
  static ɵfac: i0.ɵɵFactoryDeclaration<StepGroupComponent, never>;
97
- static ɵcmp: i0.ɵɵComponentDeclaration<StepGroupComponent, "cqa-step-group", never, { "id": "id"; "testStepResultId": "testStepResultId"; "stepNumber": "stepNumber"; "title": "title"; "status": "status"; "duration": "duration"; "timingBreakdown": "timingBreakdown"; "expanded": "expanded"; "groupName": "groupName"; "steps": "steps"; "hasChild": "hasChild"; "isLoading": "isLoading"; "stepDeleted": "stepDeleted"; "onExpandHandler": "onExpandHandler"; "getConditionBranchesHandler": "getConditionBranchesHandler"; "onConditionBranchClickHandler": "onConditionBranchClickHandler"; "isStepLoadingHandler": "isStepLoadingHandler"; "isStepExpandedHandler": "isStepExpandedHandler"; "convertMsToSecondsHandler": "convertMsToSecondsHandler"; "formatFailureDetailsHandler": "formatFailureDetailsHandler"; "getSelfHealAnalysisHandler": "getSelfHealAnalysisHandler"; "onMakeCurrentBaselineHandler": "onMakeCurrentBaselineHandler"; "onUploadBaselineHandler": "onUploadBaselineHandler"; "onAnalyzeHandler": "onAnalyzeHandler"; "onViewFullLogsHandler": "onViewFullLogsHandler"; "onSelfHealActionHandler": "onSelfHealActionHandler"; "getLoopIterationsHandler": "getLoopIterationsHandler"; "getApiAssertionsHandler": "getApiAssertionsHandler"; "formatActionsHandler": "formatActionsHandler"; "onViewAllIterationsHandler": "onViewAllIterationsHandler"; "onStepClickHandler": "onStepClickHandler"; "onJsonPathCopiedHandler": "onJsonPathCopiedHandler"; "onDownloadHandler": "onDownloadHandler"; "onFilePathCopiedHandler": "onFilePathCopiedHandler"; "onTextCopiedHandler": "onTextCopiedHandler"; "downloadingStepId": "downloadingStepId"; "isUploadingBaseline": "isUploadingBaseline"; "isMakingCurrentBaseline": "isMakingCurrentBaseline"; "isLive": "isLive"; "step": "step"; }, { "onExpand": "onExpand"; }, never, never>;
101
+ static ɵcmp: i0.ɵɵComponentDeclaration<StepGroupComponent, "cqa-step-group", never, { "id": "id"; "testStepResultId": "testStepResultId"; "stepNumber": "stepNumber"; "title": "title"; "status": "status"; "duration": "duration"; "timingBreakdown": "timingBreakdown"; "expanded": "expanded"; "groupName": "groupName"; "steps": "steps"; "hasChild": "hasChild"; "isLoading": "isLoading"; "stepDeleted": "stepDeleted"; "onExpandHandler": "onExpandHandler"; "getConditionBranchesHandler": "getConditionBranchesHandler"; "onConditionBranchClickHandler": "onConditionBranchClickHandler"; "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"; "onStepClickHandler": "onStepClickHandler"; "onJsonPathCopiedHandler": "onJsonPathCopiedHandler"; "onDownloadHandler": "onDownloadHandler"; "onFilePathCopiedHandler": "onFilePathCopiedHandler"; "onTextCopiedHandler": "onTextCopiedHandler"; "downloadingStepId": "downloadingStepId"; "isUploadingBaseline": "isUploadingBaseline"; "isMakingCurrentBaseline": "isMakingCurrentBaseline"; "isLive": "isLive"; "step": "step"; }, { "onExpand": "onExpand"; }, never, never>;
98
102
  }
@@ -22,6 +22,10 @@ export declare class StepRendererComponent implements OnChanges, AfterViewInit,
22
22
  onAnalyzeHandler?: () => void;
23
23
  onViewFullLogsHandler?: () => void;
24
24
  onSelfHealActionHandler?: (event: any) => void;
25
+ getSelfHealLoadingStatesHandler?: () => {
26
+ isLoadingAccept: boolean;
27
+ isLoadingModifyAccept: boolean;
28
+ };
25
29
  isUploadingBaseline?: any;
26
30
  isMakingCurrentBaseline?: any;
27
31
  selectedIterationId?: any;
@@ -58,6 +62,7 @@ export declare class StepRendererComponent implements OnChanges, AfterViewInit,
58
62
  private getEffectiveStepType;
59
63
  private static componentInstances;
60
64
  private static componentRefs;
65
+ private static subscribedEventEmitters;
61
66
  private lastStepId;
62
67
  private lastStepType;
63
68
  private previousStepKey;
@@ -84,5 +89,5 @@ export declare class StepRendererComponent implements OnChanges, AfterViewInit,
84
89
  private loadComponent;
85
90
  ngDoCheck(): void;
86
91
  static ɵfac: i0.ɵɵFactoryDeclaration<StepRendererComponent, never>;
87
- static ɵcmp: i0.ɵɵComponentDeclaration<StepRendererComponent, "cqa-step-renderer", never, { "step": "step"; "onExpandHandler": "onExpandHandler"; "getConditionBranchesHandler": "getConditionBranchesHandler"; "isStepLoadingHandler": "isStepLoadingHandler"; "isStepExpandedHandler": "isStepExpandedHandler"; "convertMsToSecondsHandler": "convertMsToSecondsHandler"; "formatFailureDetailsHandler": "formatFailureDetailsHandler"; "getSelfHealAnalysisHandler": "getSelfHealAnalysisHandler"; "onMakeCurrentBaselineHandler": "onMakeCurrentBaselineHandler"; "onUploadBaselineHandler": "onUploadBaselineHandler"; "onAnalyzeHandler": "onAnalyzeHandler"; "onViewFullLogsHandler": "onViewFullLogsHandler"; "onSelfHealActionHandler": "onSelfHealActionHandler"; "isUploadingBaseline": "isUploadingBaseline"; "isMakingCurrentBaseline": "isMakingCurrentBaseline"; "selectedIterationId": "selectedIterationId"; "getLoopIterationsHandler": "getLoopIterationsHandler"; "getApiAssertionsHandler": "getApiAssertionsHandler"; "formatActionsHandler": "formatActionsHandler"; "onViewAllIterationsHandler": "onViewAllIterationsHandler"; "onConditionBranchClickHandler": "onConditionBranchClickHandler"; "onStepClickHandler": "onStepClickHandler"; "onJsonPathCopiedHandler": "onJsonPathCopiedHandler"; "onDownloadHandler": "onDownloadHandler"; "onFilePathCopiedHandler": "onFilePathCopiedHandler"; "onTextCopiedHandler": "onTextCopiedHandler"; "downloadingStepId": "downloadingStepId"; "isLive": "isLive"; "stepNumber": "stepNumber"; }, { "componentReady": "componentReady"; }, never, never>;
92
+ static ɵcmp: i0.ɵɵComponentDeclaration<StepRendererComponent, "cqa-step-renderer", never, { "step": "step"; "onExpandHandler": "onExpandHandler"; "getConditionBranchesHandler": "getConditionBranchesHandler"; "isStepLoadingHandler": "isStepLoadingHandler"; "isStepExpandedHandler": "isStepExpandedHandler"; "convertMsToSecondsHandler": "convertMsToSecondsHandler"; "formatFailureDetailsHandler": "formatFailureDetailsHandler"; "getSelfHealAnalysisHandler": "getSelfHealAnalysisHandler"; "onMakeCurrentBaselineHandler": "onMakeCurrentBaselineHandler"; "onUploadBaselineHandler": "onUploadBaselineHandler"; "onAnalyzeHandler": "onAnalyzeHandler"; "onViewFullLogsHandler": "onViewFullLogsHandler"; "onSelfHealActionHandler": "onSelfHealActionHandler"; "getSelfHealLoadingStatesHandler": "getSelfHealLoadingStatesHandler"; "isUploadingBaseline": "isUploadingBaseline"; "isMakingCurrentBaseline": "isMakingCurrentBaseline"; "selectedIterationId": "selectedIterationId"; "getLoopIterationsHandler": "getLoopIterationsHandler"; "getApiAssertionsHandler": "getApiAssertionsHandler"; "formatActionsHandler": "formatActionsHandler"; "onViewAllIterationsHandler": "onViewAllIterationsHandler"; "onConditionBranchClickHandler": "onConditionBranchClickHandler"; "onStepClickHandler": "onStepClickHandler"; "onJsonPathCopiedHandler": "onJsonPathCopiedHandler"; "onDownloadHandler": "onDownloadHandler"; "onFilePathCopiedHandler": "onFilePathCopiedHandler"; "onTextCopiedHandler": "onTextCopiedHandler"; "downloadingStepId": "downloadingStepId"; "isLive": "isLive"; "stepNumber": "stepNumber"; }, { "componentReady": "componentReady"; }, never, never>;
88
93
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.1.145",
3
+ "version": "1.1.147",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",