@cqa-lib/cqa-ui 1.1.382 → 1.1.384

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,4 +1,4 @@
1
- import { EventEmitter, ElementRef, AfterViewInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
1
+ import { EventEmitter, ElementRef, AfterViewInit, OnDestroy, OnChanges, SimpleChanges, ChangeDetectorRef } from '@angular/core';
2
2
  import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser';
3
3
  import * as i0 from "@angular/core";
4
4
  export interface StepMarker {
@@ -17,6 +17,7 @@ declare type SegmentOption = {
17
17
  };
18
18
  export declare class SimulatorComponent implements AfterViewInit, OnDestroy, OnChanges {
19
19
  private sanitizer;
20
+ private cdr;
20
21
  videoUrl: string;
21
22
  videoUrls: string[];
22
23
  videoCurrentDuration: number;
@@ -70,7 +71,10 @@ export declare class SimulatorComponent implements AfterViewInit, OnDestroy, OnC
70
71
  private operationQueue;
71
72
  get hasDeviceFrame(): boolean;
72
73
  get isPlayerSwitching(): boolean;
73
- get shouldApplySmallHeightClasses(): boolean;
74
+ get isAspectRatioMatched(): boolean;
75
+ get liveContentContainerStyle(): {
76
+ [key: string]: string;
77
+ };
74
78
  segments: SegmentOption[];
75
79
  speedSegments: SegmentOption[];
76
80
  private videoEventListenerCleanup;
@@ -96,7 +100,8 @@ export declare class SimulatorComponent implements AfterViewInit, OnDestroy, OnC
96
100
  height: number;
97
101
  };
98
102
  private readonly deviceFrameConfigs;
99
- constructor(sanitizer: DomSanitizer);
103
+ constructor(sanitizer: DomSanitizer, cdr: ChangeDetectorRef);
104
+ onWindowResize(): void;
100
105
  private get deviceFrameConfig();
101
106
  get deviceMockupImage(): string;
102
107
  get deviceScreenStyle(): {
@@ -9,6 +9,8 @@ export interface DatabaseQuery {
9
9
  variable: string;
10
10
  status?: 'passed' | 'failed' | 'pending';
11
11
  assertionData?: any[];
12
+ /** Result rows for this query (shown in Output tab). */
13
+ queryResult?: any[];
12
14
  }
13
15
  export interface DatabaseFormData {
14
16
  dbEnvironment: string;
@@ -25,7 +27,7 @@ export declare class StepBuilderDatabaseComponent implements OnInit, OnChanges,
25
27
  normalEnvironmentOptions: SelectOption[];
26
28
  /** Initial queries list */
27
29
  queries: DatabaseQuery[];
28
- /** Query results data */
30
+ /** Query results data (deprecated in favor of per-query queryResult) */
29
31
  queryResults: any[];
30
32
  /** Loading state */
31
33
  isLoading: boolean;
@@ -43,6 +45,7 @@ export declare class StepBuilderDatabaseComponent implements OnInit, OnChanges,
43
45
  cancelled: EventEmitter<void>;
44
46
  /** Emit when query is run */
45
47
  runQuery: EventEmitter<{
48
+ currentQuery: DatabaseQuery;
46
49
  query: string;
47
50
  variable: string;
48
51
  dbEnvironment: string;
@@ -103,6 +106,8 @@ export declare class StepBuilderDatabaseComponent implements OnInit, OnChanges,
103
106
  isFormValid(): boolean;
104
107
  onCreateStep(): void;
105
108
  getTableColumns(): string[];
109
+ /** Get result rows for currently selected query. */
110
+ getCurrentQueryResult(): any[];
106
111
  /**
107
112
  * Get assertion data for a specific query
108
113
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqa-lib/cqa-ui",
3
- "version": "1.1.382",
3
+ "version": "1.1.384",
4
4
  "description": "UI Kit library for Angular 13.4",
5
5
  "keywords": [
6
6
  "angular",