@cqa-lib/cqa-ui 1.1.352 → 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.
@@ -378,6 +378,8 @@ export declare class ApiEditStepComponent implements OnChanges, OnInit, AfterVie
378
378
  private getStatusVerificationValues;
379
379
  private getDefaultStatusVerification;
380
380
  responsePreview: string;
381
+ /** Reference to the response preview section, used to scroll into view after Send Request completes. */
382
+ responsePreviewRef?: ElementRef<HTMLElement>;
381
383
  private methodChangesSub?;
382
384
  private formatChangesSub?;
383
385
  private headerNameOptionsChangesSub?;
@@ -503,6 +505,11 @@ export declare class ApiEditStepComponent implements OnChanges, OnInit, AfterVie
503
505
  /** Current header rows from form (for consumers that read headers) */
504
506
  get headers(): ApiEditHeaderRow[];
505
507
  ngOnChanges(changes: SimpleChanges): void;
508
+ /**
509
+ * Smoothly scrolls the response preview section into view within the scrollable container.
510
+ * Called when a fresh response preview value is set from the parent (API builder).
511
+ */
512
+ private scrollPreviewIntoView;
506
513
  static ɵfac: i0.ɵɵFactoryDeclaration<ApiEditStepComponent, never>;
507
514
  static ɵcmp: i0.ɵɵComponentDeclaration<ApiEditStepComponent, "cqa-api-edit-step", never, { "initialMethod": "initialMethod"; "initialEnvironment": "initialEnvironment"; "initialStep": "initialStep"; "initialUrl": "initialUrl"; "initialPayloadTab": "initialPayloadTab"; "initialPayloadType": "initialPayloadType"; "initialPayloadText": "initialPayloadText"; "initialHeaders": "initialHeaders"; "initialResponsePreview": "initialResponsePreview"; "initialVariableName": "initialVariableName"; "initialResponseBodyVerifications": "initialResponseBodyVerifications"; "initialStatusVerifications": "initialStatusVerifications"; "initialActiveResponseVerificationTab": "initialActiveResponseVerificationTab"; "editMode": "editMode"; "httpMethodOptions": "httpMethodOptions"; "environmentOptions": "environmentOptions"; "hasMoreEnvironments": "hasMoreEnvironments"; "isLoadingEnvironments": "isLoadingEnvironments"; "urlOptions": "urlOptions"; "authTypeOptions": "authTypeOptions"; "initialAuthType": "initialAuthType"; "formatOptions": "formatOptions"; "initialFormat": "initialFormat"; "headerNameOptions": "headerNameOptions"; "verificationOptions": "verificationOptions"; "verificationDataTypeOptions": "verificationDataTypeOptions"; "statusVerificationOptions": "statusVerificationOptions"; "advancedSettingsVariables": "advancedSettingsVariables"; }, { "importCurl": "importCurl"; "importCurlCancel": "importCurlCancel"; "sendRequest": "sendRequest"; "back": "back"; "cancel": "cancel"; "next": "next"; "create": "create"; "headersChange": "headersChange"; "environmentChange": "environmentChange"; "environmentSearch": "environmentSearch"; "environmentLoadMore": "environmentLoadMore"; }, never, never>;
508
515
  }
@@ -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.352",
3
+ "version": "1.1.354",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",