@cqa-lib/cqa-ui 1.1.407 → 1.1.408

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.
@@ -109,7 +109,9 @@ export declare class TestCaseConditionStepComponent implements OnInit, OnChanges
109
109
  stepNumber?: number | string;
110
110
  }>;
111
111
  duplicate: EventEmitter<void>;
112
- delete: EventEmitter<void>;
112
+ delete: EventEmitter<void | {
113
+ step: TestCaseStepConfig;
114
+ }>;
113
115
  edit: EventEmitter<{
114
116
  step: TestCaseStepConfig;
115
117
  index: number;
@@ -252,6 +254,10 @@ export declare class TestCaseConditionStepComponent implements OnInit, OnChanges
252
254
  branch: ConditionBranch;
253
255
  stepNumber?: number | string;
254
256
  }): void;
257
+ /** Forward nested step's delete event upward (e.g. a step inside a loop inside a branch). */
258
+ onNestedStepDelete(payload: {
259
+ step: TestCaseStepConfig;
260
+ } | void): void;
255
261
  isNormalStep(step: TestCaseStepConfig): step is NormalStepConfig;
256
262
  isLoopStep(step: TestCaseStepConfig): step is LoopStepConfig;
257
263
  isConditionStep(step: TestCaseStepConfig): step is ConditionStepConfig;
@@ -265,6 +271,8 @@ export declare class TestCaseConditionStepComponent implements OnInit, OnChanges
265
271
  getEndBranchLabel(branch: ConditionBranch): string;
266
272
  /** Branch display number: full hierarchical number. IF = stepNumber (e.g. 2.1.50), ELSE IF = 2.1.51, ELSE = 2.1.52. */
267
273
  getBranchDisplayNumber(branchIndex: number): number | string;
274
+ /** Return the branch id after which a new ELSE IF should be inserted, based on the current edit context. */
275
+ getInsertAfterBranchId(): string | undefined;
268
276
  /** Find branch in branches by id (for elseIfBranches which use same id). */
269
277
  getBranchById(branchId?: string | number): ConditionBranch | undefined;
270
278
  /** Get branch index in branches by id. */
@@ -300,7 +308,7 @@ export declare class TestCaseConditionStepComponent implements OnInit, OnChanges
300
308
  * Emit editInDepth. When branch is provided (ELSE IF/ELSE branch row), use branch's nested condition step
301
309
  * and branch display number for correct "Edit Step N" title. When isCreateMode (new ELSE IF), modal shows "Create In depth" and calls create API on save.
302
310
  */
303
- onEditInDepth(templateOverride?: any, branch?: ConditionBranch, branchIndex?: number, isCreateMode?: boolean, elseIfBranch?: any): void;
311
+ onEditInDepth(templateOverride?: any, branch?: ConditionBranch, branchIndex?: number, isCreateMode?: boolean, elseIfBranch?: any, insertAfterBranchId?: string): void;
304
312
  onLink(): void;
305
313
  onDuplicate(): void;
306
314
  onDelete(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.1.407",
3
+ "version": "1.1.408",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",