@cqa-lib/cqa-ui 1.1.290 → 1.1.292

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.
@@ -12,6 +12,8 @@ export declare class TestCaseConditionStepComponent implements OnInit, OnChanges
12
12
  config: ConditionStepConfig;
13
13
  id: string;
14
14
  stepNumber: number | string;
15
+ /** Array index from parent renderer - use this for editInDepth instead of stepNumber (stepNumber "10.3" parses to 10) */
16
+ index?: number;
15
17
  condition: string;
16
18
  branches: ConditionBranch[];
17
19
  expanded: boolean;
@@ -147,7 +149,11 @@ export declare class TestCaseConditionStepComponent implements OnInit, OnChanges
147
149
  private updateConditionLeftSelectConfig;
148
150
  /** Options for the condition left autocomplete (IF_CONDITION natural text actions) */
149
151
  get conditionLeftAutocompleteOptions(): CqaAutocompleteOption[];
150
- /** Display value for IF condition autocomplete: show natural text from option matching naturalTextActionId when available (including when form is empty on open), else form value. */
152
+ /**
153
+ * Display value for IF/ELSE IF condition autocomplete.
154
+ * - For IF (step row / IF branch edit), show naturalText from option matching naturalTextActionId when form is empty.
155
+ * - For ELSE IF branch edit, always use the form value (so clearing leaves the field empty instead of reverting to IF).
156
+ */
151
157
  get conditionLeftDisplayValue(): string;
