@cqa-lib/cqa-ui 1.1.353 → 1.1.354

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,8 +1,10 @@
1
1
  import { EventEmitter, OnInit, ElementRef } from '@angular/core';
2
+ import { DomSanitizer } from '@angular/platform-browser';
2
3
  import { ScrollStepConfig, TestCaseStepConfig } from '../test-case-step.models';
3
4
  import { ViewDetailsPayload } from '../step-details-modal/step-details-modal-data';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class TestCaseScrollStepComponent implements OnInit {
7
+ private readonly sanitizer;
6
8
  config: ScrollStepConfig;
7
9
  stepNumber: number | string;
8
10
  index?: number;
@@ -17,6 +19,8 @@ export declare class TestCaseScrollStepComponent implements OnInit {
17
19
  expanded: boolean;
18
20
  isReorder: boolean;
19
21
  editable: boolean;
22
+ /** Saved action HTML from API — when set, row shows same text as edit modal and badges are clickable */
23
+ action: string;
20
24
  viewDetailsTrigger?: ElementRef<HTMLElement>;
21
25
  edit: EventEmitter<void>;
22
26
  editInDepth: EventEmitter<{
@@ -34,9 +38,22 @@ export declare class TestCaseScrollStepComponent implements OnInit {
34
38
  }>;
35
39
  selectorChange: EventEmitter<string>;
36
40
  directionChange: EventEmitter<"left" | "right" | "top" | "down" | "up" | "bottom">;
41
+ /** Same as normal-step: click on element/test_data badge opens popup */
42
+ clickAction: EventEmitter<MouseEvent>;
43
+ constructor(sanitizer: DomSanitizer);
37
44
  ngOnInit(): void;
45
+ /**
46
+ * Maps stored direction values to the same natural language used in template htmlGrammar
47
+ * (e.g. "Scroll one screen up") so the step row matches the edit modal.
48
+ */
49
+ /** Public for template: expanded panel shows same label as main row. */
50
+ getDirectionLabel(): string;
51
+ private directionToNaturalPhrase;
52
+ /** When action HTML exists, render it (mirrors normal-step / edit modal). */
53
+ hasActionHtml(): boolean;
54
+ getActionHtml(): string;
55
+ clickOnAction(event: MouseEvent): void;
38
56
  getDisplayText(): string;
39
- constructor();
40
57
  onToggleExpanded(): void;
41
58
  onEdit(): void;
42
59
  onLink(): void;
@@ -47,5 +64,5 @@ export declare class TestCaseScrollStepComponent implements OnInit {
47
64
  onSelectorChange(value: string): void;
48
65
  onDirectionChange(value: 'top' | 'bottom' | 'up' | 'down' | 'left' | 'right'): void;
49
66
  static ɵfac: i0.ɵɵFactoryDeclaration<TestCaseScrollStepComponent, never>;
50
- static ɵcmp: i0.ɵɵComponentDeclaration<TestCaseScrollStepComponent, "cqa-test-case-scroll-step", never, { "config": "config"; "stepNumber": "stepNumber"; "index": "index"; "selector": "selector"; "direction": "direction"; "description": "description"; "selected": "selected"; "disabled": "disabled"; "isNested": "isNested"; "isInsideStepGroup": "isInsideStepGroup"; "isInsideLoop": "isInsideLoop"; "expanded": "expanded"; "isReorder": "isReorder"; "editable": "editable"; }, { "edit": "edit"; "editInDepth": "editInDepth"; "link": "link"; "duplicate": "duplicate"; "delete": "delete"; "viewDetails": "viewDetails"; "selectionChange": "selectionChange"; "toggleExpanded": "toggleExpanded"; "selectorChange": "selectorChange"; "directionChange": "directionChange"; }, never, never>;
67
+ static ɵcmp: i0.ɵɵComponentDeclaration<TestCaseScrollStepComponent, "cqa-test-case-scroll-step", never, { "config": "config"; "stepNumber": "stepNumber"; "index": "index"; "selector": "selector"; "direction": "direction"; "description": "description"; "selected": "selected"; "disabled": "disabled"; "isNested": "isNested"; "isInsideStepGroup": "isInsideStepGroup"; "isInsideLoop": "isInsideLoop"; "expanded": "expanded"; "isReorder": "isReorder"; "editable": "editable"; "action": "action"; }, { "edit": "edit"; "editInDepth": "editInDepth"; "link": "link"; "duplicate": "duplicate"; "delete": "delete"; "viewDetails": "viewDetails"; "selectionChange": "selectionChange"; "toggleExpanded": "toggleExpanded"; "selectorChange": "selectorChange"; "directionChange": "directionChange"; "clickAction": "clickAction"; }, never, never>;
51
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.1.353",
3
+ "version": "1.1.354",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",