@cqa-lib/cqa-ui 1.1.241 → 1.1.243

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.
@@ -2,9 +2,22 @@ import { EventEmitter, OnInit, OnChanges, SimpleChanges } from '@angular/core';
2
2
  import { FormBuilder, FormGroup } from '@angular/forms';
3
3
  import { DynamicSelectFieldConfig } from '../../dynamic-select/dynamic-select-field.component';
4
4
  import * as i0 from "@angular/core";
5
+ export interface StepGroupVariable {
6
+ id: number;
7
+ name: string;
8
+ variables?: Array<{
9
+ name: string;
10
+ parameterValue?: string;
11
+ }>;
12
+ }
5
13
  export interface StepGroupFormData {
6
14
  stepGroupId: number;
7
15
  stepGroup?: any;
16
+ runtimeVariables?: {
17
+ [groupId: string]: {
18
+ [paramName: string]: string;
19
+ };
20
+ };
8
21
  }
9
22
  export interface StepGroupOption {
10
23
  id: number;
@@ -23,8 +36,20 @@ export declare class StepBuilderGroupComponent implements OnInit, OnChanges {
23
36
  initialStepGroupId?: number;
24
37
  /** Whether in edit mode */
25
38
  editMode: boolean;
39
+ /** Runtime variables for the selected step group */
40
+ runtimeVariables?: StepGroupVariable[];
41
+ /** Loading state for runtime variables */
42
+ isLoadingRuntimeVariables: boolean;
43
+ /** Existing runtime variable values (from testStep.testDataFunctionArgs) */
44
+ existingRuntimeValues?: {
45
+ [groupId: string]: {
46
+ [paramName: string]: string;
47
+ };
48
+ };
26
49
  /** Emit when step is created */
27
50
  createStep: EventEmitter<StepGroupFormData>;
51
+ /** Emit when step group is selected to fetch runtime variables */
52
+ stepGroupSelected: EventEmitter<number>;
28
53
  /** Emit when cancelled */
29
54
  cancelled: EventEmitter<void>;
30
55
  /** Emit when more step groups need to be loaded */
@@ -34,15 +59,25 @@ export declare class StepBuilderGroupComponent implements OnInit, OnChanges {
34
59
  stepGroupForm: FormGroup;
35
60
  stepGroupConfig: DynamicSelectFieldConfig;
36
61
  selectedStepGroup: StepGroupOption | null;
62
+ runtimeVariableValues: {
63
+ [groupId: string]: {
64
+ [paramName: string]: string;
65
+ };
66
+ };
37
67
  constructor(fb: FormBuilder);
38
68
  ngOnInit(): void;
39
69
  ngOnChanges(changes: SimpleChanges): void;
70
+ private setInitialStepGroupValue;
40
71
  private updateStepGroupConfig;
41
72
  onStepGroupChange(stepGroupId: number): void;
42
73
  getStepGroupDescription(): string;
74
+ private initializeRuntimeVariableValues;
75
+ onRuntimeVariableChange(groupId: number, paramName: string, value: string): void;
76
+ getRuntimeVariableValue(groupId: number, paramName: string): string;
77
+ hasRuntimeVariables(): boolean;
43
78
  onCreateStep(): void;
44
79
  onCancel(): void;
45
80
  isFormValid(): boolean;
46
81
  static ɵfac: i0.ɵɵFactoryDeclaration<StepBuilderGroupComponent, never>;
47
- static ɵcmp: i0.ɵɵComponentDeclaration<StepBuilderGroupComponent, "cqa-step-builder-group", never, { "stepGroupOptions": "stepGroupOptions"; "hasMoreStepGroups": "hasMoreStepGroups"; "isLoadingStepGroups": "isLoadingStepGroups"; "initialStepGroupId": "initialStepGroupId"; "editMode": "editMode"; }, { "createStep": "createStep"; "cancelled": "cancelled"; "loadMoreStepGroups": "loadMoreStepGroups"; "searchStepGroups": "searchStepGroups"; }, never, never>;
82
+ static ɵcmp: i0.ɵɵComponentDeclaration<StepBuilderGroupComponent, "cqa-step-builder-group", never, { "stepGroupOptions": "stepGroupOptions"; "hasMoreStepGroups": "hasMoreStepGroups"; "isLoadingStepGroups": "isLoadingStepGroups"; "initialStepGroupId": "initialStepGroupId"; "editMode": "editMode"; "runtimeVariables": "runtimeVariables"; "isLoadingRuntimeVariables": "isLoadingRuntimeVariables"; "existingRuntimeValues": "existingRuntimeValues"; }, { "createStep": "createStep"; "stepGroupSelected": "stepGroupSelected"; "cancelled": "cancelled"; "loadMoreStepGroups": "loadMoreStepGroups"; "searchStepGroups": "searchStepGroups"; }, never, never>;
48
83
  }
@@ -9,6 +9,8 @@ interface Element {
9
9
  locatorValue?: string;
10
10
  otherLocator?: string[];
11
11
  [key: string]: any;
12
+ screenNameId?: number;
13
+ screenNameObj?: any;
12
14
  }
13
15
  export interface TemplateVariable {
14
16
  name: string;
@@ -61,6 +63,7 @@ export declare class TemplateVariablesFormComponent implements OnChanges {
61
63
  defaultTestDataProfileId?: number;
62
64
  /** Default test data start index from test case (data set index in the profile) */
63
65
  defaultTestDataStartIndex?: number;
66
+ isEditInDepth: boolean;
64
67
  variableValueChange: EventEmitter<{
65
68
  name: string;
66
69
  value: any;
@@ -239,6 +242,6 @@ export declare class TemplateVariablesFormComponent implements OnChanges {
239
242
  */
240
243
  isRuntimeType(variable: TemplateVariable): boolean;
241
244
  static ɵfac: i0.ɵɵFactoryDeclaration<TemplateVariablesFormComponent, never>;
242
- static ɵcmp: i0.ɵɵComponentDeclaration<TemplateVariablesFormComponent, "cqa-template-variables-form", never, { "templateVariables": "templateVariables"; "variablesForm": "variablesForm"; "metadata": "metadata"; "description": "description"; "elementOptions": "elementOptions"; "hasMoreElements": "hasMoreElements"; "isLoadingElements": "isLoadingElements"; "screenNameOptions": "screenNameOptions"; "hasMoreScreenNames": "hasMoreScreenNames"; "isLoadingScreenNames": "isLoadingScreenNames"; "parameterOptions": "parameterOptions"; "hasMoreParameters": "hasMoreParameters"; "isLoadingParameters": "isLoadingParameters"; "environmentOptions": "environmentOptions"; "hasMoreEnvironments": "hasMoreEnvironments"; "isLoadingEnvironments": "isLoadingEnvironments"; "defaultTestDataProfileId": "defaultTestDataProfileId"; "defaultTestDataStartIndex": "defaultTestDataStartIndex"; "createElementVisible": "createElementVisible"; }, { "variableValueChange": "variableValueChange"; "variableBooleanChange": "variableBooleanChange"; "metadataChange": "metadataChange"; "descriptionChange": "descriptionChange"; "loadMoreElements": "loadMoreElements"; "searchElements": "searchElements"; "createElement": "createElement"; "searchScreenName": "searchScreenName"; "loadMoreScreenNames": "loadMoreScreenNames"; "createScreenNameRequest": "createScreenNameRequest"; "searchParameters": "searchParameters"; "loadMoreParameters": "loadMoreParameters"; "searchEnvironments": "searchEnvironments"; "loadMoreEnvironments": "loadMoreEnvironments"; "cancelElementForm": "cancelElementForm"; "elementFormVisibilityChange": "elementFormVisibilityChange"; }, never, never>;
245
+ static ɵcmp: i0.ɵɵComponentDeclaration<TemplateVariablesFormComponent, "cqa-template-variables-form", never, { "templateVariables": "templateVariables"; "variablesForm": "variablesForm"; "metadata": "metadata"; "description": "description"; "elementOptions": "elementOptions"; "hasMoreElements": "hasMoreElements"; "isLoadingElements": "isLoadingElements"; "screenNameOptions": "screenNameOptions"; "hasMoreScreenNames": "hasMoreScreenNames"; "isLoadingScreenNames": "isLoadingScreenNames"; "parameterOptions": "parameterOptions"; "hasMoreParameters": "hasMoreParameters"; "isLoadingParameters": "isLoadingParameters"; "environmentOptions": "environmentOptions"; "hasMoreEnvironments": "hasMoreEnvironments"; "isLoadingEnvironments": "isLoadingEnvironments"; "defaultTestDataProfileId": "defaultTestDataProfileId"; "defaultTestDataStartIndex": "defaultTestDataStartIndex"; "isEditInDepth": "isEditInDepth"; "createElementVisible": "createElementVisible"; }, { "variableValueChange": "variableValueChange"; "variableBooleanChange": "variableBooleanChange"; "metadataChange": "metadataChange"; "descriptionChange": "descriptionChange"; "loadMoreElements": "loadMoreElements"; "searchElements": "searchElements"; "createElement": "createElement"; "searchScreenName": "searchScreenName"; "loadMoreScreenNames": "loadMoreScreenNames"; "createScreenNameRequest": "createScreenNameRequest"; "searchParameters": "searchParameters"; "loadMoreParameters": "loadMoreParameters"; "searchEnvironments": "searchEnvironments"; "loadMoreEnvironments": "loadMoreEnvironments"; "cancelElementForm": "cancelElementForm"; "elementFormVisibilityChange": "elementFormVisibilityChange"; }, never, never>;
243
246
  }
244
247
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.1.241",
3
+ "version": "1.1.243",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",