152
158
  onConditionLeftSelect(option: CqaAutocompleteOption & {
153
159
  template?: any;
@@ -160,7 +166,10 @@ export declare class TestCaseConditionStepComponent implements OnInit, OnChanges
160
166
  onAddElse(): void;
161
167
  onAddElseBranch(): void;
162
168
  onRemoveElse(branchId: string): void;
163
- /** Parse condition string into left, operator, right (e.g. "Usertype is Premium") */
169
+ /** Strip HTML tags from a string to get plain text */
170
+ private stripHtmlTags;
171
+ /** Parse condition string into left, operator, right (e.g. "Usertype is Premium")
172
+ * Strips HTML tags before parsing to handle formatted conditions */
164
173
  private parseCondition;
165
174
  /** Build condition string from form values */
166
175
  private buildConditionFromForm;
@@ -173,6 +182,8 @@ export declare class TestCaseConditionStepComponent implements OnInit, OnChanges
173
182
  type: 'if' | 'else-if' | 'else';
174
183
  badgeClass: string;
175
184
  }[];
185
+ /** Condition text as plain text (strips HTML), truncated with "..." if long */
186
+ getConditionPlainText(maxLength?: number): string;
176
187
  /** Event key-value pairs for display, excluding customEvent */
177
188
  getEventDetailsForDisplay(): {
178
189
  key: string;
@@ -240,6 +251,11 @@ export declare class TestCaseConditionStepComponent implements OnInit, OnChanges
240
251
  */
241
252
  private buildElseIfBranchPayload;
242
253
  onEditApply(): void;
254
+ /**
255
+ * Local helper to substitute #{variable} placeholders in the condition text with HTML badge spans.
256
+ * Mirrors the portal renderer's substituteTemplateVariablesToHtml so inline edit mode never shows raw #{label}.
257
+ */
258
+ private substituteTemplateVariablesToHtmlForCondition;
243
259
  onEditInDepth(templateOverride?: any): void;
244
260
  onLink(): void;
245
261
  onDuplicate(): void;
@@ -250,5 +266,5 @@ export declare class TestCaseConditionStepComponent implements OnInit, OnChanges
250
266
  /** Get select config for a template variable */
251
267
  getSelectConfigForVariable(variable: any, branchIdOrIsElse?: string | boolean): DynamicSelectFieldConfig;
252
268
  static ɵfac: i0.ɵɵFactoryDeclaration<TestCaseConditionStepComponent, never>;
253
- static ɵcmp: i0.ɵɵComponentDeclaration<TestCaseConditionStepComponent, "cqa-test-case-condition-step", never, { "config": "config"; "id": "id"; "stepNumber": "stepNumber"; "condition": "condition"; "branches": "branches"; "expanded": "expanded"; "isNested": "isNested"; "isInsideLoop": "isInsideLoop"; "isInsideStepGroup": "isInsideStepGroup"; "isReorder": "isReorder"; "selected": "selected"; "dataProfileOptions": "dataProfileOptions"; "hasMoreDataProfiles": "hasMoreDataProfiles"; "isLoadingDataProfiles": "isLoadingDataProfiles"; "naturalTextActionsOptions": "naturalTextActionsOptions"; "setConditionTemplateVariables": "setConditionTemplateVariables"; "addStepBetweenAbove": "addStepBetweenAbove"; "addStepBetweenBelow": "addStepBetweenBelow"; "addStepBetween": "addStepBetween"; }, { "toggleExpanded": "toggleExpanded"; "conditionChange": "conditionChange"; "branchStepChange": "branchStepChange"; "addStep": "addStep"; "addStepForLoop": "addStepForLoop"; "deleteStep": "deleteStep"; "addBranch": "addBranch"; "addElse": "addElse"; "deleteBranch": "deleteBranch"; "duplicate": "duplicate"; "delete": "delete"; "edit": "edit"; "moreOptions": "moreOptions"; "viewDetails": "viewDetails"; "editInDepth": "editInDepth"; "dndDropInZone": "dndDropInZone"; "loadMoreDataProfiles": "loadMoreDataProfiles"; "searchDataProfiles": "searchDataProfiles"; "stepUpdate": "stepUpdate"; "clickAction": "clickAction"; "addStepBetweenClick": "addStepBetweenClick"; "selectionChange": "selectionChange"; }, never, never>;
269
+ static ɵcmp: i0.ɵɵComponentDeclaration<TestCaseConditionStepComponent, "cqa-test-case-condition-step", never, { "config": "config"; "id": "id"; "stepNumber": "stepNumber"; "index": "index"; "condition": "condition"; "branches": "branches"; "expanded": "expanded"; "isNested": "isNested"; "isInsideLoop": "isInsideLoop"; "isInsideStepGroup": "isInsideStepGroup"; "isReorder": "isReorder"; "selected": "selected"; "dataProfileOptions": "dataProfileOptions"; "hasMoreDataProfiles": "hasMoreDataProfiles"; "isLoadingDataProfiles": "isLoadingDataProfiles"; "naturalTextActionsOptions": "naturalTextActionsOptions"; "setConditionTemplateVariables": "setConditionTemplateVariables"; "addStepBetweenAbove": "addStepBetweenAbove"; "addStepBetweenBelow": "addStepBetweenBelow"; "addStepBetween": "addStepBetween"; }, { "toggleExpanded": "toggleExpanded"; "conditionChange": "conditionChange"; "branchStepChange": "branchStepChange"; "addStep": "addStep"; "addStepForLoop": "addStepForLoop"; "deleteStep": "deleteStep"; "addBranch": "addBranch"; "addElse": "addElse"; "deleteBranch": "deleteBranch"; "duplicate": "duplicate"; "delete": "delete"; "edit": "edit"; "moreOptions": "moreOptions"; "viewDetails": "viewDetails"; "editInDepth": "editInDepth"; "dndDropInZone": "dndDropInZone"; "loadMoreDataProfiles": "loadMoreDataProfiles"; "searchDataProfiles": "searchDataProfiles"; "stepUpdate": "stepUpdate"; "clickAction": "clickAction"; "addStepBetweenClick": "addStepBetweenClick"; "selectionChange": "selectionChange"; }, never, never>;
254
270
  }
@@ -14,6 +14,8 @@ export declare class TestCaseLoopStepComponent implements OnInit, OnChanges {
14
14
  id: string;
15
15
  loopType: 'for' | 'while';
16
16
  stepNumber: number | string;
17
+ /** Array index from parent renderer - use this for editInDepth instead of stepNumber (stepNumber "10.3" parses to 10) */
18
+ index?: number;
17
19
  condition?: string;
18
20
  maxIterations?: number;
19
21
  testDataProfile?: string;
@@ -270,5 +272,5 @@ export declare class TestCaseLoopStepComponent implements OnInit, OnChanges {
270
272
  onMoreOptions(): void;
271
273
  onViewDetails(event?: MouseEvent): void;
272
274
  static ɵfac: i0.ɵɵFactoryDeclaration<TestCaseLoopStepComponent, never>;
273
- static ɵcmp: i0.ɵɵComponentDeclaration<TestCaseLoopStepComponent, "cqa-test-case-loop-step", never, { "config": "config"; "id": "id"; "loopType": "loopType"; "stepNumber": "stepNumber"; "condition": "condition"; "maxIterations": "maxIterations"; "testDataProfile": "testDataProfile"; "startStep": "startStep"; "endStep": "endStep"; "nestedSteps": "nestedSteps"; "expanded": "expanded"; "isNested": "isNested"; "isInsideLoop": "isInsideLoop"; "isInsideStepGroup": "isInsideStepGroup"; "isReorder": "isReorder"; "selected": "selected"; "dataProfileOptions": "dataProfileOptions"; "hasMoreDataProfiles": "hasMoreDataProfiles"; "isLoadingDataProfiles": "isLoadingDataProfiles"; "naturalTextActionsOptions": "naturalTextActionsOptions"; "setConditionTemplateVariables": "setConditionTemplateVariables"; "addStepBetweenAbove": "addStepBetweenAbove"; "addStepBetweenBelow": "addStepBetweenBelow"; "addStepBetween": "addStepBetween"; }, { "toggleExpanded": "toggleExpanded"; "testDataProfileChange": "testDataProfileChange"; "startStepChange": "startStepChange"; "endStepChange": "endStepChange"; "conditionChange": "conditionChange"; "maxIterationsChange": "maxIterationsChange"; "nestedStepChange": "nestedStepChange"; "addStep": "addStep"; "deleteStep": "deleteStep"; "duplicate": "duplicate"; "delete": "delete"; "moreOptions": "moreOptions"; "viewDetails": "viewDetails"; "editInDepth": "editInDepth"; "edit": "edit"; "dndDropInZone": "dndDropInZone"; "loadMoreDataProfiles": "loadMoreDataProfiles"; "searchDataProfiles": "searchDataProfiles"; "stepUpdate": "stepUpdate"; "clickAction": "clickAction"; "addStepBetweenClick": "addStepBetweenClick"; "selectionChange": "selectionChange"; }, never, never>;
275
+ static ɵcmp: i0.ɵɵComponentDeclaration<TestCaseLoopStepComponent, "cqa-test-case-loop-step", never, { "config": "config"; "id": "id"; "loopType": "loopType"; "stepNumber": "stepNumber"; "index": "index"; "condition": "condition"; "maxIterations": "maxIterations"; "testDataProfile": "testDataProfile"; "startStep": "startStep"; "endStep": "endStep"; "nestedSteps": "nestedSteps"; "expanded": "expanded"; "isNested": "isNested"; "isInsideLoop": "isInsideLoop"; "isInsideStepGroup": "isInsideStepGroup"; "isReorder": "isReorder"; "selected": "selected"; "dataProfileOptions": "dataProfileOptions"; "hasMoreDataProfiles": "hasMoreDataProfiles"; "isLoadingDataProfiles": "isLoadingDataProfiles"; "naturalTextActionsOptions": "naturalTextActionsOptions"; "setConditionTemplateVariables": "setConditionTemplateVariables"; "addStepBetweenAbove": "addStepBetweenAbove"; "addStepBetweenBelow": "addStepBetweenBelow"; "addStepBetween": "addStepBetween"; }, { "toggleExpanded": "toggleExpanded"; "testDataProfileChange": "testDataProfileChange"; "startStepChange": "startStepChange"; "endStepChange": "endStepChange"; "conditionChange": "conditionChange"; "maxIterationsChange": "maxIterationsChange"; "nestedStepChange": "nestedStepChange"; "addStep": "addStep"; "deleteStep": "deleteStep"; "duplicate": "duplicate"; "delete": "delete"; "moreOptions": "moreOptions"; "viewDetails": "viewDetails"; "editInDepth": "editInDepth"; "edit": "edit"; "dndDropInZone": "dndDropInZone"; "loadMoreDataProfiles": "loadMoreDataProfiles"; "searchDataProfiles": "searchDataProfiles"; "stepUpdate": "stepUpdate"; "clickAction": "clickAction"; "addStepBetweenClick": "addStepBetweenClick"; "selectionChange": "selectionChange"; }, never, never>;
274
276
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.1.290",
3
+ "version": "1.1.292",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",