@cqa-lib/cqa-ui 1.1.278 → 1.1.280

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.
Files changed (23) hide show
  1. package/esm2020/lib/test-case-details/ai-agent-step/ai-agent-step.component.mjs +3 -3
  2. package/esm2020/lib/test-case-details/ai-verify-step/ai-verify-step.component.mjs +3 -3
  3. package/esm2020/lib/test-case-details/api-step/api-step.component.mjs +3 -3
  4. package/esm2020/lib/test-case-details/condition-step/condition-step.component.mjs +15 -3
  5. package/esm2020/lib/test-case-details/custom-code-step/custom-code-step.component.mjs +3 -3
  6. package/esm2020/lib/test-case-details/database-step/database-step.component.mjs +3 -3
  7. package/esm2020/lib/test-case-details/loop-step/loop-step.component.mjs +51 -16
  8. package/esm2020/lib/test-case-details/normal-step/normal-step.component.mjs +3 -3
  9. package/esm2020/lib/test-case-details/restore-session-step/restore-session-step.component.mjs +3 -3
  10. package/esm2020/lib/test-case-details/screenshot-step/screenshot-step.component.mjs +3 -3
  11. package/esm2020/lib/test-case-details/scroll-step/scroll-step.component.mjs +3 -3
  12. package/esm2020/lib/test-case-details/step-group/step-group.component.mjs +3 -3
  13. package/esm2020/lib/test-case-details/test-case-step.models.mjs +1 -1
  14. package/esm2020/lib/test-case-details/upload-step/upload-step.component.mjs +3 -3
  15. package/esm2020/lib/test-case-details/verify-url-step/verify-url-step.component.mjs +3 -3
  16. package/fesm2015/cqa-lib-cqa-ui.mjs +97 -45
  17. package/fesm2015/cqa-lib-cqa-ui.mjs.map +1 -1
  18. package/fesm2020/cqa-lib-cqa-ui.mjs +94 -45
  19. package/fesm2020/cqa-lib-cqa-ui.mjs.map +1 -1
  20. package/lib/test-case-details/condition-step/condition-step.component.d.ts +5 -0
  21. package/lib/test-case-details/loop-step/loop-step.component.d.ts +8 -1
  22. package/lib/test-case-details/test-case-step.models.d.ts +2 -0
  23. package/package.json +1 -1
@@ -178,6 +178,11 @@ export declare class TestCaseConditionStepComponent implements OnInit, OnChanges
178
178
  key: string;
179
179
  value: string;
180
180
  }[];
181
+ /** Event key-value pairs for a branch (e.g. selector, element) - for IF uses config.event, for ELSE IF/ELSE uses branch.event */
182
+ getBranchEventDetailsForDisplay(branch: ConditionBranch): {
183
+ key: string;
184
+ value: string;
185
+ }[];
181
186
  onToggleExpanded(): void;
182
187
  onConditionChange(value: string): void;
183
188
  onBranchStepChange(branch: ConditionBranch, step: TestCaseStepConfig, stepIndex: number): void;
@@ -204,8 +204,15 @@ export declare class TestCaseLoopStepComponent implements OnInit, OnChanges {
204
204
  /** Combined display for for loop with HTML badges - supports test_data badges like condition step; data-key/data-event-key enable click-to-edit */
205
205
  getForLoopDisplay(): string;
206
206
  private escapeForLoopHtml;
207
- /** Full display for while loop: "While element ".selector" exists (max N iterations)" - supports HTML badges via innerHTML */
207
+ /** Full display for while loop: substitutes #{variable} with HTML badges (element/test_data) so clicks open popup - max iterations shown as separate badge */
208
208
  getConditionDisplay(): string;
209
+ /** Substitutes #{variable} placeholders with HTML badge spans using config.event - enables click-to-edit popup like condition step */
210
+ private substituteTemplateVariablesToHtml;
211
+ /** Event key-value pairs for display (e.g. selector, element) - same as condition step getBranchEventDetailsForDisplay */
212
+ getLoopEventDetailsForDisplay(): {
213
+ key: string;
214
+ value: string;
215
+ }[];
209
216
  onToggleExpanded(): void;
210
217
  onTestDataProfileChange(value: string): void;
211
218
  onStartStepChange(value: number): void;
@@ -151,6 +151,8 @@ export interface ConditionBranch {
151
151
  stepType: StepTypes.CONDITION_IF;
152
152
  label: string;
153
153
  action?: string;
154
+ /** Event key-value pairs for display badges (e.g. selector, element) - same as config.event */
155
+ event?: Record<string, unknown>;
154
156
  nestedSteps: TestCaseStepConfig[];
155
157
  }
156
158
  export interface ConditionStepConfig extends BaseStepConfig {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.1.278",
3
+ "version": "1.1.280",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",