@cqa-lib/cqa-ui 1.1.4 → 1.1.6

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,6 +1,6 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare type BadgeVariant = 'warning' | 'error' | 'info' | 'success' | 'default' | 'outline';
3
- export declare type BadgeSize = 'small' | 'medium';
3
+ export declare type BadgeSize = 'extra-small' | 'small' | 'medium';
4
4
  export declare class BadgeComponent {
5
5
  label: string;
6
6
  icon?: string;
@@ -35,6 +35,7 @@ export interface TestCaseResultData {
35
35
  endTime: number;
36
36
  duration: number;
37
37
  testDataSetName: string;
38
+ environment: string;
38
39
  testDeviceResult: TestDeviceResult;
39
40
  }
40
41
  export interface RunData {
@@ -47,6 +48,7 @@ export interface RunData {
47
48
  device: string;
48
49
  browser: string;
49
50
  platform: string;
51
+ environment?: string;
50
52
  }
51
53
  export interface ComparisonSummary {
52
54
  unchanged: number;
@@ -72,6 +74,10 @@ export interface CompareRequest {
72
74
  runAId: number;
73
75
  runBId: number;
74
76
  }
77
+ export interface SearchRequest {
78
+ key: string;
79
+ query: string;
80
+ }
75
81
  export declare class CompareRunsComponent implements OnInit, OnChanges {
76
82
  private fb;
77
83
  private cdr;
@@ -80,11 +86,7 @@ export declare class CompareRunsComponent implements OnInit, OnChanges {
80
86
  isLoadingRuns: boolean;
81
87
  hasMoreRuns: boolean;
82
88
  isComparingRuns: boolean;
83
- isTableDataLoading: boolean;
84
- searchRuns: EventEmitter<{
85
- key: string;
86
- query: string;
87
- }>;
89
+ searchRuns: EventEmitter<SearchRequest>;
88
90
  loadMoreRuns: EventEmitter<string>;
89
91
  compareRuns: EventEmitter<CompareRequest>;
90
92
  form: FormGroup;
@@ -107,10 +109,7 @@ export declare class CompareRunsComponent implements OnInit, OnChanges {
107
109
  private updateSelectConfigsLoading;
108
110
  handleSearchRuns(query: string, key: string): void;
109
111
  handleLoadMoreRuns(query: string): void;
110
- onSearchChange(event: {
111
- key: string;
112
- query: string;
113
- }): void;
112
+ onSearchChange(event: SearchRequest): void;
114
113
  onLoadMore(event: {
115
114
  key: string;
116
115
  query: string;
@@ -140,5 +139,5 @@ export declare class CompareRunsComponent implements OnInit, OnChanges {
140
139
  get runAStatusLabel(): string;
141
140
  get runBStatusLabel(): string;
142
141
  static ɵfac: i0.ɵɵFactoryDeclaration<CompareRunsComponent, never>;
143
- static ɵcmp: i0.ɵɵComponentDeclaration<CompareRunsComponent, "cqa-compare-runs", never, { "runs": "runs"; "comparisonData": "comparisonData"; "isLoadingRuns": "isLoadingRuns"; "hasMoreRuns": "hasMoreRuns"; "isComparingRuns": "isComparingRuns"; "isTableDataLoading": "isTableDataLoading"; }, { "searchRuns": "searchRuns"; "loadMoreRuns": "loadMoreRuns"; "compareRuns": "compareRuns"; }, never, never>;
142
+ static ɵcmp: i0.ɵɵComponentDeclaration<CompareRunsComponent, "cqa-compare-runs", never, { "runs": "runs"; "comparisonData": "comparisonData"; "isLoadingRuns": "isLoadingRuns"; "hasMoreRuns": "hasMoreRuns"; "isComparingRuns": "isComparingRuns"; }, { "searchRuns": "searchRuns"; "loadMoreRuns": "loadMoreRuns"; "compareRuns": "compareRuns"; }, never, never>;
144
143
  }
@@ -0,0 +1,39 @@
1
+ import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ declare type InputType = 'text' | 'password' | 'email' | 'number' | 'tel' | 'url';
4
+ declare type InputSize = 'sm' | 'md' | 'lg';
5
+ export declare class CustomInputComponent implements OnChanges {
6
+ label: string;
7
+ type: InputType;
8
+ placeholder: string;
9
+ value: string;
10
+ disabled: boolean;
11
+ errors: string[];
12
+ required: boolean;
13
+ ariaLabel: string;
14
+ size: InputSize;
15
+ fullWidth: boolean;
16
+ maxLength?: number;
17
+ showCharCount: boolean;
18
+ inputInlineStyle?: string;
19
+ labelInlineStyle?: string;
20
+ valueChange: EventEmitter<string>;
21
+ blurred: EventEmitter<FocusEvent>;
22
+ focused: EventEmitter<FocusEvent>;
23
+ enterPressed: EventEmitter<string>;
24
+ inputValue: string;
25
+ isFocused: boolean;
26
+ ngOnChanges(changes: SimpleChanges): void;
27
+ get hasError(): boolean;
28
+ get inputSizeClasses(): string;
29
+ get labelSizeClasses(): string;
30
+ onInput(event: Event): void;
31
+ onFocus(event: FocusEvent): void;
32
+ onBlur(event: FocusEvent): void;
33
+ onKeyDown(event: KeyboardEvent): void;
34
+ get inputStyles(): string;
35
+ get labelStyles(): string;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomInputComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomInputComponent, "cqa-custom-input", never, { "label": "label"; "type": "type"; "placeholder": "placeholder"; "value": "value"; "disabled": "disabled"; "errors": "errors"; "required": "required"; "ariaLabel": "ariaLabel"; "size": "size"; "fullWidth": "fullWidth"; "maxLength": "maxLength"; "showCharCount": "showCharCount"; "inputInlineStyle": "inputInlineStyle"; "labelInlineStyle": "labelInlineStyle"; }, { "valueChange": "valueChange"; "blurred": "blurred"; "focused": "focused"; "enterPressed": "enterPressed"; }, never, never>;
38
+ }
39
+ export {};
@@ -0,0 +1,30 @@
1
+ import * as i0 from "@angular/core";
2
+ export interface FailedStepData {
3
+ expected_result: string;
4
+ actual_result: string;
5
+ failed_step_id: string;
6
+ isTimeouterror: boolean;
7
+ failed_step_index: string;
8
+ steps: any[];
9
+ timestamp: string;
10
+ duration: string;
11
+ stepScreenshotUrl: string | null;
12
+ suggestions: string;
13
+ reason: string;
14
+ stepTitle?: string;
15
+ errorMessage?: string;
16
+ }
17
+ export declare class FailedStepCardComponent {
18
+ failedStepData: FailedStepData;
19
+ get headerTitle(): string;
20
+ get errorText(): string;
21
+ get videoTimestamp(): string;
22
+ get durationText(): string;
23
+ get expectedResult(): string;
24
+ get actualResult(): string;
25
+ get suggestions(): string;
26
+ get hasSuggestions(): boolean;
27
+ getFormattedSuggestions(): string[];
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<FailedStepCardComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<FailedStepCardComponent, "cqa-failed-step-card", never, { "failedStepData": "failedStepData"; }, {}, never, never>;
30
+ }
@@ -0,0 +1,39 @@
1
+ import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
2
+ import { DynamicTableColumn } from '../table/dynamic-table/dynamic-table.component';
3
+ import { EmptyStateConfig } from '../empty-state/empty-state-config.interface';
4
+ import * as i0 from "@angular/core";
5
+ export interface IterationData {
6
+ index: number;
7
+ datasetId: string;
8
+ variables: Record<string, any>;
9
+ status: 'PASS' | 'FAIL' | 'IN_PROGRESS' | 'ABORTED';
10
+ duration: number;
11
+ [key: string]: any;
12
+ }
13
+ export interface IterationSummary {
14
+ totalIterations: number;
15
+ passed: number;
16
+ failed: number;
17
+ }
18
+ export declare class IterationsLoopComponent implements OnInit, OnChanges {
19
+ iterations: IterationData[];
20
+ summary?: IterationSummary;
21
+ isTableDataLoading: boolean;
22
+ tableColumns: DynamicTableColumn[];
23
+ pageIndex: number;
24
+ pageSize: number;
25
+ emptyStateConfig: EmptyStateConfig;
26
+ ngOnInit(): void;
27
+ ngOnChanges(changes: SimpleChanges): void;
28
+ private setupTableColumns;
29
+ private renderStatusIcon;
30
+ private formatDuration;
31
+ onPageChange(event: {
32
+ pageIndex: number;
33
+ pageSize: number;
34
+ }): void;
35
+ get isEmptyState(): boolean;
36
+ get computedSummary(): IterationSummary;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<IterationsLoopComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<IterationsLoopComponent, "cqa-iterations-loop", never, { "iterations": "iterations"; "summary": "summary"; "isTableDataLoading": "isTableDataLoading"; }, {}, never, never>;
39
+ }
@@ -41,24 +41,27 @@ import * as i38 from "./run-history-card/run-history-card.component";
41
41
  import * as i39 from "./view-image-modal/view-image-modal.component";
42
42
  import * as i40 from "./configuration-card/configuration-card.component";
43
43
  import * as i41 from "./compare-runs/compare-runs.component";
44
- import * as i42 from "@angular/common";
45
- import * as i43 from "@angular/forms";
46
- import * as i44 from "@angular/material/icon";
47
- import * as i45 from "@angular/material/menu";
48
- import * as i46 from "@angular/material/button";
49
- import * as i47 from "@angular/material/form-field";
50
- import * as i48 from "@angular/material/select";
51
- import * as i49 from "@angular/material/core";
52
- import * as i50 from "@angular/material/checkbox";
53
- import * as i51 from "@angular/material/radio";
54
- import * as i52 from "@angular/material/datepicker";
55
- import * as i53 from "@angular/material/progress-spinner";
56
- import * as i54 from "@angular/material/tooltip";
57
- import * as i55 from "@angular/cdk/overlay";
58
- import * as i56 from "@angular/cdk/portal";
44
+ import * as i42 from "./iterations-loop/iterations-loop.component";
45
+ import * as i43 from "./failed-step-card/failed-step-card.component";
46
+ import * as i44 from "./custom-input/custom-input.component";
47
+ import * as i45 from "@angular/common";
48
+ import * as i46 from "@angular/forms";
49
+ import * as i47 from "@angular/material/icon";
50
+ import * as i48 from "@angular/material/menu";
51
+ import * as i49 from "@angular/material/button";
52
+ import * as i50 from "@angular/material/form-field";
53
+ import * as i51 from "@angular/material/select";
54
+ import * as i52 from "@angular/material/core";
55
+ import * as i53 from "@angular/material/checkbox";
56
+ import * as i54 from "@angular/material/radio";
57
+ import * as i55 from "@angular/material/datepicker";
58
+ import * as i56 from "@angular/material/progress-spinner";
59
+ import * as i57 from "@angular/material/tooltip";
60
+ import * as i58 from "@angular/cdk/overlay";
61
+ import * as i59 from "@angular/cdk/portal";
59
62
  export declare class UiKitModule {
60
63
  constructor(iconRegistry: MatIconRegistry);
61
64
  static ɵfac: i0.ɵɵFactoryDeclaration<UiKitModule, never>;
62
- static ɵmod: i0.ɵɵNgModuleDeclaration<UiKitModule, [typeof i1.ButtonComponent, typeof i2.SearchBarComponent, typeof i3.SegmentControlComponent, typeof i4.DialogComponent, typeof i5.DynamicTableComponent, typeof i6.DynamicCellTemplateDirective, typeof i6.DynamicHeaderTemplateDirective, typeof i7.DynamicCellContainerDirective, typeof i8.PaginationComponent, typeof i9.ActionMenuButtonComponent, typeof i10.OtherButtonComponent, typeof i11.DynamicFilterComponent, typeof i12.DaterangepickerDirective, typeof i13.DaterangepickerComponent, typeof i14.ColumnVisibilityComponent, typeof i15.TableActionToolbarComponent, typeof i16.MetricsCardComponent, typeof i17.MetricsBlockComponent, typeof i18.ChartCardComponent, typeof i19.ProgressTextCardComponent, typeof i20.DashboardHeaderComponent, typeof i21.CoverageModuleCardComponent, typeof i22.TestDistributionCardComponent, typeof i23.FailedTestCasesCardComponent, typeof i24.DynamicSelectFieldComponent, typeof i25.SelectedFiltersComponent, typeof i26.InsightCardComponent, typeof i27.BadgeComponent, typeof i28.DropdownButtonComponent, typeof i29.HeatErrorMapCellComponent, typeof i30.EmptyStateComponent, typeof i31.TableTemplateComponent, typeof i32.FullTableLoaderComponent, typeof i33.TableDataLoaderComponent, typeof i34.SimulatorComponent, typeof i35.ConsoleAlertComponent, typeof i36.AiDebugAlertComponent, typeof i37.NetworkRequestComponent, typeof i38.RunHistoryCardComponent, typeof i39.ViewImageModalComponent, typeof i40.ConfigurationCardComponent, typeof i41.CompareRunsComponent], [typeof i42.CommonModule, typeof i43.FormsModule, typeof i43.ReactiveFormsModule, typeof i44.MatIconModule, typeof i45.MatMenuModule, typeof i46.MatButtonModule, typeof i47.MatFormFieldModule, typeof i48.MatSelectModule, typeof i49.MatOptionModule, typeof i50.MatCheckboxModule, typeof i51.MatRadioModule, typeof i52.MatDatepickerModule, typeof i49.MatNativeDateModule, typeof i53.MatProgressSpinnerModule, typeof i54.MatTooltipModule, typeof i55.OverlayModule, typeof i56.PortalModule], [typeof i1.ButtonComponent, typeof i2.SearchBarComponent, typeof i3.SegmentControlComponent, typeof i4.DialogComponent, typeof i5.DynamicTableComponent, typeof i6.DynamicCellTemplateDirective, typeof i6.DynamicHeaderTemplateDirective, typeof i7.DynamicCellContainerDirective, typeof i8.PaginationComponent, typeof i9.ActionMenuButtonComponent, typeof i10.OtherButtonComponent, typeof i11.DynamicFilterComponent, typeof i12.DaterangepickerDirective, typeof i13.DaterangepickerComponent, typeof i14.ColumnVisibilityComponent, typeof i15.TableActionToolbarComponent, typeof i16.MetricsCardComponent, typeof i18.ChartCardComponent, typeof i19.ProgressTextCardComponent, typeof i20.DashboardHeaderComponent, typeof i21.CoverageModuleCardComponent, typeof i22.TestDistributionCardComponent, typeof i23.FailedTestCasesCardComponent, typeof i24.DynamicSelectFieldComponent, typeof i25.SelectedFiltersComponent, typeof i26.InsightCardComponent, typeof i27.BadgeComponent, typeof i28.DropdownButtonComponent, typeof i29.HeatErrorMapCellComponent, typeof i30.EmptyStateComponent, typeof i31.TableTemplateComponent, typeof i32.FullTableLoaderComponent, typeof i33.TableDataLoaderComponent, typeof i34.SimulatorComponent, typeof i35.ConsoleAlertComponent, typeof i36.AiDebugAlertComponent, typeof i37.NetworkRequestComponent, typeof i38.RunHistoryCardComponent, typeof i39.ViewImageModalComponent, typeof i40.ConfigurationCardComponent, typeof i41.CompareRunsComponent]>;
65
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UiKitModule, [typeof i1.ButtonComponent, typeof i2.SearchBarComponent, typeof i3.SegmentControlComponent, typeof i4.DialogComponent, typeof i5.DynamicTableComponent, typeof i6.DynamicCellTemplateDirective, typeof i6.DynamicHeaderTemplateDirective, typeof i7.DynamicCellContainerDirective, typeof i8.PaginationComponent, typeof i9.ActionMenuButtonComponent, typeof i10.OtherButtonComponent, typeof i11.DynamicFilterComponent, typeof i12.DaterangepickerDirective, typeof i13.DaterangepickerComponent, typeof i14.ColumnVisibilityComponent, typeof i15.TableActionToolbarComponent, typeof i16.MetricsCardComponent, typeof i17.MetricsBlockComponent, typeof i18.ChartCardComponent, typeof i19.ProgressTextCardComponent, typeof i20.DashboardHeaderComponent, typeof i21.CoverageModuleCardComponent, typeof i22.TestDistributionCardComponent, typeof i23.FailedTestCasesCardComponent, typeof i24.DynamicSelectFieldComponent, typeof i25.SelectedFiltersComponent, typeof i26.InsightCardComponent, typeof i27.BadgeComponent, typeof i28.DropdownButtonComponent, typeof i29.HeatErrorMapCellComponent, typeof i30.EmptyStateComponent, typeof i31.TableTemplateComponent, typeof i32.FullTableLoaderComponent, typeof i33.TableDataLoaderComponent, typeof i34.SimulatorComponent, typeof i35.ConsoleAlertComponent, typeof i36.AiDebugAlertComponent, typeof i37.NetworkRequestComponent, typeof i38.RunHistoryCardComponent, typeof i39.ViewImageModalComponent, typeof i40.ConfigurationCardComponent, typeof i41.CompareRunsComponent, typeof i42.IterationsLoopComponent, typeof i43.FailedStepCardComponent, typeof i44.CustomInputComponent], [typeof i45.CommonModule, typeof i46.FormsModule, typeof i46.ReactiveFormsModule, typeof i47.MatIconModule, typeof i48.MatMenuModule, typeof i49.MatButtonModule, typeof i50.MatFormFieldModule, typeof i51.MatSelectModule, typeof i52.MatOptionModule, typeof i53.MatCheckboxModule, typeof i54.MatRadioModule, typeof i55.MatDatepickerModule, typeof i52.MatNativeDateModule, typeof i56.MatProgressSpinnerModule, typeof i57.MatTooltipModule, typeof i58.OverlayModule, typeof i59.PortalModule], [typeof i1.ButtonComponent, typeof i2.SearchBarComponent, typeof i3.SegmentControlComponent, typeof i4.DialogComponent, typeof i5.DynamicTableComponent, typeof i6.DynamicCellTemplateDirective, typeof i6.DynamicHeaderTemplateDirective, typeof i7.DynamicCellContainerDirective, typeof i8.PaginationComponent, typeof i9.ActionMenuButtonComponent, typeof i10.OtherButtonComponent, typeof i11.DynamicFilterComponent, typeof i12.DaterangepickerDirective, typeof i13.DaterangepickerComponent, typeof i14.ColumnVisibilityComponent, typeof i15.TableActionToolbarComponent, typeof i16.MetricsCardComponent, typeof i18.ChartCardComponent, typeof i19.ProgressTextCardComponent, typeof i20.DashboardHeaderComponent, typeof i21.CoverageModuleCardComponent, typeof i22.TestDistributionCardComponent, typeof i23.FailedTestCasesCardComponent, typeof i24.DynamicSelectFieldComponent, typeof i25.SelectedFiltersComponent, typeof i26.InsightCardComponent, typeof i27.BadgeComponent, typeof i28.DropdownButtonComponent, typeof i29.HeatErrorMapCellComponent, typeof i30.EmptyStateComponent, typeof i31.TableTemplateComponent, typeof i32.FullTableLoaderComponent, typeof i33.TableDataLoaderComponent, typeof i34.SimulatorComponent, typeof i35.ConsoleAlertComponent, typeof i36.AiDebugAlertComponent, typeof i37.NetworkRequestComponent, typeof i38.RunHistoryCardComponent, typeof i39.ViewImageModalComponent, typeof i40.ConfigurationCardComponent, typeof i41.CompareRunsComponent, typeof i42.IterationsLoopComponent, typeof i43.FailedStepCardComponent, typeof i44.CustomInputComponent]>;
63
66
  static ɵinj: i0.ɵɵInjectorDeclaration<UiKitModule>;
64
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.1.4",
3
+ "version": "1.1.6",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",
package/public-api.d.ts CHANGED
@@ -49,3 +49,6 @@ export * from './lib/run-history-card/run-history-card.component';
49
49
  export * from './lib/view-image-modal/view-image-modal.component';
50
50
  export * from './lib/configuration-card/configuration-card.component';
51
51
  export * from './lib/compare-runs/compare-runs.component';
52
+ export * from './lib/iterations-loop/iterations-loop.component';
53
+ export * from './lib/failed-step-card/failed-step-card.component';
54
+ export * from './lib/custom-input/custom-input.component';