@cqa-lib/cqa-ui 1.1.61 → 1.1.64

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,5 +1,5 @@
1
1
  import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
2
- import { LoopStepConfig, LoopIteration, ExecutionStepConfig, StepStatus, TimingBreakdown, FailureDetails, SubStep, SelfHealAnalysisData, SelfHealAction } from '../execution-step.models';
2
+ import { LoopStepConfig, LoopIteration, ExecutionStepConfig, StepStatus, TimingBreakdown, FailureDetails, SubStep, SelfHealAnalysisData, SelfHealAction, 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";
@@ -19,6 +19,17 @@ export declare class LoopStepComponent extends BaseStepComponent implements OnIn
19
19
  nestedSteps?: ExecutionStepConfig[];
20
20
  showViewAllIterations?: boolean;
21
21
  onExpandHandler?: (step: ExecutionStepConfig) => void;
22
+ getConditionBranchesHandler?: (step: ExecutionStepConfig) => ConditionBranch[];
23
+ isStepLoadingHandler?: (step: ExecutionStepConfig) => boolean;
24
+ isStepExpandedHandler?: (step: ExecutionStepConfig) => boolean;
25
+ convertMsToSecondsHandler?: (duration: number) => number;
26
+ formatFailureDetailsHandler?: (step: ExecutionStepConfig) => any;
27
+ getSelfHealAnalysisHandler?: (step: ExecutionStepConfig) => any;
28
+ onMakeCurrentBaselineHandler?: (event: any) => void;
29
+ onUploadBaselineHandler?: (event: any) => void;
30
+ onAnalyzeHandler?: () => void;
31
+ onViewFullLogsHandler?: () => void;
32
+ onSelfHealActionHandler?: (event: any) => void;
22
33
  failureDetails?: FailureDetails;
23
34
  reasoning?: string[];
24
35
  confidence?: string;
@@ -62,6 +73,23 @@ export declare class LoopStepComponent extends BaseStepComponent implements OnIn
62
73
  isNestedStepGroupWithChildren(step: ExecutionStepConfig): boolean;
63
74
  getGroupName(step: ExecutionStepConfig): string;
64
75
  getSteps(step: ExecutionStepConfig): ExecutionStepConfig[];
76
+ isNestedConditionStep(step: ExecutionStepConfig): boolean;
77
+ getStepTitle(step: ExecutionStepConfig): string;
78
+ getStepStatus(step: ExecutionStepConfig): StepStatus;
79
+ getStepDuration(step: ExecutionStepConfig): number;
80
+ getConditionStepDuration(step: ExecutionStepConfig): number;
81
+ getConditionStepExpanded(step: ExecutionStepConfig): boolean;
82
+ getConditionStepText(step: ExecutionStepConfig): string;
83
+ getConditionStepBranches(step: ExecutionStepConfig): ConditionBranch[];
84
+ getConditionStepLoading(step: ExecutionStepConfig): boolean;
85
+ handleConditionStepExpand(step: ExecutionStepConfig): void;
86
+ getConditionStepFailureDetails(step: ExecutionStepConfig): any;
87
+ getConditionStepSelfHealAnalysis(step: ExecutionStepConfig): any;
88
+ handleConditionStepSelfHealAction(event: any): void;
89
+ handleConditionStepMakeBaseline(event: any): void;
90
+ handleConditionStepUploadBaseline(event: any): void;
91
+ handleConditionStepAnalyze(): void;
92
+ handleConditionStepViewLogs(): void;
65
93
  static ɵfac: i0.ɵɵFactoryDeclaration<LoopStepComponent, never>;
66
- static ɵcmp: i0.ɵɵComponentDeclaration<LoopStepComponent, "cqa-loop-step", never, { "id": "id"; "testStepResultId": "testStepResultId"; "stepNumber": "stepNumber"; "title": "title"; "status": "status"; "duration": "duration"; "timingBreakdown": "timingBreakdown"; "expanded": "expanded"; "loopType": "loopType"; "iterations": "iterations"; "selectedIterationId": "selectedIterationId"; "defaultIteration": "defaultIteration"; "nestedSteps": "nestedSteps"; "showViewAllIterations": "showViewAllIterations"; "onExpandHandler": "onExpandHandler"; "failureDetails": "failureDetails"; "reasoning": "reasoning"; "confidence": "confidence"; "isUploadingBaseline": "isUploadingBaseline"; "selfHealAnalysis": "selfHealAnalysis"; }, { "makeCurrentBaseline": "makeCurrentBaseline"; "uploadBaseline": "uploadBaseline"; "analyze": "analyze"; "viewFullLogs": "viewFullLogs"; "selfHealAction": "selfHealAction"; "onExpand": "onExpand"; "onViewAllIterations": "onViewAllIterations"; "onIterationChange": "onIterationChange"; }, never, never>;
94
+ static ɵcmp: i0.ɵɵComponentDeclaration<LoopStepComponent, "cqa-loop-step", never, { "id": "id"; "testStepResultId": "testStepResultId"; "stepNumber": "stepNumber"; "title": "title"; "status": "status"; "duration": "duration"; "timingBreakdown": "timingBreakdown"; "expanded": "expanded"; "loopType": "loopType"; "iterations": "iterations"; "selectedIterationId": "selectedIterationId"; "defaultIteration": "defaultIteration"; "nestedSteps": "nestedSteps"; "showViewAllIterations": "showViewAllIterations"; "onExpandHandler": "onExpandHandler"; "getConditionBranchesHandler": "getConditionBranchesHandler"; "isStepLoadingHandler": "isStepLoadingHandler"; "isStepExpandedHandler": "isStepExpandedHandler"; "convertMsToSecondsHandler": "convertMsToSecondsHandler"; "formatFailureDetailsHandler": "formatFailureDetailsHandler"; "getSelfHealAnalysisHandler": "getSelfHealAnalysisHandler"; "onMakeCurrentBaselineHandler": "onMakeCurrentBaselineHandler"; "onUploadBaselineHandler": "onUploadBaselineHandler"; "onAnalyzeHandler": "onAnalyzeHandler"; "onViewFullLogsHandler": "onViewFullLogsHandler"; "onSelfHealActionHandler": "onSelfHealActionHandler"; "failureDetails": "failureDetails"; "reasoning": "reasoning"; "confidence": "confidence"; "isUploadingBaseline": "isUploadingBaseline"; "selfHealAnalysis": "selfHealAnalysis"; }, { "makeCurrentBaseline": "makeCurrentBaseline"; "uploadBaseline": "uploadBaseline"; "analyze": "analyze"; "viewFullLogs": "viewFullLogs"; "selfHealAction": "selfHealAction"; "onExpand": "onExpand"; "onViewAllIterations": "onViewAllIterations"; "onIterationChange": "onIterationChange"; }, never, never>;
67
95
  }
@@ -1,8 +1,8 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
2
2
  import { StepGroupConfig, ExecutionStepConfig, StepStatus, TimingBreakdown } from '../execution-step.models';
3
3
  import { BaseStepComponent } from '../base-step.component';
4
4
  import * as i0 from "@angular/core";
5
- export declare class StepGroupComponent extends BaseStepComponent implements OnInit {
5
+ export declare class StepGroupComponent extends BaseStepComponent implements OnInit, OnChanges {
6
6
  id: string;
7
7
  testStepResultId: string;
8
8
  stepNumber: string;
@@ -17,6 +17,8 @@ export declare class StepGroupComponent extends BaseStepComponent implements OnI
17
17
  onExpand: EventEmitter<void>;
18
18
  config: StepGroupConfig;
19
19
  ngOnInit(): void;
20
+ ngOnChanges(changes: SimpleChanges): void;
21
+ private updateConfig;
20
22
  toggle(): void;
21
23
  isNestedStepGroupWithChildren(step: ExecutionStepConfig): boolean;
22
24
  getGroupName(step: ExecutionStepConfig): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.1.61",
3
+ "version": "1.1.64",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",